View Full Version : Add Dropdown To WYSIWYG For Custom BBCode?
Thelonius Beck
03-21-2011, 10:41 PM
The title pretty much says it all. I have a custom BBCode that pretty much demands a dropdown as the {option} values cannot be made intuitive. Is it possible? If so, any tips for making it happen?
Any help would be greatly appreciated, and the finished results shared with the community.
Thelonius Beck
03-22-2011, 11:24 PM
So I guess that answers that then, ehh? lol
BirdOPrey5
03-23-2011, 01:44 AM
It's not something that can be done easily, you'd need plugins and javascript... would be a tough one.
Thelonius Beck
03-23-2011, 01:14 PM
Thank you for your reply. I recon I'll keep digging and see if I can figure something out,
The JavaScript should be no issue, but I don't have the first clue how to write a "plug-in".
BirdOPrey5
03-23-2011, 01:34 PM
The plugin is just php code... In your Admin CP -> Plugin Manager -> Add a New Plugin...
You have to select the right "hook" for your plugin... A hook is a line in the native vbulletin.php files where the code of your plugin will be evaluated.
I'd imagine the hook you'd want is one of the "editor_toolbar" hooks.
Thelonius Beck
03-23-2011, 11:04 PM
Cool, thanks. I'm about to start something of a more straight forward project requiring plug-ins, so that may get shaped up enough to do what I need here. :cool:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.