BbCodes & Buttons Manager

BbCodes & Buttons Manager 3.3.5

No permission to download
help me fix addon. i'm install addon BBM :( and addon http://xenforo.com/community/resources/vfcoders-hide-hack-v1.1618/ not show editor toolbar :( help
Here is what you can do
  1. Contact the author of this addon and ask him to see what's wrong with the integration. I don't have time to check this, but if there's some modifications to do on the code (available on Github), I will do them.
  2. Recreate yourself the buttons on XenForo default editor. You can use the function inside the "editor button" of the Bb Code, but you will have to use a default icon size. If you want to use buttons with a larger width, you will have to manually create them (see the FAQ - "How to configure buttons with XenForo Redactor Editor ?")
  3. Use the TinyQuattro editor and create a text button.
 
help me fix.. icon not show :( @cclaerhout
gd74O.png

DeUBf.png
 
@tjohn67658
No time to debug this with posting many posts in a forum, if you need help contact me by pm with a ftp access to the addon directory and an access to the bbm in the XenForo admin.
 
If got the following error when I click on the preview button when creating a resource.
Code:
ErrorException: Argument 1 passed to BBM_BbCode_Formatter_Base::_remapKeyValuesToPostParams() must be an array, boolean given, called in /pathtoxenforo/library/BBM/BbCode/Formatter/Base.php on line 1261 and defined - library/BBM/BbCode/Formatter/Base.php:1396

Code:
#0 /pathtoxenforo/library/BBM/BbCode/Formatter/Base.php(1396): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/pathtoxenforo...', 1396, Array)
#1 /pathtoxenforo/library/BBM/BbCode/Formatter/Base.php(1261): BBM_BbCode_Formatter_Base->_remapKeyValuesToPostParams(false, Array, true)
#2 /pathtoxenforo/library/XenForo/BbCode/Formatter/Base.php(1725): BBM_BbCode_Formatter_Base->setView(Object(WidgetFramework_XenForo_View1))
#3 /pathtoxenforo/library/XenResource/ViewPublic/Resource/Preview.php(9): XenForo_BbCode_Formatter_Base::create('Base', Array)
#4 /pathtoxenforo/library/XenForo/ViewRenderer/Abstract.php(227): XenResource_ViewPublic_Resource_Preview->renderHtml()
#5 /pathtoxenforo/library/XenForo/ViewRenderer/Json.php(229): XenForo_ViewRenderer_Abstract->renderViewObject('XenResource_Vie...', 'Html', Array, 'resource_previe...')
#6 /pathtoxenforo/library/XenForo/ViewRenderer/Json.php(92): XenForo_ViewRenderer_Json->getDefaultOutputArray('XenResource_Vie...', Array, 'resource_previe...')
#7 /pathtoxenforo/library/XenForo/FrontController.php(572): XenForo_ViewRenderer_Json->renderView('XenResource_Vie...', Array, 'resource_previe...', NULL)
#8 /pathtoxenforo/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#9/pathtoxenforo/index.php(13): XenForo_FrontController->run()
#10 {main}

Code:
array(3) {
  ["url"] => string(35) "http://localhost/resources/preview"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(17) {
    ["resource_category_id"] => string(1) "2"
    ["title"] => string(62) "Title"
    ["version_string"] => string(0) ""
    ["tag_line"] => string(85) "Tagline"
    ["tinhte_xentag_tags_text"] => string(0) ""
    ["tinhte_xentag_included"] => string(1) "1"
    ["resource_file_type"] => string(8) "fileless"
    ["message_html"] => string(1379) "Here goes the text"
    ["_xfRelativeResolver"] => string(31) "http://localhost/resources/add"
    ["miugetcolor"] => string(7) "#123456"
    ["attachment_hash"] => string(32) "Hash"
    ["external_url"] => string(0) ""
    ["alt_support_url"] => string(0) ""
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(14) "/resources/add"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
The new update seems to be incompatible with the new resource manager and his custom fields.

The error is too long for the post, so here an image:

buttonerror.webp
 
After a few questions by pm on how to create BbCodes, I repeat that there are examples provided with this addon AND that I cleary do not advice to use the direct method replacement. Like I've written in the first point of the FAQ, always keep the control of the final output value of your BbCode options. So if you want a float block BbCode, use the template method and proceed with something like this inside your template.

HTML:
<xen:set var="$float">{xen:if "{$options.1} == 'left'", 'left', 'right'}</xen:set>
<div class="yourCssClass" style="float:{$float}">{xen:raw $content}</div>
  • The "xen:set" command allows you to create a variable inside a XenForo template. The variable created here is $float.
  • The $options.1 is the first option of the Bb Code that has entered the user. $options.2 will be the second one, etc.
  • The conditional makes sure that the possible output values is left or right AND nothing else.
  • The $content variable will be the content of your tag. You must use the xen:raw to display html from others inner BbCodes or lines breaks. Note, that even with this command the code is protected and will not allow html code.
If you're not sure how to use templates, try to find some documentation about them. Start with the official page, then go to look for tutorials in the XenForo resources.
 
i seem to be experiencing problems with bb code through out the site. threads don't show properly and stuff like quotes, code links.

i also been getting server errors like this:

Code:
An exception occurred: call_user_func(::renderTagUrl) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback in /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Formatter/Base.php on line 664

    XenForo_Application::handlePhpError() in XenForo/BbCode/Formatter/Base.php at line 664
    XenForo_BbCode_Formatter_Base->renderValidTag() in BBM/BbCode/Formatter/Base.php at line 559
    BBM_BbCode_Formatter_Base->renderValidTag() in XenForo/BbCode/Formatter/Base.php at line 575
    XenForo_BbCode_Formatter_Base->renderTag() in XenForo/BbCode/Formatter/Base.php at line 488
    XenForo_BbCode_Formatter_Base->renderTreeElement() in XenForo/BbCode/Formatter/Base.php at line 469
    XenForo_BbCode_Formatter_Base->renderSubTree() in XenForo/BbCode/Formatter/Base.php at line 449
    XenForo_BbCode_Formatter_Base->renderTree() in XenForo/BbCode/Parser.php at line 505
    XenForo_BbCode_Parser->render() in XenForo/ViewPublic/Forum/View.php at line 61
    XenForo_ViewPublic_Forum_View->renderRss() in XenForo/ViewRenderer/Abstract.php at line 227
    XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/Rss.php at line 31
    XenForo_ViewRenderer_Rss->renderView() in XenForo/FrontController.php at line 572
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    XenForo_FrontController->run() in /home3/unkn0wn/public_html/forums/index.php at line 13

from here:
http://portalcentric.net/forums/forums/free-ps-unban-ids.146/index.rss

i really don't know what is going on here... people on my site getting frustrated because of all of this

4Xa7Q.png


Code:
ErrorException: call_user_func(::renderTagUrl) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback - library/XenForo/BbCode/Formatter/Base.php:664
Generated By: Ice_men, 1 minute ago
Stack Trace

#0 /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(664): XenForo_Application::handlePhpError(Array, Array, Array, Object(EWRutiles_Staff_BbCode_Formatter))
#1 /home3/unkn0wn/public_html/forums/library/BBM/BbCode/Formatter/Base.php(559): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#2 /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(575): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#3 /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(488): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#4 /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#5 /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Formatter/Base.php(449): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#6 /home3/unkn0wn/public_html/forums/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#7 /home3/unkn0wn/public_html/forums/library/XenForo/ViewPublic/Forum/GlobalRss.php(43): XenForo_BbCode_Parser->render('[B]Hello Portal...')
#8 /home3/unkn0wn/public_html/forums/library/XenForo/ViewRenderer/Abstract.php(227): XenForo_ViewPublic_Forum_GlobalRss->renderRss()
#9 /home3/unkn0wn/public_html/forums/library/XenForo/ViewRenderer/Rss.php(31): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Rss', Array, '')
#10 /home3/unkn0wn/public_html/forums/library/XenForo/FrontController.php(572): XenForo_ViewRenderer_Rss->renderView('XenForo_ViewPub...', Array, '', NULL)
#11 /home3/unkn0wn/public_html/forums/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Rss), Array)
#12 /home3/unkn0wn/public_html/forums/index.php(13): XenForo_FrontController->run()
#13 {main}

Request State

array(3) {
  ["url"] => string(50) "http://portalcentric.net/forums/forums/-/index.rss"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

ok nm i think i fixed it i forgot to edit the base.php when i re-install xenforo
 
Last edited:
@XxUnkn0wnxX
See the point 5 of the FAQ. P.S: You should ask your host to upgrade your php version.

@tjohn67658 @fly_indiz
The problem was recreated on my local installation and will be fixed in the next version. The problem was ultra basic (I've used a break inside a continue in a loop. Since my tests were done on the LTR editor config, which is the first of the loop, I didn't have that problem). To debug this kind of bug, you should have contacted me by pm, it would have been fixed in less than 30 minutes.
 
@cclaerhout send me yahoo id :(
I'm not sure to understand. Use PM for this. Thanks.

The preview of the 2.3.0 version has been put on Github.

Change log:
It's now possible to override the editor type (XenForo Redactor or TinyMCE Quattro) by Controller/View or forums. In simple words, if you want to use a custom config of MCE4 in a forum (or by Controller/View) whereas your default configuration is using the XenForo default editor, you can now. The opposite is also possible.

Since key parts of the code has been modified, I will test it on my boards first. Feel free to test it and contact me by pm for your feedback (even if everything is working for you).
 
Back
Top Bottom