1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Displaying the code/php content for specific usergroups

Discussion in 'XenForo Development Discussions' started by Floren, Jun 20, 2011.

  1. Floren

    Floren Well-Known Member


    I plan to display the content of code/quote/php/etc to specific usergroups in specific nodes.
    To change the behaviour how the BbCode is displayed is quite easy with a load_class_bb_code listener:
    class Product_BbCode_Formatter_Protected extends XFCP_Product_BbCode_Formatter_Protected
    public function getTags()
    $this->_tags = parent::getTags();
    // process bbcode here..
    return $this->_tags;
    What listener should I use to grab the nodeid? It has to be related to displaying the thread or post content... Once I have the nodeid validated, I will either load the regular BbCode class or the protected one.

    Thanks for your help.

Share This Page