Forum Moderators: coopster
I was wondering if there is any script will disable the first one when a visitr goes to the article page and will show only the one which is implmeneted in the script.
Thanks in advance.
Sincerely..
For example, in your widget.php:
<?php
if (!$_SERVER['QUERY_STRING'])
{
// first AdSense code goes here
}
Note the "!" operator - so you're only showing AdSense if there is nothing on the URL after the "?" (the Query String).
Really appreciated thank you very very much again.
what should I do to replace another banner instead of the adsense code which disappears on the article page it looks blank and I would like to add some stuff there.
You can use the same control block where you check for the Query String, and use an "else" statement.
If you are very new to programming and PHP, it will be worth you looking at the following pages of the manual which tell you how to control the flow of your script:
[uk.php.net...]
In this case, you need to use "else"...
[uk.php.net...]
So you have something like:
<?php
if (!$_SERVER['QUERY_STRING'])
{
// first AdSense code goes here
}
else
{
// your other banner for article pages goes here
}