NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 10-15-2006 13:10:32

Pinkie
Member

Banners depending on the template used

Simply insert:

Code:

<?php

    $b_template = "../normal/templates/{$template_name}.gif";

if (file_exists ($b_template)) {
    echo '<img src="'.$b_template.'" border="0" /><br />'."";
}
?>

into the "edit banner" part. Replace ../normal/templates/ with the correct adress where the banner files are stored. Change .gif to any other extension you like.

All banners must be in the same file formatt and lcoated in teh same directory. They shoudlfollow the pattern: template_name.extension.

e.g.

aoi.gif
blueness.gif
classic.gif
banana.gif

etc.

Offline

#2 10-15-2006 16:56:16

sfox8
Member

Re: Banners depending on the template used

I had another way of doing this but yours is much simpler. thanks for posting 8D

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB