PDA

View Full Version : Google Ads


hanz
07-24-2005, 11:01 PM
Hi,
I have one small request - I ma working on my directory and I would like to add google ads on it, but I do not want to put them into header nor footer. I would like to see them only on Categories pages, they would be like Featured Links, so they would be between subcategories and links. I have tried to do it myself, but I am not that good with php, so I get only errors :oops: . I would be very grateful if you could help me with that. :D

Ap0s7le
07-24-2005, 11:31 PM
Sure, in your 'templates/main.tpl'

Around line 43/44 it should look like this.

Content visible to registered users only.

After it add
Content visible to registered users only.

So the lines should look like this when done.
Content visible to registered users only.

If in doubt PM me and I'll do it for you.

Thanks

hanz
07-24-2005, 11:39 PM
THANKS :D
It is working :D :D :D

Ap0s7le
07-24-2005, 11:51 PM
Great

later

minstrel
07-25-2005, 12:29 AM
I didn't use the

{literal}
{/literal}

syntax and my AdSense seems to be working fine. Am I missing something?

Ap0s7le
07-25-2005, 01:43 AM
Yeah, it's better to use literal tags since it's Javascript.

later

minstrel
07-25-2005, 05:54 AM
Thanks, Carey.

I know a little PHP but this is my first exposure to Smarty.

While we're on the subject, what's the purpose of {strip} .. {/strip}?

Mike77
07-25-2005, 08:12 AM
Content visible to registered users only.

Replaces all repeated spaces, newlines, tabs with a single space or supplied replacement string.

http://www.smarty.net/manual/en/language.function.strip.php

Ap0s7le
07-25-2005, 08:36 AM
*Points* What he said... I actually typed out a message and forgot to hit submit till now.... Sad....

Also, you can call me Carey if I can call you Menstrual. *grin*

later