Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2017, 04:22 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default BBCode Button



I added bbcode. How can I create a button for this?
Reply With Quote
  #2  
Old 02-03-2017, 04:30 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 02-03-2017, 04:32 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
  #4  
Old 02-03-2017, 04:41 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mobster46 View Post
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:



These buttons generate tags within the editor that are used to add mathematics, live graphs, spoilers, videos, post templates, etc.
Attached Images
File Type: png bbcode_buttons.png (52.1 KB, 0 views)
Reply With Quote
  #5  
Old 02-03-2017, 04:45 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post

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?
Reply With Quote
  #6  
Old 02-03-2017, 04:49 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mobster46 View Post
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.
Reply With Quote
  #7  
Old 02-03-2017, 04:53 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I'm not following what you want to do...please explain more thoroughly.
Reply With Quote
  #8  
Old 02-03-2017, 04:59 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mobster46 View Post
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?
Reply With Quote
  #9  
Old 02-03-2017, 05:04 PM
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
  #10  
Old 02-03-2017, 05:09 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06718 seconds
  • Memory Usage 2,274KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete