1. Приветствуем Вас на неофициальном форуме технической поддержки XenForo на русском языке. XenForo - коммерческий форумный движок от бывших создателей vBulletin, написанный на PHP.

BbCodes & Buttons Manager

Плагин позволяет создавать BB-коды и вставлять кнопки для редактора


    • Modify a part of the code to make it compatible with versions of PHP below 5.5
    • Small fix for the 3.3.2 version with a variable. I still increment the addon version with x.x.x.1 to avoid any confusion.
    • Improve the "Buttons" helper
    • Add a "Phrase Wrapper" coded by Xon which improves performance and which doesn't require anymore to set phrases as global in the Bb Codes options. A big thank to Xon as usual.
    • Fix a bug with the "Bb Code" helper
    • The getSpecialTags fonction had two bugs that made it incompatible with several different special tags. Thanks to Aivaras
    P.S: The addon Stats & Charts Bb Codes needs this.

    • Check if some options have been installed before to use them
    • Explanation: when you upgrade the addon, the files are first replace, then the xml is used to upgrade. The options are declared inside the xml files. If an option is not yet available (not installed) XenForo will return a null value, no matter your option was declared as an array. If in your code you use this option with a php function that requires an array and instead it gets a null, then the error occurs.
    • Xon added an option to only do pre-caching for tags that are sufficiently used
    Note that if you've upgraded to version 3.3.0 without any problems, you don't really need to do this upgrade.

    This update has mostly been operated by Xon. He focused on the Bb Code pre-cache system (to make it simple, this pre-cache system can be enabled with some Bb Codes that have been coded for to get and cache all data they need in the page from a single database request, then to parse them using the collected data). The page loading time (for one that had a lot of Bb Codes) was reduced from 2s to about 0.7s. A big thank to him.
    • The pre-cache system has been optimized (read above)
    • The tag map routine has been fixed when invalid tags were triggered after the maximum Bb Codes depth limit was reached
    • The code has been tweaked to get rid of an useless section (cf class loader=> already done by PHP) and to assure the tag map remains accurate if other addons modify the view
    • Add permissions (parsing & viewing) for the XenForo Color Bb Code - Requested by Static-Xbox
    • Options layout & description have been modified to make the reading easier
    • A css attribute has been deleted to prevent any display issue with the new responsive admin section
Вернуться к списку обновлений...