![]() |
How to show ad only on the homepage?
I?d like to show an ad in the header of my forum only on the homepage. Below is a code from Header template.
What should I add or change in the code? Thanks in advance. <td width="125"><a href="*******link of the advertiser" rel="nofollow" target="_blank"><img src="advertiser/Emma.jpg" /></td></a> <td style="background: url(images/bigred/gradients/gradient_banner.gif) repeat-x;"></td> |
PHP Code:
|
And just to add to the above, that code works if your homepage is 'index.php' if you renamed it to 'forum.php' then use THIS_SCRIPT == 'forum' in the if statement, or whatever else you may have renamed it to without the .php.
|
Quote:
|
Near the top of every page is:
define('THIS_SCRIPT', 'xxxxxxxxx'); xxxxxxx usually is the name of the file w/o the extension.. ie: index is index.php, showthread for showthread.php but sometimes they're different.. so you're both right :) |
oh, actually I didn't know about that- thanks.
|
All times are GMT. The time now is 02:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|