Moodle - CkEditor is not coming for dynamically created courses - php

I am new to Moodle, I have been developing a learning management system from past couple of weeks, which includes direct tweaks in the core code of moodle.
I have set of courses which has to be created from the backend of MySQL. When I am trying to create a course from MySQL (Not Website), then while editing the course, ckeditor doesn't come. It is a plain TextArea with an additional dropdown.
I am not able to understand, why is it coming like that? I have populated all proper data in the table. Is there something else which has to be done apart from just populating summary field in mdl_course table.?
Thank you.

First ... is the "text editor" option in your profile correctly set to atto or ckeditor?
Then, I wonder which field or page on which you want to see an html text editor show up. I'm thinking you are looking at the "summary" field. If so, make sure the "summaryformat" column is set to 1. While 0 is for "Moodle format", 1 stands for "HTML format".
Hopefully, this helps!

Sometimes it caused by 'old cache', try full refresh browser, [Shift]-F5.
Or clean you browser cache.
If you use firefox (I use firefox version 33) : Menu (hamburger icon on top right) > Preferences > Advance > Network > Clear now (Cache web content)

Related

Wordpress site broken, editor not working properly or at all

im working on adding and modifying the content of a website, but im having multiple issues with the very basic functioning of the editor. Please keep in mind i didnt build this site myself, so i might not be aware of many things that may be obvious to you.
If left unmodified, to the user, the site shows no issues whastoever, it is I as the administrator who experiencies all these issues.
I will describe/ show the issue and give a list of the things i have tried already.
While looking at Cpanel's PHP admin app, and the htaccess file, i see the php version is 7.4. However, while using wordpress, the site health status tool warns me that im using php version 7.1.33
Im not getting the admin bar when looking at the website, it just shows a white bar with nothing else.
3.If i go to the backend editor and try to customize the template im using (called Jupiter 5) i get very few options in the side bar, it doesnt show things like header options for example. And i have no floating editor options on the site itself, i get no tools, nothing.
See image
When i go inside wordpress to "pages" and try to edit a page, the editor box shows the content with the code included or shows nothing while using the "visual composer" mode. This is how it looks
When i try changing the template, the content appears like this. A huge mess, though some editor controls show up in this case
6.I tried using plugin detective but when i launch it, and it asks for my credentials, i hit login yet it does nothing.
I tried disabling all plugins, only header and bottom show up kinda normally, the body becomes text with code like the image of point 5. I still dont get the admin bar on site.
If I, after disabling all plugins go to pages, then select any page and click "edit", the adress of the site shows im on the edit page, but the page itself is completely blank, i dont even get the wordpress bar at the left.
If I disable all plugins, then activate only a plugin called WPBakery, the body of the site stops showing text with code and actually shows most visual elements, no edit options though, except for a small text at the bottom. A weird thing about this plugin is that despite of its name, when activated, it shows up as "Visual Composer" instead of WPBakery.
So far, besides disabling plugins and testing, i have only tried Updating Wordpress, the only thing that changes is that the admin bar finally shows, but the "customization" mode remains exactly the same, useless.
Classic editor is already installed btw.
I hope someone can help me, thanks.

How to update the content of a website using the website itself?

Is it possible to update the content of a website (add Item, remove Item, update Infos, etc...) directly from the webpage?
For example, you have a webpage and you make a new page in it, that only the admin can access. That page should contain some options that allow the admin to change/update contents on the actual website(what people can see) easily.
(Without the admin having to write new HTML or PHP code...)
I heard something about Joomla or Wordpress but I don't really know how they work.
Thank you.
Basicaly, joomla has some fonctionnalities to edit content by the frontoffice. Of course, the user need to be logged and access levels need to be well managed. You should to try it with a basic installation and see if it's coherent with respect to that you looking for.

wordpress- dynamically change webpage banner text by passing parameter in url

I am trying to change banner text of one of the web page according to the url parameter. Not sure which code should I modify. or use hook? please someone help me.
many thanks
You need to find out where that text is coming from.
Most WordPress templates that I have used allow you to change this on the admin screen (dashboard). If you log into WordPress using admin password and select Theme/Customize, you should be presented with several options that let you customize this.
There is also a Settings tab visible from the dashboard that lets you change the site name (if that is what's being displayed there).
If you cant find it in either of those, you can try to search for the text in the files system (under themes) and see what's returned.

PHP Woes with font display

I'm building a two column content section on my website that allows a user to select an example of a font, enter a string of text, and click a button in the right column and in the left display the selected font and text the user has chosen.
I have looked at the PHP website and don't even know where to start. I'm used to dealing with databases and forms in PHP for gathering data but have never attempted something like this before.
I feel like it should be pretty simple so any help or hints are appreciated.
I would like to use fonts from: http://www.tattoo-fonts.com

TinyMCE editor is stripping my html code in joomla 2.5

I have a problem in my TinyMCE editor in joomla. Every time i make any changes from the editor my html code gets messed up.
I tried using a different editor like (JCE Editor), but the result is the same.
I am new to joomla so if anyone suggest me how to go about in fixing this problem
Thanks
I have got a solution for this.
Instead of using TinyMCE editor i switched to JCE Editor and followed these steps
Change the defualt setting of JCE Editor
Once inside the JCE Administration area, click on Default editor profile
Inside the Default editor profile, click on the Editor Parameters tab, and then click on the Advanced tab. Depending on which type of code you d like to save in your articles, you can choose to allow JavaScript, PHP, CSS, and XHTML. Please note that these are disallowed by default because they can be potentially dangerous to your site. It s always best to create a backup of your site before adding code like this. Don t forget to save your work after you make these changes.
Next, go to the Plugin Parameters tab, and then click on the Media Support tab. As illustrated in the screenshot below, you may also choose to display some additional elements. You can click on "Save & Close" in the toolbar when you re done. That s all the configuration that you should have to do through the JCE Editor.
You can test your changes by embedding a YouTube video into an article or Custom HTML module.
Under global configuration go to text filtering and set public to no filtering
TinyMCE (and most other Editor-Plugins) try to output/save the best possible HTML-code, thats why your HTML gets changed.
Go to "Site" => "Global Configuration" => "Text Filters" and set the appropriate filters. You might want to use a custom Blacklist by editing the 'Filter Tags'- & 'Filter Attributes'-fields. :)
answer for Joomla pre-2.0:
You can find the 'Clean code on save'-option in the settings (go to "Extensions" => "Plugins" => "Editor - TinyMCE" and go through the options on the right side).
Greetings

Categories