View Full Version : Adsense inside an article?
zkilzz
12-12-2006, 11:17 PM
Hey!
I have 15 people writing articles on my site and i am curious of who of them that makes the most income.
I have now set up a channel for each writer so each of them has their own code.
I have tried to paste the Google Adsense code right inside the article but it doesnt show. Even i have enabled HTML in the specific forum.
So how do i do it?
I dont want to use a modul that will be similar on all pages.:confused:
The Geek
12-13-2006, 12:13 AM
The template module would work. Or just create a plugin that appends the code to the postbit.
HTHs!
zkilzz
12-13-2006, 11:49 AM
The template module would work. Or just create a plugin that appends the code to the postbit.
HTHs!
I know but if i change the module it will apply to all articels. I want to have individual adsense ads in different articels.
Person Bs articles have his own adsense code and person A also has his own code.
The Geek
12-13-2006, 11:54 AM
Just put conditionals in the template:
<if condition="$bbuserinfo[userid]==x">
Adsense for user1
</if>
popowich
08-18-2008, 12:49 PM
Hello,
Double checking, this works for the person who CREATED the article, and not for the person VIEWING the article, yes? I'm looking a way to have the creator of the article get 100% of the google adsense credits. What is the best way to do this for multiple people? Is there anything like a case statement that can be used in templates?
I am looking for something like :
if created member member uid 23 then their google code
else if created by member uid 7 then their google code
repeat as many times as necessary...
else display my google adsense code
-Raymond
Morgan
08-18-2008, 02:33 PM
Untested but if in postbit(_legacy) try:
<if condition="$post[userid] == X">
AdSense for userid X
</if>
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.