SMF Ads Support Forum

Support => Ad Support => Topic started by: hkymre on May 01, 2007, 04:28:32 am

Title: SOLVED: After Posts Ad appearing after the wrong post
Post by: hkymre on May 01, 2007, 04:28:32 am
Got an gogle adsense ad set to appear after the 2nd post on all my boards. For some reason it is appearing after the first post.
If I change the setting from 2 to any other number the ad doesn't appear at all.

Any ideas?
 
Cheers

Mark

Update -  checked the Display.template.php and the code was wrong :-
Code: [Select]
//Ad Counter
$adcounter =0;
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;
$adcounter++;
echo '

Removed the duplication and working fine now.