![]() |
|
Article Options |
Add A Button To The Editor (vb3)
by
![]() This will help you add an extra button to vb3's editor toolbar. The button calls a function that you define in vbulletin_global.js that can do anything you want. ![]() Open ./includes/functions_editor.php and find this:
And change to:
Find this
And add this below:
Be sure to change the bolded xxxx to be whatever you want it to be. Now, open clientscript/vbulletin_wysiwyg.js and find this:
And REPLACE with:
Be sure to change the xxxx's above to be the same as in the other code snippet. ![]() And open clientscript/vbulletin_global.js and add a function called whatever you changed xxxx to. It can do whatever you want it to do and you'll be set. If you want to add it to the showthread quick reply... open showthread.php and find:
And replace with:
In the showthread_quickreply template find this:
And add this below:
Find this:
And add below:
Done! ![]() No members have liked this post.
|
||||||||||||||||||||||||||||||||||||||||||||||||
Views: 3064
|
Comments |
#2
|
||||
|
||||
Nice one
![]()
__________________
Hacks Made : Store 3.0 Color Name Add On. Last 5 Attachments On Forum Home Rap Battle System -=RBS=- Tutorials Made : The Basics Of PHP For Beginners and The Basics Of PHP [Part 2] Running away from that Thousand Post Mark ![]() No members have liked this post.
|
#3
|
||||
|
||||
A reminder thatr if you want buttons for your custom BB Code then this is already an option in the BB Code Manager
![]()
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator http://www.thesistersthree.com/lee/sigs/signature.ts3 The Sisters Three Charmed Discussion Forums WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3 No members have liked this post.
|
#4
|
||||
|
||||
![]()
__________________
Hacks Made : Store 3.0 Color Name Add On. Last 5 Attachments On Forum Home Rap Battle System -=RBS=- Tutorials Made : The Basics Of PHP For Beginners and The Basics Of PHP [Part 2] Running away from that Thousand Post Mark ![]() No members have liked this post.
|
#5
|
|||
|
|||
Originally Posted by NTLDR
Yes, of course.
![]() This is if you want to do other things... and even with that, the extra buttons won't show up in quick reply unless you apply the modifications to showthread.php/showthread_quickreply in my first post. ![]()
__________________
![]() No members have liked this post.
|
#6
|
||||
|
||||
i was trying to put smilies in quick reply box, using that system, but got javascript error... sorry, but i full zerro in all that javascript.. may be you help me?
my post about that here: http://www.vbulletin.org/forum/showp...2&postcount=32
__________________
WBR`s M.C. No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:24.