BbCodes & Buttons Manager

BbCodes & Buttons Manager 3.3.5

No permission to download
@jOOc
I've tested, I don't have the issue. I can have a look to your board (contact me by pm with an admin access and a ftp access to the bbm libraries) but probably not this weekend. If you find time, I would be nice of you if you can disable other addons to check if there's not a conflict.
 
I've tested, I don't have the issue
Thx for checking.
I found the issue. It only happened in private nodes, and I had the permission "Disable url Bb Code" enabled form my user group :oops:

But if this permission were enabled shouldn't all URL bb codes have been unavailable then? For me only the first URL was.
 
cclaerhout updated BbCodes & Buttons Manager with a new update entry:

Version 3.1.0 released

Version 3.1.0 released
  • Xon added a cache system for the tags map. It must be enabled inside the options.
    Explanation: when a page is parsed, the Bbm creates a map of all the tags with their personal data. This operation can be intensive (it depends on how many Bb Codes there are), the cache system allows to improve performance.
  • For Bb Code developers (from a Xon idea): add a uniqid function in the formatter (can be called from the callback).
    Purpose: avoid...

Read the rest of this update entry...
 
Do options get provided to the template in lowercase, or is the case preserved? If the case is preserved, can I force it to lowercase prior to checking within the template?
 
hello I want to create a picture of the link but link section will only be variable and picture stable
Example
[URL ='http://docs-google ' ][img='googledocsdownload.png'][/ img] [/ url]
[URL ='docs-google-page2 '][img='googledocsdownload.png'][/ img] [/ url]
2. example :)
[URL ='docs-mega '][img='megadocsdownload.png'][/ img] [/ url]
[URL ='docs-mega-page2 '][img='megadocsdownload.png'][/ img] [/ url]
How do make bbcode?
 
Last edited:
Do options get provided to the template in lowercase, or is the case preserved? If the case is preserved, can I force it to lowercase prior to checking within the template?
Yes :
  • Use a callback (you can set one using the listener "bbm_callback_template_pre") and modify the values using php functions
  • Simpler, in the template use this:
    Code:
    {xen:string strtolower, $options.1}

 
hello I want to create a picture of the link but link section will only be variable and picture stable
Example
[URL ='http://docs-google ' ][img='googledocsdownload.png'][/ img] [/ url]
[URL ='docs-google-page2 '][img='googledocsdownload.png'][/ img] [/ url]
2. example :)
[URL ='docs-mega '][img='megadocsdownload.png'][/ img] [/ url]
[URL ='docs-mega-page2 '][img='megadocsdownload.png'][/ img] [/ url]
How do make bbcode?
I don't really understand, you can use the two existed Bb Codes: img & url. If you want to make a single Bb Code, you will have to use html code to write it.
 
I just recently updated to the latest version of this mod, and I'm getting the following error (I've actually been getting it for a while, forming several pages worth of errors in a day):

Code:
Error Info
ErrorException: Undefined index: option - library/BBM/BbCode/Formatter/Base.php:479
Generated By: Saturn, 6 minutes ago
Stack Trace
#0 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(479): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/markedrp/...', 479, Array)
#1 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(1405): BBM_BbCode_Formatter_Base->replacementMethodRenderer(Array, Array, false)
#2 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(825): BBM_BbCode_Formatter_Base->wrapMe(Array, Array, '<div style="mar...')
#3 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(647): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#4 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(560): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#5 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(541): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#6 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(1443): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#7 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(464): BBM_BbCode_Formatter_Base->renderSubTree(Array, Array)
#8 [internal function]: BBM_BbCode_Formatter_Base->replacementMethodRenderer(Array, Array, Object(BBM_BbCode_Formatter_Base))
#9 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(740): call_user_func(Array, Array, Array, Object(BBM_BbCode_Formatter_Base))
#10 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(784): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#11 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(647): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#12 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(560): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#13 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(541): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#14 /home/markedrp/public_html/pandorarp.com/library/BBM/BbCode/Formatter/Base.php(1443): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#15 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Formatter/Base.php(521): BBM_BbCode_Formatter_Base->renderSubTree(Array, Array)
#16 /home/markedrp/public_html/pandorarp.com/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#17 /home/markedrp/public_html/pandorarp.com/library/XenForo/DataWriter/DiscussionMessage/Post.php(72): XenForo_BbCode_Parser->render('[CENTER][h1][FO...')
#18 /home/markedrp/public_html/pandorarp.com/library/XenForo/DataWriter/DiscussionMessage.php(345): XenForo_DataWriter_DiscussionMessage_Post->_checkMessageValidity()
#19 /home/markedrp/public_html/pandorarp.com/library/XenForo/DataWriter.php(1446): XenForo_DataWriter_DiscussionMessage->_preSave()
#20 /home/markedrp/public_html/pandorarp.com/library/XenForo/DataWriter.php(1385): XenForo_DataWriter->preSave()
#21 /home/markedrp/public_html/pandorarp.com/library/XenForo/ControllerPublic/Post.php(243): XenForo_DataWriter->save()
#22 /home/markedrp/public_html/pandorarp.com/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Post->actionSaveInline()
#23 /home/markedrp/public_html/pandorarp.com/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#24 /home/markedrp/public_html/pandorarp.com/index.php(13): XenForo_FrontController->run()
#25 {main}
Request State
array(3) {
["url"] => string(45) "http://pandorarp.com/posts/120536/save-inline"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["message_html"] => string(2058) "<p style="text-align: center;">[h1]<span style="font-family: 'times new roman', times;"><span style="color: #53a2e4;">AEON</span></span>[/h1]</p>
<p>[float=right]<img class="bbCodeImage wysiwygImage" src="http://i.imgur.com/yZhNbjc.png" alt="" />[/float]</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>[blockquote][blockquote][blockquote][blockquote][blockquote][blockquote][box=#53a2e4]<span style="color: #2b2b2b;"><span style="font-family: georgia, palatino;"><em>"lol nyx avatar does not love you"</em></span></span>[/box]</p>
<p style="text-align: right;">-- <span style="font-family: georgia, palatino;"><em>Nyx Avatar thinks u suk</em></span></p>
<p>[/blockquote][/blockquote][/blockquote][/blockquote][/blockquote][/blockquote]</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: center;">[h1]<span style="font-family: 'times new roman', times;"><span style="color: #53a2e4;">ELEANOR LAMB</span></span>[/h1][img]https://toddnash.files.wordpress.com/2011/04/bioshock2.jpg[/img]</p>
<p>[blockquote][blockquote][blockquote]Development: After spending her entire life stuck in an underwater city that had fallen apart and was filled with crazy people, also imprisoned by her mother to become the perfect human being and being injected with pretty much the memories and essence of other people...Eleanor is looking for a way to be herself. To not rely on her memories so much and to actually know what it's like to live as a normal person while gaining the experience she would've gained if she had lived a normal life. She also needs to let go of what happened in the past in regards to her mother and not hate her so much.</p>
<p>Priority: low - medium</p>
<p>Rank: 0</p>
<p>Date Start: n/a</p>
<p>Relevant Threads: n/a[/blockquote][/blockquote][/blockquote]</p>
<p>&nbsp;</p>
<p style="text-align: center;"><span style="font-size: 26px;"><span style="font-family: 'book antiqua', palatino;">This thread is for brainstorming for the Aeon Social Link only</span></span></p>"
["_xfRelativeResolver"] => string(53) "http://pandorarp.com/threads/aeon-lamb-eleanor.17517/"
["miugetcolor"] => string(7) "#123456"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(33) "/threads/aeon-lamb-eleanor.17517/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
I'm currently running XF 1.3.2. Thanks in advance for any help!
 
Oh, I tested further, and think I found the issue! I had a blockquote bbcode with "Do not parse if content is empty" checked. I unchecked that and the error doesn't come up anymore.

Sooo, hopefully I should be all set now. Thanks! :)
 
Oh, I tested further, and think I found the issue! I had a blockquote bbcode with "Do not parse if content is empty" checked. I unchecked that and the error doesn't come up anymore.

Sooo, hopefully I should be all set now. Thanks! :)
That still shouldn't happen ; so if you could send me by pm your Bb Code and your example, it would help.
 
Xon has improved the cache for the Bb Codes map by creating a "non-cached tag map on thread preview".
The primary purpose of this, is to allow protected content to show up in the thread/post preview.

So if you have a bbcode which can only be used by a group, a member of that group can see what it looks like when they preview a post.
 
The primary purpose of this, is to allow protected content to show up in the thread/post preview.

So if you have a bbcode which can only be used by a group, a member of that group can see what it looks like when they preview a post.
Update information updated ;)
 
  • Like
Reactions: Xon
Top Bottom