BbCodes & Buttons Manager

BbCodes & Buttons Manager 3.3.5

No permission to download
I've exported the BB codes from the previous version. Two of them have buttons but I don't need them now. When I try to import I get
You have selected a button with an icons set for TinyMCE Quattro. You must then set the unicode of that button in the "Button type option" field.
Can you please tell me what to do to disable the button and import successfully these BBcodes?

Problem is that no BB code is imported

Thanks!
 
This is the code of the premium BBCode I need. I've tried to replace the <button> section with an empty one but the error is always here
Code:
<BbCode>
    <General>
      <tag>premium</tag>
      <title><![CDATA[Premium]]></title>
      <description><![CDATA[Display Premium Content only for Premium Members]]></description>
      <example><![CDATA[[premium]Premium Content[/premium]]]></example>
      <active>1</active>
      <display_help/>
    </General>
    <Methods>
      <Replacement>
        <start_range><![CDATA[]]></start_range>
        <end_range><![CDATA[]]></end_range>
        <options_number>1</options_number>
      </Replacement>
      <Template>
        <active/>
        <name/>
        <callback_class/>
        <callback_method/>
      </Template>
      <PhpCallback>
        <class>PremiumBBcode_BbCode_Formatter_PremiumMembersBBcode</class>
        <method>parseTagSPremium</method>
      </PhpCallback>
    </Methods>
    <ParserOptions>
      <stopAutoLink/>
      <parseOptions/>
      <regex/>
      <trimLeadingLinesAfter>0</trimLeadingLinesAfter>
      <plainCallback>0</plainCallback>
      <plainChildren>0</plainChildren>
      <stopSmilies>0</stopSmilies>
      <stopLineBreakConversion>0</stopLineBreakConversion>
      <wrapping_tag/>
      <wrapping_option/>
      <emptyContent_check/>
    </ParserOptions>
    <ParserPerms>
      <parser_has_usr/>
      <parser_usr/>
      <parser_return/>
      <parser_return_delay/>
    </ParserPerms>
    <ViewPerms>
      <view_has_usr/>
      <view_usr/>
      <view_return/>
      <view_return_delay/>
    </ViewPerms>
    <Button>
      <hasButton>1</hasButton>
      <button_has_usr>1</button_has_usr>
      <button_usr>a:3:{i:0;i:3;i:1;i:4;i:2;i:12;}</button_usr>
      <killCmd>0</killCmd>
      <custCmd/>
      <quattro_button_type/>
      <quattro_button_type_opt><![CDATA[]]></quattro_button_type_opt>
      <quattro_button_return/>
      <quattro_button_return_opt><![CDATA[]]></quattro_button_return_opt>
      <imgMethod>Direct</imgMethod>
      <buttonDesc><![CDATA[Premium]]></buttonDesc>
      <tagOptions><![CDATA[]]></tagOptions>
      <tagContent><![CDATA[]]></tagContent>
      <redactor_has_icon/>
      <redactor_sprite_mode/>
      <redactor_sprite_params_x/>
      <redactor_sprite_params_y/>
      <redactor_image_url><![CDATA[]]></redactor_image_url>
    </Button>
  </BbCode>
 
I've exported the BB codes from the previous version. Two of them have buttons but I don't need them now. When I try to import I get

Can you please tell me what to do to disable the button and import successfully these BBcodes?

Problem is that no BB code is imported

Thanks!
A fix has been provided on Github. You can modify this file yourself, it's easy (otherwise you can download the full version here).
 
The import worked but the [premium] BB doesn't. There something I've to do so that all the [premium] BB used in the past messages are parsed and the content shown only to the specified UG?
 
The import worked but the [premium] BB doesn't. There something I've to do so that all the [premium] BB used in the past messages are parsed and the content shown only to the specified UG?
Yes, see the screenshot I gave you. You must configure view perms.

Edit: one thing, the premium BbCode before didn't use the same way, so I recommend you to see how is working the protected Bb Code, rename it to premium and custom your template.

With the previous addon, the html was inside a php file. Now it's a template. You can do what you want with it. Check the examples provided with the addon.
 
I'm very sorry but I'm not a programmer so I'm not able to understand wht you're telling me. I'd just like to make the tag premium to work. If you can help me I'll be very grateful to you...
 
1) check the admin first page of XenForo. If you've got this message, you need to follow the instructions.
2) this addon is provided with a "protected" Bb Code. Open it, go to the parser method, you will see it's a template Bb Code with a template name: "bbm_bbcode_protected". You open this template, you see how it works (should be easy, you don't need to be a coder for this) and you can customize it with the message you want, the css you want, etc.
 
Ok I can confirm that it's working. Two questions

This is what the members see

Schermata 2013-11-04 alle 18.51.32.webp

And the visitors doesn't see anything. It's not possible to style differently the members message and to make something appear for the visitors? In the old version that was possible...
 
Ok I can confirm that it's working. Two questions
This is what the members see
View attachment 60549
And the visitors doesn't see anything. It's not possible to style differently the members message and to make something appear for the visitors? In the old version that was possible...
I can answer your questions but
1) I'm tired and I really want to go to bed
2) I would be really easier if you can take 5 minutes to read the options inside the Bb Codes options.

I don't think you need to configure any "parser permissions" for what you want to do. View permissions should be enough.
Both parser permissions and view permissions have a "Unauthorised Return" option. This option should be set on "template". The example provided with the "protected" bb code template will manage the different kind of return. Once again, take a look at it, I put here it's content, it's not that hard to understand:
HTML:
<xen:require css="bbm_bbcode_protected.css" />
<xen:if is="!{$rendererStates.canUseBbCode}">
  <span class="bbm_bb_can_not_use">{xen:phrase bbm_bbcode_cant_use_bbcode}</span>
<xen:elseif is="!{$rendererStates.canViewBbCode}" />
  <div class="bbm_bb_protected_desc">{xen:phrase bbm_bbcode_protected_content_title}</div>
  <div class="bbm_bb_protected_content">{xen:phrase bbm_bbcode_protected_cant_view_bbcode}</div>
<xen:else />
  <div class="bbm_bb_authorised_desc">{xen:phrase bbm_bbcode_authorised_content_title}</div>
  <div class="bbm_bb_authorised_content">{xen:raw $content}</div>
</xen:if>

If the user can not use the bb code, then display this phrase (inside a span)
If the user can not view the bbcode, then display this phrase (inside a div)
Otherwise display the content

As you can see there's a require css template, so you can modify the style easily.
 
Solved everything and many thanks for your support. I've only to discover how to create a new button for redactor :whistle:
Open the Bb Code, there's a tab to configure the button. The XenForo Redactor part is at the bottom. If you want to configure the css manualy, check pharagraph 6 of the FAQ, if you don't find icons you need, check paragraph 9 of the FAQ.
 
cclaerhout updated BbCodes & Buttons Manager with a new update entry:

Version 2.3.1 released

Version 2.3.1 released
  • Since XenForo 1.2 allows it thanks to a very convenient listener, I integrated the patch to support BbCodes inside tags options in this addon as an option.
    Reason: I don't like to edit php files when I upgrade XenForo
    Inconvenient: One XenForo function is overridden and not extended (was not possible), now I doubt this function will be updated unless...

Read the rest of this update entry...
 
Just curious what function was overridden?
By default: none.

You have to enable this option (check its description to see which function is overriden):
bbcodesinsidetagsoption-png.60680
 
Top Bottom