PDA

View Full Version : Adding google ADs to archive/index.php


hubba
09-03-2004, 02:18 PM
Where do I insert the following in archive/index.php to show google ads there???

<script type="text/javascript"><!--
google_ad_client = "pub-2962788195138392";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="";
google_color_border = "993300";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://xxxxxxxxx/show_ads.js">
</script>

or what do I have to modify?

Thx for help...

hubba
09-07-2004, 11:07 AM
Uhm, noone an idea?

Johnny
09-07-2004, 12:03 PM
you will have to look in index.php in your archive folder to add the google code, aparently theirs no vb template in the admin so you will need to work threw ftp to edit the archive design, its pretty simple

hubba
09-07-2004, 01:05 PM
Yep, but if I simply add the code to the top of index.php it gives me a "header already sent" error...

Johnny
09-07-2004, 08:09 PM
look for line 128 should have something like this:
<div class="pagebody">

after that add the google code and it should work

hubba
09-07-2004, 08:25 PM
Yes, that was it, many thanks!