The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
WYSIWYG New thread/Reply Details »» | |||||||||||||||||||||||||
This is sorta neat... everything, instead of having the old-school type-in text box for replies and new threads, you have a Frontpage-like visual editor for your replies!
Supports colors, and everything! Here's how to install... 1. Back up your newreply and newthread templates, just in case. (I'm not responsible if you screw up and blow up your house.) 2. Instead of me giving you pieces of the templates to modify, since there are huge modifications, I'll just give you the templates themselves. You usually won't have to change anything, unless you installed some hacks that modify the newreply or newthread templates. 3. When people are posting/replying, be sure to let them know that before they can submit the form, they have to press the 'save' button that's on the toolbar. 4. Upload the images attached to forums/images/toolbar directory. 5. Enjoy!:bunny: New version available here. If I left out anything...let me know. ^_^ Show Your Support
|
Comments |
#102
|
||||
|
||||
as requested...
Add-On: Allow users to choose which posting engine to use via UserCp Options A nice addition by Velocd This will help users whose browser does not support the WYSIWYG editor, such as Mozilla 1.0 (stated by GameCrash earlier in this thread). Also, everything is about user preference so its good to give your members an option. Very easy to install, shouldn't take long at all. Although, if you currently have the WYSIWYG editor installed you will have to do a few things on your own. -------------------------------------------------------------- Install Procedure: -------------------------------------------------------------- 1. Run the following query in PhpMyAdmin: Code:
alter table user add enablewysiwyg smallint(5) UNSIGNED not null default '0'; PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
After your finish that, save member.php 3. Open newthread.php, and find the following: PHP Code:
PHP Code:
PHP Code:
PHP Code:
6. Go into your admin/functions.php, find the following: PHP Code:
PHP Code:
PHP Code:
PHP Code:
newreply_wysiwyg: newreply.txt that was provided in the hack zip needs to be in this template. newthread_wysiwyg: newthread.txt that was provided in the hack zip needs to be in this template. 8. Now you need to revert the templates, or change back to what you originally had, newthread and newreply. 9. Now to modify a couple templates, and then we're finished. In vbcode_buttons find the following: Code:
<script language="Javascript" src="vbcode.js"></script> Code:
<script language="Javascript" src="$vbcodetype"></script> 10. In the template modifyoptions, find the following: Code:
<input type="radio" name="pmpopup" $pmpopupnotchecked value="no"> no </normalfont></td> </tr> <!-- *** --> Code:
<tr> <td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>New Thread, Reply & Personal Messaging Engine</b></normalfont></td> </tr> <tr> <td bgcolor="#1C5780"><normalfont><b>Use the WYSIWYG enhanced HTML engine? *IS IN BETA*</b></normalfont><br> <smallfont>Selecting yes will enable the new WYSIWYG posting engine, which does not require the use of some VBcode tags and has a typing interface similar to that of Microsoft Word. <br><b><u>Note:</u> May be incompatible with some internet browsers.</b><br><b><u>Note2:</u> To use such VBcodes as the [img] tag, you must first initialize <i>enhanced mode</i> on the posting screen. Then simply type in the tags and close them as you would normally do.</b> </smallfont></td> <td bgcolor="#1C5780"><normalfont> <input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygchecked> yes <input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotchecked> no </normalfont></td> </tr> -------------------------------------------------------------- Well thats it! If I missed anything or there are problems be sure to let me know, but I'm fairly sure I got everything down. UPDATE: To reduce the ues of extra queries, its always good to add the custom templates to the $templatesused = "" list. 1. In newthread.php, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#103
|
||||
|
||||
whoohoo! We've finished the HTML -> BBCode conversion code!
I will test it out to see how it works, and, if velocd lets me, I'll release everything as a complete package. (With credit given, of course.) :bunny: |
#104
|
||||
|
||||
Sounds like an excellent idea ^_^
|
#105
|
||||
|
||||
Velocd, just wondering...
...any chance you can make your addon autodetect if the user is using IE5.5 or above? For example, if the user is using IE5.5, then WYSIWYG will automatically be default, but if the user is on Netscape/Mozilla, it will autodefault to regular mode, and not let them switch, because it won't be possible. |
#106
|
|||
|
|||
Quote:
;D |
#107
|
||||
|
||||
It's all fixed now.
It has almost no bugs now, and the only problem is compatibility. |
#108
|
||||
|
||||
Quote:
I'm sure it requires some javascript which I don't have much knowledge in.. |
#109
|
||||
|
||||
Quote:
|
#110
|
||||
|
||||
Quote:
|
#111
|
||||
|
||||
Can I close this thread now that there's a new one?
Speak now or forever hold your peace. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|