![]() |
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 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 Code:
<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:
|
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: |
Sounds like an excellent idea ^_^
|
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. |
Quote:
;D |
Quote:
I'm sure it requires some javascript which I don't have much knowledge in.. |
It's all fixed now.
It has almost no bugs now, and the only problem is compatibility.:) |
Quote:
|
Quote:
|
Can I close this thread now that there's a new one?
Speak now or forever hold your peace. :) |
All times are GMT. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|