PDA

View Full Version : Sponsored by banners... (not that firefly hack though)


Gutspiller
04-13-2003, 10:11 PM
I don't want little dinky images in my catagory bar, because of other stuff I have in there, I would like the ability to put banners inbetween certain catagories.

Something like this would be really good and would really help those sites out there that are looking for better funding.

Please help.

The_Cyberdemon
04-14-2003, 01:53 PM
you could do somethign like this:

Open up INDEX.PHP.

Find:
if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}

Add Below:
if ($forum[title]==1) {
$showbanner = "<tr align="center"><td align="center"><img src="2"></td></tr>";
} else {
$showbanner = "";
}


Then, put at the very top of your forumhome_forumbit_level1_nopost template (under the FORUM HOME PAGE TEMPLATES category)
$showbanner

Now, here's the important part. Replace 1 with the EXACT CATEGORY TITLE of the category that the banner will be ABOVE. So if you wanted the banner to be under the category "horse stuff", you would put the 1 as the category below it.
Then, replace the 2 with the url of your banner. YOu can repeat the IF statement above as many times as you need, putting the different category titles in it. This should work, but i haven't tested it.