vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   BBCode Button (https://vborg.vbsupport.ru/showthread.php?t=324367)

mobster46 02-03-2017 04:22 PM

BBCode Button
 
https://vborg.vbsupport.ru/external/2017/02/14.png

I added bbcode. How can I create a button for this?

MarkFL 02-03-2017 04:30 PM

BBCodes are for use within post content, such as text formatting, spoilers, etc. You can't use BBCodes for post control buttons...those can be added via a template edit (whether auto or manual).

mobster46 02-03-2017 04:32 PM

Quote:

Originally Posted by MarkFL (Post 2581784)
BBCodes are for use within post content, such as text formatting, spoilers, etc. You can't use BBCodes for post control buttons...those can be added via a template edit (whether auto or manual).

Too hard to do this? Bbcode to integrate there?

I use this bbcode>https://vborg.vbsupport.ru/showthread.php?t=299403

But I would like it to be a post control button.

MarkFL 02-03-2017 04:41 PM

1 Attachment(s)
Quote:

Originally Posted by mobster46 (Post 2581785)
Too hard to do this? Bbcode to integrate there?

BBCode buttons show up in your toolbar...they aren't meant for use elsewhere, as they provide a means of adding functionality to your post content.

It's not so much that "it's too difficult", but more that this simply isn't what the purpose of BBCodes is.

For example, on my local dev site, you can see my custom BBCode buttons in the third row:

https://vborg.vbsupport.ru/attachmen...1&d=1486147178

These buttons generate tags within the editor that are used to add mathematics, live graphs, spoilers, videos, post templates, etc.

mobster46 02-03-2017 04:45 PM

Quote:

Originally Posted by MarkFL (Post 2581787)

These buttons generate tags within the editor that are used to add mathematics, live graphs, spoilers, videos, post templates, etc.

I want to use it for the features you mentioned. But I want to change one of the buttons so that it will be where I am. Is this difficult?

MarkFL 02-03-2017 04:49 PM

Quote:

Originally Posted by mobster46 (Post 2581789)
I want to use it for the features you mentioned. But I want to change one of the buttons so that it will be where I am. Is this difficult?

I'm not following what you want to do...please explain more thoroughly. :)

mobster46 02-03-2017 04:53 PM

Quote:

Originally Posted by MarkFL (Post 2581790)
I'm not following what you want to do...please explain more thoroughly. :)

https://vborg.vbsupport.ru/external/2017/02/7.png

MarkFL 02-03-2017 04:59 PM

Quote:

Originally Posted by mobster46 (Post 2581791)

Yes, it is possible to program a button anywhere on a page containing the ckeditor to add to or alter post content. My "Quote Break" button is an example, and another is my "Quick Latex" element that I coded at MHB for easily constructing LaTeX markup.

But, for general purpose BBCodes, why would you want them anywhere but the toolbar?

mobster46 02-03-2017 05:04 PM

Quote:

Originally Posted by MarkFL (Post 2581792)
Yes, it is possible to program a button anywhere on a page containing the ckeditor to add to or alter post content. My "Quote Break" button is an example, and another is my "Quick Latex" element that I coded at MHB for easily constructing LaTeX markup.

But, for general purpose BBCodes, why would you want them anywhere but the toolbar?

I just want the managers to see it. This way, it will be more practical. and as if it were part of the Moderator tool.

MarkFL 02-03-2017 05:09 PM

It will be a good deal of effort to do so. A better solution would be to simply instruct your staff on how to use that BBCode. ;)


All times are GMT. The time now is 01:28 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.02247 seconds
  • Memory Usage 1,736KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete