Displaying the code/php content for specific usergroups


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.