1
Hello!
I found a hack for the wBB and the phpbb board how you can add a special BBcode. The Stylesheet and the Overlib mhave to be integratet in the Template and the function to replace [item] Codesmust be integratet in the BBCode Parse function. Anyone can help me with that ? Thats how it works for the wbb board
le="color: #000000"><?php OPEN {forum_root}/acp/lib/class_parse.php FIND class parse { ADD-BEFORE include('./itemstats/bb_itemstats.php'); FIND // bbcodes if ($allowbbcode == 1) { if ($this->done['bbcode'] != 1) $this->getbbcode(); $post = preg_replace($this->search, $this->replace, $post); } else { $post = preg_replace("/javascript:/i", "java script:", $post); $post = preg_replace("/vbscript:/i", "vb script:", $post); } ADD-AFTER if ($allowbbcode == 1) { // itemstats mod by legedric $post = itemstats_parse($post); // end mod } SAVE AND CLOSE {forum_root}/acp/lib/class_parse.php OPEN headinclude Template over your wbb Admin Control Panel (acp) FIND $css ADD-AFTER <link rel="stylesheet" href="itemstats/templates/itemstats.css" type="text/css"> <script type="text/javascript" src="itemstats/overlib/overlib.js"><!-- overLIB (c) Erik Bosrup --></script> SAVE AND CLOSE headinclude Template