BbCodes & Buttons Manager

BbCodes & Buttons Manager 3.3.5

No permission to download
Would be great if permission-enabled BB Codes worked with Better Blogs. Currently it doesn't.
If Rigel could have a look it would be nice. A quick trick is to add the "posts" key (with the id of "posts") to " $this->_params" which would be sent to the Bb Code formatter. If another key is used, he can check and modify this file starting from line 1162.
 
  • Like
Reactions: DRE
Hello!
I recently created an [embed] bbcode...
It worked like such
[embed]link[/embed](I even tried)
[embed="[B]link[/B]"]

What it would do is place link within an iframe src... i.e.
<iframe src="link"></iframe>

It works like a charm on the "Help" page... but in actualy posts, the link suddenly has " " and "" wrapped around it, causing it to not display what I want, completely screwing up the link.

Does anyone have any ideas on how I could fix this? All help is appreciated.
(P.S. I'm trying to embed google drive documents in posts)[/embed]
 
Hello!
I recently created an [embed] bbcode...
It worked like such
[embed]link[/embed](I even tried)
[embed="[B]link[/B]"]

What it would do is place link within an iframe src... i.e.
<iframe src="link"></iframe>

It works like a charm on the "Help" page... but in actualy posts, the link suddenly has " " and "" wrapped around it, causing it to not display what I want, completely screwing up the link.

Does anyone have any ideas on how I could fix this? All help is appreciated.
(P.S. I'm trying to embed google drive documents in posts)[/embed]
 
about 1 or 2 times a day i get a flood of server errors (like 10-15 pages of them) with errors like this below, not sure if its this add-on or the wiki side, wiki dev seems to think its this add-on.

PHP:
ErrorException: Array to string conversion - library/BBM/BbCode/Formatter/Base.php:344
Generated By: Unknown Account, 6 min ago
Stack Trace

#0 /var/www/vhosts/****/httpdocs/library/BBM/BbCode/Formatter/Base.php(344): XenForo_Application::handlePhpError(8, 'Array to string...', '/var/www/vhosts...', 344, Array)
#1 [internal function]: BBM_BbCode_Formatter_Base->replacementMethodRenderer(Array, Array, Object(BBM_BbCode_Formatter_Base))
#2 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(646): call_user_func(Array, Array, Array, Object(BBM_BbCode_Formatter_Base))
#3 /var/www/vhosts/****/httpdocs/library/BBM/BbCode/Formatter/Base.php(546): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#4 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(557): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#5 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(481): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#6 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(462): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#7 /var/www/vhosts/****/httpdocs/library/BBM/BbCode/Formatter/Base.php(345): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#8 [internal function]: BBM_BbCode_Formatter_Base->replacementMethodRenderer(Array, Array, Object(BBM_BbCode_Formatter_Base))
#9 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(646): call_user_func(Array, Array, Array, Object(BBM_BbCode_Formatter_Base))
#10 /var/www/vhosts/****/httpdocs/library/BBM/BbCode/Formatter/Base.php(546): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#11 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(557): BBM_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#12 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(481): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#13 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(462): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#14 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Formatter/Base.php(442): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#15 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#16 /var/www/vhosts/****/httpdocs/library/XenForo/BbCode/TextWrapper.php(117): XenForo_BbCode_Parser->render('[U][B]Ship Upgr...', Array)
#17 /var/www/vhosts/****/httpdocs/library/EWRcarta/ViewPublic/PageView.php(28): XenForo_BbCode_TextWrapper->__toString()
#18 /var/www/vhosts/****/httpdocs/library/XenForo/ViewRenderer/Abstract.php(227): EWRcarta_ViewPublic_PageView->renderHtml()
#19 /var/www/vhosts/****/httpdocs/library/XenForo/ViewRenderer/HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('EWRcarta_ViewPu...', 'Html', Array, 'EWRcarta_PageVi...')
#20 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(572): XenForo_ViewRenderer_HtmlPublic->renderView('EWRcarta_ViewPu...', Array, 'EWRcarta_PageVi...', NULL)
#21 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#22 /var/www/vhosts/****/httpdocs/index.php(13): XenForo_FrontController->run()
#23 {main}

Request State

array(3) {
  ["url"] => string(57) "http://www.yourpshome.net/wiki/sodium-2-project-velocity/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
@Carla Birch
This is not coming from the Wiki addon, but may be from one bbcode and don't understand why. It can be fixed quite easily I guess, but before releasing a fix I prefer to understand the error, so if you can provide me a limited access to your ftp (only the folder of BBM librairy) it would be good enough. Could you also tell me which bbcode did you use inside the page where the problems occurs. Thanks.
 
This addon is using the replacement method to emulate the html tags using Bb Codes. You can easily recreate/convert these Bb Codes.

I also tried these BBCodes, but there is one problem. The table itself is working, but there are a lot of unnecessary line breaks.

BBCode Table.webp

I could disable line breaks for
with the option " Stop conversion of line breaks to HTML line breaks. ", but I need line breaks withing the other elements of the BBCode (Like in the ), but these line breaks should be only inside these BBCodes, not outside of them.

The BBCode I'm using:
Code:
[TABLE]
[TR]
[TD][B]Name:
Autor:
Übersetzer:
Spiel-Version:
Mod-Version:
Größe:[/B][/TD]
[TD]Proserpine Companion
Berseneva und zzjay
Dragon.C
Skyrim DV
1.0 (05.06.2013)
34,49 MB[/TD]
[/TR]
[TR]
[TD][B]Download:
Diskussion:[/B][/TD]
[TD][URL='http://www.scharesoft.de/joomla/index.php?option=com_remository&Itemid=27&func=fileinfo&id=2753']Scharesoft.de[/URL]
[URL='http://forum.scharesoft.de/showthread.php?47523-Proserpine-Companion-German']Hier Klicken[/URL][/TD]
[/TR]
[TR]
[TD][B]Optional:[/B][/TD]
[TD]Dunkle Haut mit Warpaint (2,52 MB)
CBBE Patch (11,11 MB)
[/TD]
[/TR]
[/TABLE]
[TABLE]
[TR]
[TD][B]Beschreibung:[/B][/TD]
[/TR]
[TR]
[TD][I]Proserpine, oder Proserpina war eine römische Gottheit. Sie war die Tochter des Jupiter und der Ceres und Gattin des Pluto, der sie in die Unterwelt entführte und zu seiner Gemahlin machte. Sie ist die Herrscherin über die Toten und Königin der Unterwelt. Sie entspricht der Persephone in der griechischen Mythologie.[/I]

Proserpine ist eine Nordkriegerin, trägt eine gebänderte Eisenrüstung, ein Zweihandschwert und ist essential (kann nicht sterben). Sie ist Standalone, das heißt es wird keine andere Mod benötigt. Man kann sie Heiraten und sie ist Kompatibel mit UFO. Zu finden ist sie in Jorrvaskr, oder drumherum.[/TD]
[/TR]
[TR]
[TD][B]Screenshots:[/B][/TD]
[/TR]
[TR]
[TD][URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_01.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_01.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_02.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_02.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_03.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_03.jpg[/IMG][/URL]
[URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_04.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_04.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_05.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_05.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_06.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_06.jpg[/IMG][/URL]
[/TD]
[/TR]
[/TABLE]
 
I also tried these BBCodes, but there is one problem. The table itself is working, but there are a lot of unnecessary line breaks.

View attachment 55797

I could disable line breaks for
with the option " Stop conversion of line breaks to HTML line breaks. ", but I need line breaks withing the other elements of the BBCode (Like in the ), but these line breaks should be only inside these BBCodes, not outside of them.

The BBCode I'm using:
Code:
[TABLE]
[TR]
[TD][B]Name:
Autor:
Übersetzer:
Spiel-Version:
Mod-Version:
Größe:[/B][/TD]
[TD]Proserpine Companion
Berseneva und zzjay
Dragon.C
Skyrim DV
1.0 (05.06.2013)
34,49 MB[/TD]
[/TR]
[TR]
[TD][B]Download:
Diskussion:[/B][/TD]
[TD][URL='http://www.scharesoft.de/joomla/index.php?option=com_remository&Itemid=27&func=fileinfo&id=2753']Scharesoft.de[/URL]
[URL='http://forum.scharesoft.de/showthread.php?47523-Proserpine-Companion-German']Hier Klicken[/URL][/TD]
[/TR]
[TR]
[TD][B]Optional:[/B][/TD]
[TD]Dunkle Haut mit Warpaint (2,52 MB)
CBBE Patch (11,11 MB)
[/TD]
[/TR]
[/TABLE]
[TABLE]
[TR]
[TD][B]Beschreibung:[/B][/TD]
[/TR]
[TR]
[TD][I]Proserpine, oder Proserpina war eine römische Gottheit. Sie war die Tochter des Jupiter und der Ceres und Gattin des Pluto, der sie in die Unterwelt entführte und zu seiner Gemahlin machte. Sie ist die Herrscherin über die Toten und Königin der Unterwelt. Sie entspricht der Persephone in der griechischen Mythologie.[/I]

Proserpine ist eine Nordkriegerin, trägt eine gebänderte Eisenrüstung, ein Zweihandschwert und ist essential (kann nicht sterben). Sie ist Standalone, das heißt es wird keine andere Mod benötigt. Man kann sie Heiraten und sie ist Kompatibel mit UFO. Zu finden ist sie in Jorrvaskr, oder drumherum.[/TD]
[/TR]
[TR]
[TD][B]Screenshots:[/B][/TD]
[/TR]
[TR]
[TD][URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_01.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_01.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_02.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_02.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_03.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_03.jpg[/IMG][/URL]
[URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_04.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_04.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_05.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_05.jpg[/IMG][/URL] [URL='http://dl1.scharesoft.de/screens/Skyrim/Proserpine_Companion_06.jpg'][IMG]http://dl1.scharesoft.de/screens/Skyrim/thumb/Proserpine_Companion_06.jpg[/IMG][/URL]
[/TD]
[/TR]
[/TABLE]

I'm developing a personnal wysiwyg table bbcode for Tinyquattro. The wysiwyg to bbcode integration seems to be finished, I just need to write now the bbcode to html code. As usual with my bbcodes, there will be the master tag (table) and the slave tags , so this problem will not occur.
Now to fix this with yours, try to trim 1 Line to see the results and may be set a margin 0 to some elements. See the H2 tag for reference.
 
Would it be possible to create something that is replaced on matching a regex? Like if message matches something by regex, it's replaced.
 
Would it be possible to create something that is replaced on matching a regex? Like if message matches something by regex, it's replaced.
For a content put inside a bbcode or its options, yes. For a full search & replace, there's an other addon I think (but I'm not sure). Otherwise use the XenForo Censoring option (doesn't allow regex), but you can find its class to modify it if needed (may be with XenForo 1.2 you can also extend its class, you will have to check).
 
Another great plugin by Cédric which I'm happy to use :) . I've found problem with using comma in spoiler title.
Code:
[spoiler="Text, text"]Show me[/spoiler]
Output crop title after comma:
Code:
<div class="bbCodeBlock bbCodeQuote bbmSpoilerBlock">
    <div class="attribution type">
        <span class="button_bbm_spoiler JsOnly" style="display: inline-block;">
            <span class="bbm_spoiler_show" style="display: inline;">Text (show)</span>
            <span class="bbm_spoiler_hide" style="display: none;">Text (hide)</span>
        </span>
    </div>
    <div class="quotecontent">
        <div class="bbm_spoiler" style="display: none;"><blockquote>Show me</blockquote></div>
    </div>
</div>
 
@Azaly
This is the default behaviour for options with the XenForo parser. For reference, you can check the file "library/XenForo/BbCode/Parser.php" and for example look at this part of the code:
Code:
if ($tagDelim == '"' || $tagDelim == "'")

In your case, the easiest solution is to double the quoted marks. Ie:
Code:
[spoiler=""Text, text""]Show me[/spoiler]

But to make this code works, you will have to make some small changes to the template "bbm_bbcode_spoiler" (my fault, sorry for this - I will update this in a future update):
Search for:
Code:
>{$options.1}
Replace with:
Code:
>{xen:raw $options.1}
 
@cclaerhout, I've edited bbm_bbcode_spoiler, but problem is still there :confused:.
Code:
[spoiler=""Text, text""]Show me[/spoiler]
Code:
<span class="bbm_spoiler_show" style="display: inline;">"Text (show)</span>
            <span class="bbm_spoiler_hide" style="display: none;">"Text (hide)</span>
 
Would it be possible to create something that is replaced on matching a regex? Like if message matches something by regex, it's replaced.
For the record, with XenForo 1.2, you can now extend the function "preFilterText" from the formatter:
Code:
  /**
    * Allows the text to be filtered before parsing.
    *
    * @param string $text
    *
    * @return string
    */
   public function preFilterText($text)
   {
     return $text;
   }

That should help you.

@cclaerhout, I've edited bbm_bbcode_spoiler, but problem is still there :confused:.
Code:
[spoiler=""Text, text""]Show me[/spoiler]
Code:
<span class="bbm_spoiler_show" style="display: inline;">"Text (show)</span>
            <span class="bbm_spoiler_hide" style="display: none;">"Text (hide)</span>
The problem seems to come from XenForo 1.1.x ; it might be a bug that has been fixed. I'm not sure.
 
By the way, the demo spoiler bbcode content looks bad on the last XenForo version. To fix this, the template "bbm_bbcode_spoiler.css" must be edited:
Just put that code at the top and save it:

Code:
.bbmSpoilerBlock .quotecontent > .bbm_spoiler > blockquote
{
   {xen:property bbCodeQuoteMessage}
}
 
Last edited:
@Azaly

Sorry, it has nothing to do with XenForo 1.1.x, it's probably because you're using the coma as a general option separator. I'm personally using this symbol: |
Anyway, don't mess your global configuration to change the global separator, just edit your bbcode and set a new separator symbol for the options of this bbcode only; use | or a any other rare character.
 
Sorry, it has nothing to do with XenForo 1.1.x, it's probably because you're using the coma as a general option separator. I'm personally using this sign: |
Anyway, don't mess your configure to change the global separator, just edit your bbcode and set a new separator sign for bbcode options (use | or a rare sign)
I'm using 1.2.1 version of Xenforo. And after I've changed separator from default («, ») to «|» problem is out. Thank you!
 
I'm using 1.2.1 version of Xenforo. And after I've changed separator from default («, ») to «|» problem is out. Thank you!
If you have any other bbcodes using [coma+blank] as separtor, don't modify the global options:
bbmspoiler01.webp
But modify it here
bbmspoiler.webp

If you don't have any other bbcodes using [coma+blank] as separtor, don't hesitate to modify the goblal option.

I will add this post to the FAQ.
 
Top Bottom