Topic: PunBB Logo Addon for 1.2
To be honest, i don't know if this goes here, but i think it would be useful for someone.
I've just posted the same in www.punres.org .
Ok, here we go...
Just open header.php and go to the line 137, you'll se something like this
// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);
// END SUBST - <pun_title>
I have replaced the string
<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>
with a flash code.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" width="640" height="480">
<param name="movie" value="index.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<embed src="index.swf" quality="high" bgcolor="#000000"
width="480" height="60"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
It looks like this.
// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" width="640" height="480">
<param name="movie" value="index.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<embed src="index.swf" quality="high" bgcolor="#000000"
width="640" height="480"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>', $tpl_main);
// END SUBST - <pun_title>
If anyone could make a simpler way to change it, i mean, some sort of option in the admin menu would be great.
ok... bye!
And if the day wont last,
And if the way should falter along the stony pass
It's just a moment, this time will pass!!