Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Adding a new BBcode
by Iggy80 on 2005/12/15 14:38:11

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

Who's Online

157 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

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

Latest GitHub Commits