PDA

View Full Version : How to insert Adsense


ZOMP
02-13-2006, 02:12 PM
Hey dudes. I'm using a free skin from the web designers directory and was wondering how to insert Adsense into the green template they have available.

1. I want a 468x60 banner in the same column as the logo, but on the right hand side.
2. I want a 468x60 banner on the right hand side of the search column, just below the other banner.

3. I was a large sqare banner on the right hand side of the main body of the template. Links and categories on the left hand side of the middle, and a sqare banner on the right hand side.

If you need the skin get it here:
http://www.web-designers-directory.org/phpLD-template.php

View the skin here (my directory):
{Zomp}

Thanks guys! I need this implemented asap! PLEASE HELP!!! :D

Optimit
02-13-2006, 04:52 PM
I would create a file called something like googleads.tpl and place your ad code in that file, then save to templates folder.

Then go to main.tpl, or where ever you are wanting the ads, and ad something like {include file="googleads.tpl"}

That help?

David
02-13-2006, 06:21 PM
Content visible to registered users only.

That's a good strategy Optimit gave you. So you just need to locate the places in the html where you want to insert the code.

Durty Don
02-13-2006, 11:31 PM
I tried using that template myself but the category pages werent displaying right for some reason.


Thanks for the adsense tip, I have been tyring to figure out the best way to display the ads, this sounds like a winner to me.

Optimit
02-13-2006, 11:35 PM
I use it frequently, and it works great.

ZOMP
02-14-2006, 06:48 AM
Thanks, I'll give it a go shortly. :D

ZOMP
02-14-2006, 07:04 AM
Im getting this error. :(

Content visible to registered users only.


I put the code in top_bar.tpl

Content visible to registered users only.

I correctly named the file to imageadsense.tpl and included this data in it:

Content visible to registered users only.

I saved this file to the www folder, everything is as It should be however It won't read it for some reason. Thats what we need to find out.

I even tried Content visible to registered users only. but It still didn't want to work for me. Haha! :P

Optimit
02-14-2006, 08:52 AM
Try taking the backslash out, so it looks like {include file="imageadsense.tpl"}, and also it should be saved in the same folder as top_bar.tpl.

ZOMP
02-14-2006, 10:33 AM
Ok it worked, thanks man!! I made a silly error but its all fixed now.

Now i just need to figure out where to add the include file code, the template is really touchy and hard to configure.

Ah well, the more i practice the better I'll get. :)

Optimit
02-14-2006, 12:37 PM
Great. Good luck to you.