vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I add buttons to the WYSIWYG editor for custom BBCode (https://vborg.vbsupport.ru/showthread.php?t=152036)

patrickb 07-12-2007 08:35 AM

How do I add buttons to the WYSIWYG editor for custom BBCode
 
I would like to add some buttons to the WYSIWYG for my custom BBCode. I figured this would be something many people would like to do since the users might not be aware of the custom BBCode on the site.

Could anybody point me in the right direction? Do i need to modify some files? Is there an API to add buttons or settings (which would be great!)? Did anybody do this before?

Thanks

Marco 07-12-2007 09:53 AM

That's rather easy; just create a 21x20 button and upload it somewhere, in the BB Code-section of the Admin CP there is an option to enter the URL to a button which will then be displayed in the editor.

G0F0RBR0KE 07-12-2007 10:00 AM

Even if he adds an image, he'll still ned to wrap a code to make that button work proper.

chillingcafe 07-12-2007 10:31 PM

I have created some custom bbcodes for google videos and youtube videos but i am unable to see them work in my posts :( what am i supposed to do ?

patrickb 07-13-2007 02:39 AM

Quote:

Originally Posted by EvilAkuma (Post 1289053)
Even if he adds an image, he'll still ned to wrap a code to make that button work proper.

What do you mean by this?

I added the image and the BBCode now shows up in the editor? Whenever I click it, whatever was highlighted gets wrapped about my BBCode

What more could be done?


All times are GMT. The time now is 02:56 PM.

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.01264 seconds
  • Memory Usage 1,713KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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