BbCodes & Buttons Manager

Unmaintained BbCodes & Buttons Manager 3.3.5

No permission to download
Version 3.2.0 released
  • Fix Bb Codes tag map when:
    1. using Bb Codes inside Bb Code option
    2. when a child method calls its parent and still uses the subtree rendering (the tag map creator was counting it twice)
  • Fix a problem with the simple cache data
  • Fix help page permissions
  • Fix Bb Codes permissions with the conversation preview (new message or edited message)
  • Add a new option for Bbm Custom Bb Codes that allows to trim their content (disabled by default)
    • This option is the same than XenForo is using for its spoiler Bb Code but has been globalized as an option for Bbm Bb Codes
    • To see why it's needed, just create a block Bb Code and inside it add a list ; without this option you will have an ugly white space at the top
  • Add an option to bypass XenForo perms for images
  • Add an option to prevent double quotes marks to break with white space
    • Also available as a php helper (BBM_Helper_BbCodes::unbreakableQuote)
    • Also available as a template helper (bbm_unbreakable_quote)
  • Add an option to disable the Bb Codes permissions by view names
    • When the view name is matched some Bb Codes can also be disabled
  • Add files health check using the Xfrock dev helper tool
  • Update Font-Awesome to 4.3.0 version
  • [dev] Add an helper to get the Bb Code tag name by its uniq id

Special thanks to Xon again who has helped a lot for this release

Attachments

  • bbm_320_opt_misc.webp
    bbm_320_opt_misc.webp
    58.9 KB · Views: 71
  • bbm_320_opt_trim.webp
    bbm_320_opt_trim.webp
    60.3 KB · Views: 51
  • bbm_320_opt_viewname.webp
    bbm_320_opt_viewname.webp
    35.8 KB · Views: 51
  • Like
Reactions: Xon and Gonanda
Version 3.1.2 released
  • Fix a bug that prevented the viewing permissions to work with XenForo Bb Codes

This update is recommanded.
  • Like
Reactions: Xon and Gonanda
Version 3.1.1 released
  • Xon has improved the cache for the Bb Codes map by creating a "non-cached tag map on thread preview".
    Purpose: Allow protected content to show up in the thread/post preview ; if you have a Bb Code which can only be used by a group, a member of that group can see what it looks like when they preview a post.
  • Xon has also proceeded to a few modifications to improve performance
  • Some Bb Codes (such as some of the the Bbm Advanced Bb Codes) might use an helper that check the integrity of the Bb Codes content after some modifications have been done. There are two ways of checking the content html:
    1. One is done with the PHP Dom functions ; that's the default one and should work on installations with PHP 5.3.x at least
    2. The other is done by an external class, it had some bugs (it was trying to do too much whereas it was not necessary). They have been fixed.
    There's now an option to select which method you want to use. Again, the first one (PHP Dom) should not cause any issue. I've tested it quite a lot with the addon ToggleMe.
  • There was a fix for the replacement method fix: when a Bb Code coded with this method had a wrapper Bb Code, the index option was missing, so a conditional has been updated to avoid this. T
    Thanks to Gossamer.

I think that's all for this commit, Xon again did a lot, if I've missed something, he will tell me and I will add it here :)

Attachments

  • htmlfix.webp
    htmlfix.webp
    36.8 KB · Views: 40
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 to use the intensively the php uniqid function (source)
  • Hide XenForo button when its XenForo Bb Code parsing permission (based on the Visitor object) is disabled. Only works with the following Bb Codes : email, url, img & media. The "targeted nodes" option is ignored (can get node information in this part of the script).
  • Some events are now using hints to improve performance (done by Xon)

Note:
Xon is now a contributor on the Github branch, which means he should now have access to version on Github and update it if needed. You can fully trust his commits: he's serious & reactive, knows how to code very well and always take care of improving performance. A big thank to him.

Attachments

  • TagsMapCache.webp
    TagsMapCache.webp
    35.8 KB · Views: 43
Version 3.0.4 released
  • Add a missing variable (when no XenForo Bb Codes are available)

This is just a tiny update ;)
  • Like
Reactions: Ezenity and Gonanda
Version 3.0.3 released
  • Fix an issue with the preCache method (tested with the dice Bb Code) - Thanks to derpyhooves
  • Add a few functions for Bb Code developers
  • Like
Reactions: Ezenity and Gonanda
Version 3.0.2 released
  • Add a function to check buttons when saving a configuration. This will prevent to register any invalid buttons
  • Fix a Redactor plugin problem to be sure it loads on any browsers:
    On Chrome, the Redactor plugin JS object was loaded before the editor configuration initialization. On Firefox, it was the opposite.
    Thanks to Case
  • Fix and update the mini-parser (related to Bb Code protection) to prevent a malformed closing tag to break the page layout
    Thanks to Case
  • Add Font-awesome 4.2.0 support with its new icons

Version 3.0.1 released
  • Add array key check to prevent errors with the XenForo Redactor Configuration - Thanks to Tize
  • Like
Reactions: Ezenity and Gonanda
Version 3.0.0 released
  • Buttons manager rewritten (php & js)
  • XenForo Custom Bb Codes buttons can be managed directly in the BBM Buttons Manager, for both editors: XenForo Redactor & TinyMCE Quattro.
    • With the XenForo Redactor editor, once the button positioned inside the Bbm config, the new location will override the original location that should have had this button
    • With the TinyMCE Quattro editor, the XenForo Custom Bb Code button action will only be to insert the tag inside the editor, which means if a developer had coded a custom callback for this Redactor button, he will have to code it as well for the TinyMCE Quattro framework (which won't be a problem at all). They will have their original icon
  • Bbm Bb Codes can set a "text button" for the XenForo Redactor editor. For the TinyMCE Quattro editor this feature has been there since the beginning.
  • Bbm Bb Codes can have a button using a Font-Awesome icon for both editors. An helper has been created to make the selection easier
  • Modification done to the code to avoid bugs with other addons - Thanks to Pegasus
  • Modification done to one Bb Code helper - Thanks to Xon - implementation of a function to tidy html code
  • Improvement of the Buttons Manager Tooltip (disable during sorting operation)

Notes:
  1. this version has been tested on a fresh install & during an update
  2. The TinyMCE Quattro addon will have to be updated to support new functions. The update is ready. It will be released in a few minutes.

Attachments

  • custpos.webp
    custpos.webp
    40 KB · Views: 53
  • custpos2.webp
    custpos2.webp
    5.5 KB · Views: 53
  • fabtn00.webp
    fabtn00.webp
    34.9 KB · Views: 52
  • fabtn01.webp
    fabtn01.webp
    88.4 KB · Views: 351
  • fabtn02.webp
    fabtn02.webp
    7.8 KB · Views: 50
  • quattro_new_01.webp
    quattro_new_01.webp
    105.3 KB · Views: 364
  • quattro_new_02.webp
    quattro_new_02.webp
    34 KB · Views: 52
  • quattro_new_03.webp
    quattro_new_03.webp
    19.9 KB · Views: 51
  • textbtn01.webp
    textbtn01.webp
    32.8 KB · Views: 51
  • textbtn02.webp
    textbtn02.webp
    8 KB · Views: 53
Version 2.8.3 released
  • Improve xml security on XenForo installations that have been updated with the Zend xml tester.
    To be clear: there was only a risk if you imported a malicious BbCode xml. So if you download files from authenticated developers, it's not a problem. If you didn't have updated to the last XenForo patched versions, this xml Bbm BbCodes importation will still work: it's up to you to decide to update XenForo or not.

  • The tags map is now compatible with the preCacheBase system: the tags incremention data has to be reset before the loop. With this you can also get the post information (ie: postid) during the second loop.
    Info: I will publish a demonstration of a Bb Code using this preCache system which advantage is for example to only use 1 database request instead of several by page. See attached images.

Attachments

  • dices_demo.webp
    dices_demo.webp
    14.3 KB · Views: 49
  • dices_properties.webp
    dices_properties.webp
    44.3 KB · Views: 48
  • Like
Reactions: Ketola and Gonanda
Top Bottom