PDA

View Full Version : Can Ads Be Placed in Archive Pages?


boxingscene
02-08-2005, 07:24 PM
I get tons of traffic to archived posts, is there a way that I can put ads on archived pages and if so, how can it be done?

Andreas
02-08-2005, 07:27 PM
Yes. Edit index.php and place the Ad where you want it to appear.

boxingscene
02-08-2005, 07:31 PM
Yes. Edit index.php and place the Ad where you want it to appear.

index.php of the forum root or of the archives?

Andreas
02-08-2005, 08:03 PM
In archives.

I've placed an AdSense-Leaderbord there (http://www.planet-liebe.de/vbb/archive/index.php). If you also want smth. like this you can use:

In global.php (in archives) FIND

{
$extra = '<div class="pda"><a href="?pda=1">' . $vbphrase['pda'] . "</a></div>\n";
}


BELOW that ADD

$extra .= '<div style="text-align: center; margin: 10px"><!-- Place Ad Code here --></div>';

induslady
07-17-2006, 11:31 PM
Hello,

I tried placing the adsense code in my forums archive (global.php) as indicated in the above message.

This is my forum - http://www.indusladies.com/forums/archive/index.php/

Please can you check and let me know why google ads are still not appearing in my archive page?

Thanks in advance,
Induslady

Paul M
07-18-2006, 02:47 AM
Probably because this is an old post, the way the archive works was completely changed in 3.5.4.

There is a mod to do what you want here ;

https://vborg.vbsupport.ru/showthread.php?t=100299

induslady
07-18-2006, 05:18 PM
Hello Paul,

Thanks for your message.

I did follow the thread you had posted. Tried installing that mod, but displays a parse error which I have updated in that thread too.

If you could be of any more help to fix this issue, appreciate it.

Regards,

Induslady

Ntfu2
07-18-2006, 05:50 PM
You may wish to check out the EZ-Archive plugin available at vbulletin-faq.com

it'll make your life 1000x times easier

Paul M
07-19-2006, 02:11 AM
Hello Paul,

Thanks for your message.

I did follow the thread you had posted. Tried installing that mod, but displays a parse error which I have updated in that thread too.

If you could be of any more help to fix this issue, appreciate it.

Regards,

Induslady
You have probably made a mistake while editing the plugin for your adsense details, but as only an admin on you site can see it, it's impossible to say.