I do this as a free service, I am a student however and all donations are welcome. You can click on the Paypalicon to make a donation:
I will add instructions for pulling data when editing a file.
This article was done for vB 3.5 and later, I now bring you the article for vB 4.0 in regards to the editor in modifications.
Working Versions: Currently 4.1.10
Testing Versions: NONE
This tutorial will provide you the proper method for including the WYSIWYG editor in your modifications. I have tested this and it works so following this tutorial will provide a working editor. You are welcome to tweak it to your liking so that you get different output's or vice versa.
Lets begin.
Step 1. Make sure you have already added the row to your database table. The new row to add is:
PHP Code:
`message` varchar(255)
You can alter that to be messagearea, message, description, etc and it will work just the same.
Step 2. Open your template containing your form.
Step 3. Install the provided plugin xml file.
Step 3. Add the following lines of code.
Now add this in place of your opening form tag (Remember to change your action to your correct file):
Step 5. Save and close your file, upload and test. Make sure you saved your template as well.
This is a short article/tutorial and I hope many find it useful. Even though I did not come up with the code or discover the code, I am happy to help others out as I was helped out.
If you get it working I don't suppose you could write up an improved article? It would be great to be able to update my mods to use WYSIWYG once again.
Sure will, guaranteed. I'm about to test it now that I'm out of classes until Friday.
--------------- Added [DATE]1326984759[/DATE] at [TIME]1326984759[/TIME] ---------------
So far I have ran into a couple of issues. I will have things ironed out later today and then I'll update my article.
[S]Could you clarify by what you mean by "Make sure you have this code in the area where your template containing the editor is to be called" as my editor isn't loading - the smilies etc.. are but there is just a blank space where the editor should be.
Thanks[/S]
EDIT: Fixed
Code:
// get special data templates from the datastore
$specialtemplates = array('smiliecache','bbcodecache');
// pre-cache templates used by all actions
$globaltemplates = array('yourtemplatename');
define('GET_EDIT_TEMPLATES', true);
// pre-cache templates used by specific actions
$actiontemplates = array();
[s]Could you clarify by what you mean by "Make sure you have this code in the area where your template containing the editor is to be called" as my editor isn't loading - the smilies etc.. are but there is just a blank space where the editor should be.
Thanks[/s]
EDIT: Fixed
Code:
// get special data templates from the datastore
$specialtemplates = array('smiliecache','bbcodecache');
// pre-cache templates used by all actions
$globaltemplates = array('yourtemplatename');
define('GET_EDIT_TEMPLATES', true);
// pre-cache templates used by specific actions
$actiontemplates = array();
Thanks Steve - switching around the special templates and includes fixed the issue. My issue now is cleaning up the output from the editor for MYSQL and then parsing it again for display.
Thanks Steve - switching around the special templates and includes fixed the issue. My issue now is cleaning up the output from the editor for MYSQL and then parsing it again for display.
Like I said, I'm willing to look over your code for you if you wish. Just let me know.