NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

Post a reply

Write your message and submit
Options
Humanity test

What is two + ten?

Go back

Topic review (newest first)

Sadil
01-24-2007 18:01:33

I know myself that I base my template off the header banner. I like to give members the option to pick between multiple templates, but some banners may look horribly off.

That's why I made a simple code that allows you to change your banner along with the template. It's quite simple. :3

Code:

<?
if($template_name == 'NAME OF YOUR TEMPLATE')
{
?>

Your banner stuff goes here


<?
}
?>

You can add as many of these codes as you like. Just make sure you use the exact same template name. When that template is picked, the right banner will be displayed. ^^ So, A working example would be:

Code:

<?
if($template_name == 'Midnight')
{
?>

<div style="width:100%; height:120px; background-image:url(resource/banner.png); background-repeat:no-repeat; background-position:right;">
<h1>Name of your Oekaki!</h1>
</div>


<?
}
?>



<?
if($template_name == 'Spring')
{
?>

<div style="width:100%; height:120px; background-image:url(resource/banner_spring.png); background-repeat:no-repeat; background-position:right;">
<h1>Name of your Oekaki!</h1>
</div>


<?
}
?>

Please note that this only works with Wacintaki 1.3.6 for as far as I know. I use this code myself for 3 different templates right now and they all work. :3
http://www.hakai.org

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB