1
Iggy80
Adding a new BBcode
  • 2005/12/15 14:38

  • Iggy80

  • Just popping in

  • Posts: 11

  • Since: 2004/8/16


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

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 (cErik Bosrup --></script>

SAVE AND CLOSE
headinclude Template

Login

Who's Online

211 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits