vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Add Dropdown To WYSIWYG For Custom BBCode? (https://vborg.vbsupport.ru/showthread.php?t=260745)

Thelonius Beck 03-21-2011 10:41 PM

Add Dropdown To WYSIWYG For Custom BBCode?
 
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:


All times are GMT. The time now is 08:48 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
  • Page Generation 0.03861 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete