BbCodes & Buttons Manager

Unmaintained BbCodes & Buttons Manager 3.3.5

No permission to download
Version 2.6.0 released
  • Update the grid of the XenForo Redactor Editor for the current version of XenForo 1.3.x
    Notes:
    1. The "quote", "code", "strike-through" buttons are not independant anymore (see this suggestion) and have been replaced with the insert menu button
    2. The grid of XenForo 1.2 will still work on XenForo 1.2, don't worry for this
  • Fix a php 5.3.x incompatibliy problem - Thanks to Janmaat
  • Add a feature to check and fix the Bbm sql tables & columns
  • Small modification in the get buttons function to manage the unique Bb Code identifier

Attachments

  • bbmtools.webp
    bbmtools.webp
    26.8 KB · Views: 46
  • Like
Reactions: Gonanda and Janmaat
Version 2.5.2 released
  • New UI for several parts of the buttons section:
    • TinyMCE Quattro Buttons Helper
      • XenForo set
        xenSet.webp

      • TinyMCE set
        mceSet.webp
    • XenForo Redactor Buttons Helper
      redactorHelper.webp

      (a click on the icon will preselect the icon, then you can adjust its position)
    • Buttons section have been reorganised
    • The TinyMCE Quattro button options will only display if the addon is installed
Version 2.5.1 released
  • Add a tiny fix to detect correctly the editor config on tablets
Version 2.5.0 released

This release focuses on making easier the Bb Code developement.
  • Add new development settings in the Bb Codes options (only available in debug mode) :
    • The Bb Code Unique Identifier
      To use with the new listener (see below)
    • The Bb Code Addon attribution
      (Work in progress: the code is there but can't be seen)
  • Add two new XenForo listeners for the BBM addon:
    • bbm_callback_template_cache
      The first one, bbm_callback_template_cache, is another way to cache extra templates in the view.
    • bbm_callback_template_pre
      The second one, bbm_callback_template_pre, is to use with the template rendering method. It is only available for Bb Codes with an Unique Identifier. It can replace the original template callback. Both can also work together (the listener is executed after).

      These two listeners are fully documented
  • Add new functions available in the callbacks (or bbm_callback_template_pre listener) using the $parentClass argument.
    • $parentClass->getTextDirection($optionalArgument);
      Without an argument, it returns "ltr" or "rtl".
      Compatible arguments:
      • 'align' or 'float' (returns left or right)
      • 'padding' (returns padding-left or padding-right)
      • 'margin' (returns margin-left or margin-right)

      Use this function to adapt your Bb Code code according to the user language direction

    • $parentClass->getRequestPath($optionalArgument);
      Without any argument, it returns the request Uri.
      Compatible arguments:
      • 'request Uri' (returns the request Uri)
      • 'fullBasePath' (returns the fullBase path)
      • 'fullUri' (returns the full Uri)
      • 'all' (returns an array with the three information)

      Use this function if you need html anchors
  • The return of the parentClass function "getTagExtra" has been modified. When nothing is found, the return is now "null" instead of "false".

  • Add a Bb Code helper with a library of functions that can be usefull. Class: "BBM_Helper_BbCodes". To see available functions/variables, please check the class on Github directly. They have been commented. [Github source]

Attachments

  • devsettings1.webp
    devsettings1.webp
    38.5 KB · Views: 37
  • devsettings2.webp
    devsettings2.webp
    83.5 KB · Views: 38
Version 2.4.0.1 released
  • JavaScript fix when the editor has no custom buttons
Version 2.4.0 released

  • New way to add buttons to Redactor (thanks to Sonnb). See more information here.
  • The fields "BbCode content" & "BbCode options" which allow to set
    either a content or some options for a BbCode are now compatible with the XenForo Redactor editor.
  • Array key check with the direct remplacement method
Version 2.3.5 released
  • Add a JavaScript fix for the integration of buttons with the XenForo Redactor editor. This fix would avoid any errors when other addons (for example the XenGallery addon) try to extend the datas of the Redactor element.
    Thanks to @Sonnb
  • Add a fix to the Editor Checker for XenForo 1.1.x
    Thanks to @jonoathome
  • Some phrases have been modified

P.S: When another addon extends one of the editors with a new button, this button must be recreated with the Bbm using an "orphon button" to be able to position it inside the editor. Check the paragraph 10 of the FAQ. The most important thing is to know the button code name.
Version 2.3.4 released
  • Fix editors checker
  • Fix nested Bb Codes permissions
Thanks to @Fly_indiz


This update is highly recommended for all websites using permissions with their BB Codes.
Version 2.3.3 released
  • Bb Code Empty content checker fix when content is the number 0
    Thanks to @KiF
  • TinyMCE/XenForo Redactor checker
    Ie:
    • On XenForo 1.1.x, XenForo Redactor button configurations will not be dispayed
    • On XenForo 1.2.x, TinyMCE button configurations will not be displayed if you don't have installed the TinyMCE Quattro addon or if it's disabled
    Thanks to @fly_indiz
Version 2.3.2 released
  • Fix a bug when saving a Redactor Config (the custom buttons icons were reset). Thanks to @Kif
Explanation: when saving an editor config, the buttons data are retrieved with a custom request to the database. This request targets only the needed fields to avoid to insert unnecessary data in the registry. I forgot to add the new fields for Redactor Css Icons among the needed fields list, so the redactor button configuration was reset (since it was blanked) when saving the config. This should work far more better like this ;)

Github Reference
Top Bottom