BbCodes & Buttons Manager

BbCodes & Buttons Manager 3.3.5

No permission to download
Just a simple question here:
I created a BB Code. But when a user use it in editor, tags appear around his text. Although after posting, they see the result, and not the tags.
But how I can hide those tags even when user still didn't post and is editing the test in editor.
(just like other bb codes, like alignments and ...)
Thanks
 
Just a simple question here:
I created a BB Code. But when a user use it in editor, tags appear around his text. Although after posting, they see the result, and not the tags.
But how I can hide those tags even when user still didn't post and is editing the test in editor.
(just like other bb codes, like alignments and ...)
Thanks
A Bb Code is meant to be displayed. That's actually its purpose. That being said, it's also possible to code a Wysiwyg interface to allow users to interact in a graphic way for a specific purpose (see the TinyMCE addon => tables, quotes, anchors, etc.). But creating this interface takes a lot of time and always require custom coding since it will be created for a dedicated purpose. So unless, you're really good at JavaScript, you've got a lot of time for debugging (cross browsers tests), and you exactly know where you're going, I would suggest you to keep the good old Bb Codes.
 
Hi @cclaerhout,

Getting this error after the upgrading (latest version is installed):

Code:
Server Error Log
Error Info
ErrorException: Undefined variable: option - library/Sedo/AdvBBcodeBar/BbCode/Formatter/AdvBbCodes.php:438
Generated By: Unknown Account, 3 minutes ago
Stack Trace
#0 /home/queee/public_html/forums/library/Sedo/AdvBBcodeBar/BbCode/Formatter/AdvBbCodes.php(438): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/queee/pub...', 438, Array)
#1 [internal function]: Sedo_AdvBBcodeBar_BbCode_Formatter_AdvBbCodes::parseTagArticle('<br />\n<b>Toron...', Array, 'sedo_adv_articl...', false, Array, Object(BBM_BbCode_Formatter_Base))
#2 /home/queee/public_html/forums/library/BBM/BbCode/Formatter/Base.php(589): call_user_func_array(Array, Array)
#3 [internal function]: BBM_BbCode_Formatter_Base->TemplateMethodRenderer(Array, Array, Object(BBM_BbCode_Formatter_Base))
#4 /home/queee/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(745): call_user_func(Array, Array, Array, Object(BBM_BbCode_Formatter_Base))
#5 /home/queee/public_html/forums/library/BBM/BbCode/Formatter/Base.php(810): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#6 /home/queee/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(652): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#7 /home/queee/public_html/forums/library/BBM/BbCode/Formatter/Base.php(1618): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#8 /home/queee/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(565): BBM_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#9 /home/queee/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(546): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#10 /home/queee/public_html/forums/library/BBM/BbCode/Formatter/Base.php(1601): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#11 /home/queee/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(526): BBM_BbCode_Formatter_Base->renderSubTree(Array, Array)
#12 /home/queee/public_html/forums/library/BBM/BbCode/Formatter/Base.php(1538): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#13 /home/queee/public_html/forums/library/XenForo/BbCode/Parser.php(505): BBM_BbCode_Formatter_Base->renderTree(Array, Array)
#14 /home/queee/public_html/forums/library/XenForo/ViewPublic/Forum/View.php(64): XenForo_BbCode_Parser->render('[ATTACH=full]13...', Array)
#15 /home/queee/public_html/forums/library/ModEss/ViewPublic/Forum/View.php(25): XenForo_ViewPublic_Forum_View->renderRss()
#16 /home/queee/public_html/forums/library/XenForo/ViewRenderer/Abstract.php(227): ModEss_ViewPublic_Forum_View->renderRss()
#17 /home/queee/public_html/forums/library/XenForo/ViewRenderer/Rss.php(31): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Rss', Array, 'forum_view')
#18 /home/queee/public_html/forums/library/XenForo/FrontController.php(605): XenForo_ViewRenderer_Rss->renderView('XenForo_ViewPub...', Array, 'forum_view', NULL)
#19 /home/queee/public_html/forums/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Rss), Array)
#20 /home/queee/public_html/forums/index.php(13): XenForo_FrontController->run()
#21 {main}
Request State
array(3) {
  ["url"] => string(72) "http://www.que-ee.com/forums/index.php?forums/announcements.25/index.rss"
  ["_GET"] => array(1) {
    ["forums/announcements_25/index_rss"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
Delete...
 
Thanks for the quick reply. So what should I do - download a version from Github (not really familiar with doing that :( )?
You can install this zip, But be aware the "Flex Layout" option is still under going development, and needs some more work for handling tables-in-tabs-in-tabs.
 
Is it possible to edit the CSS of a BB Code? For example, the horizontal rule. I have it as [ hr ] but I can't seem to find an option to edit its css.
 
Is it possible to edit the CSS of a BB Code? For example, the horizontal rule. I have it as [ hr ] but I can't seem to find an option to edit its css.
Any Bb Code using a template can include a css template, so yes. For the HR, I forgot which methods it is using.
 
The BB codes I added using the button manager do not have icons, and I'm getting a 404 server error when it tries to pull the images for it. Any ideas why this might be happening?
 
The BB codes I added using the button manager do not have icons, and I'm getting a 404 server error when it tries to pull the images for it. Any ideas why this might be happening?
With the provided information, no idea. Which image, at which location, etc.
 
This is happening anywhere I try to use the editor - wiki pages and forum posts are the noticeable two places. I've attached a screenshot so you can see what I'm referring to..
OS7TaHg.png


All the blank spaces are where the button's icons should be. Is this normal? Do I have to assign icons to these buttons so they show up?
 
This is happening anywhere I try to use the editor - wiki pages and forum posts are the noticeable two places. I've attached a screenshot so you can see what I'm referring to..
OS7TaHg.png


All the blank spaces are where the button's icons should be. Is this normal? Do I have to assign icons to these buttons so they show up?
What are the blank spaces. There are supposed to be icons ? If yes, what kind of set (direct image, sprite, Quattro Set, MCE set, Fontawesome) ?
If they are not icons, test with the default XenForo theme to check if you don't have a css conflict.
 
Cedric, I get so many slow queries with this addon. Any idea why?

Examples:

Code:
# Query_time: 8.185672  Lock_time: 0.000034  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 2
SET timestamp=1463953530;
INSERT INTO xf_bb_code_parse_cache
                                                                        (content_type, content_id, parse_tree, cache_version, cache_date)
                                                                VALUES ('post', '1090937', 'a:3:{i:0;a:4:{s:3:\"tag\";s:5:\"quote\";s:6:\"option\";s:39:\"SupaHeeroh, post: 1090935, member: 7817\";s:8:\"original\";a:2:{i:0;s:49:\"[QUOTE=$
                                                                ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
                                                                        cache_version = VALUES(cache_version),
                                                                        cache_date = VALUES(cache_date);

Code:
# Query_time: 3.821292  Lock_time: 0.000020  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 2
SET timestamp=1463952192;
INSERT INTO xf_bb_code_parse_cache
                                                                        (content_type, content_id, parse_tree, cache_version, cache_date)
                                                                VALUES ('post', '988044', 'a:3:{i:0;a:4:{s:3:\"tag\";s:5:\"quote\";s:6:\"option\";s:33:\"Solidus, post: 988042, member: 56\";s:8:\"original\";a:2:{i:0;s:43:\"[QUOTE=\"Solid$
                                                                ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
                                                                        cache_version = VALUES(cache_version),
                                                                        cache_date = VALUES(cache_date);
 
xf_bb_code_parse_cache is a standard XenForo thing, not sure why it is being so slow. Perhaps the table is very large, try reducing the retention on it so rows are automatically pruned out faster.
 
It has 500,000 entries and is 540mb, what do you suggest?
That's a question you should ask XenForo developers. I don't cache BB Code output. But as Xon told you, you can prune data or reduce the delay to remove them. See the attached screenshot.

I'm confused, is it beneficial to have the Bbm Pre-cache System enabled or not?
If you use any Bb Code that requires it yes. To make it simple, sometimes when we create a Bb Code, we need to take data out of the database. This is using a query. If you use the same Bb Code, it will send many queries to the database. The Pre-Cache System allows to group all needed data then make a single query (for the same kind of Bb Code). If two different Bb Codes (using different queries) are used several times with the Pre-Cache System, then the page will use 2 queries (etc.).

If you don't use any of these Bb Codes (that interact with the database), you don't need to enable this option.
 

Attachments

  • Options- Performance - Admin CP - XenForo Test TITLE 2016-05-29 23-56-21.webp
    Options- Performance - Admin CP - XenForo Test TITLE 2016-05-29 23-56-21.webp
    65.7 KB · Views: 6
Which bb codes interact with the database? I use all of XF default bb codes, fieldset, slider, spoiler and tabs.
 
Back
Top Bottom