PDA

View Full Version : Restrict viewing [code] tags


James Birkett
06-25-2009, 01:51 PM
How can I restrict the viewing of [code] [php] [html] ect, to unregistered/not logged in?

Dismounted
06-26-2009, 05:25 AM
The easiest way to do this is to disable post caching, then alter the BB code handlers to use your own callback (look in class_bbcode.php). In that callback, check the logged-in status of the member, and change the display according to this.