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.
so guys, i figured out the problem, that you there is no message if you are in the wysiwyg mode! actually my soluiton is not that pretty, but it works fine.
in that case i dont give the message to the vB_Editor to check the minimum word amount ... but hell i dont care - i just want a message :P
but that actually result in pure html which will arrive the db
Thank you bpr - I tried using the aaaatest php example with Steve M's template and I got no joy. After using your fix however everything is working.
Does anyone have a "cleaner" solution for the long-term?
I od have a mysterious problem, maybe a handsome guy could lend me a helping hand.
I followed all the instructions down to the end and it works with one simple failure:
When I use the advanced WYSIWG a formated text is stored in my db as plain text.
Any ideas why bbcodes are ripped off?
And that should take care of the issue. For the WYSIWYG editor to pass the message value to your processing script, it first has to transfer it from the iframe it resides in to the message field in the $_POST variable.
And that should take care of the issue. For the WYSIWYG editor to pass the message value to your processing script, it first has to transfer it from the iframe it resides in to the message field in the $_POST variable.
Wow! I so wasn't expecting such a quick reply. This worked, thanks!
Now I have to dig into what is the difference between what I was trying to use and what you posted here....
After I realized that the original work doesn't work on 4.1.5, I basically ripped apart newthread.php and newthread template from vb and came up with almost exactly what you posted. I probably left out a semi colon or something