Loading...
 
Features / Usability

Features / Usability


Google ads varying by article author?

posts: 67 United States
I have a bit of an odd question. Is it possible to, essentially, keep track of Google ad revenue for specific authors... as in, could I create Google ad zones for each author, and somehow make it so that their articles (embedded in the template) show just ads from their zone?
posts: 1633 Canada

You would have to add the code in the template. (.tpl)

Something like:

if author = a
put banner zone a

if author = b
put banner zone b

else
put default banner zone

Put {debug} in a Smarty template to get a popup with all the variable names.

M ;-)

posts: 67 United States

> You would have to add the code in the template. (.tpl)
>
> Something like:
>
> if author = a
> put banner zone a
>
> if author = b
> put banner zone b
>
> else
> put default banner zone
>
> Put {debug} in a Smarty template to get a popup with all the variable names.
>
> M ;-)

Thanks! The only issue I have had is that I never have gotten the JS plugin to work. I can't find somewhere in my files to add a banner zone outside tikiwiki and through ftp. Is there a way to do that? Then I could create the banner zones, ftp them in, and call them.

posts: 67 United States

> You would have to add the code in the template. (.tpl)
>
> Something like:
>
> if author = a
> put banner zone a
>
> if author = b
> put banner zone b
>
> else
> put default banner zone
>
> Put {debug} in a Smarty template to get a popup with all the variable names.
>
> M ;-)

Hmm... or could I do something like if author = a
then put in the code for that particular Google zone?

Then I could have all zones right there in the template...