• 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

Floren

Well-known member
#1
Hi,

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:
Code:
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.