PDA

View Full Version : VB 3.8.1 Adsense Feature



Rick7C2
Sun 8th Feb '09, 1:28pm
Is there anyway I can edit the Google Adsense Feature in VB 3.8.x so that I can change in user groups what groups see the ads?

I would like to make it so that only guests and members that have less then 100 post as described in one of my groups.

Thanks,
Rick

Chalz
Sun 8th Feb '09, 4:17pm
What you could do is, Move all users with less than 100 post in to their own user group. Then change the default condition in the ad templates so that ads only show for the 2 groups. (guest group and the new group)

You could also create a promotion to move user once they reach 100 post.

Rick7C2
Sun 8th Feb '09, 5:22pm
Ok I need to know how to "change the default condition in the ad templates".

Chalz
Sun 8th Feb '09, 6:09pm
Assuming you have Google AdSense Advertising enabled on High.

goto admincp > styles and templates > style manager

Click the <<>> button next to the style your board uses.

open the ad location templates.

There are 3 templates the Google AdSense Advertising uses. they are:

ad_footer_start
ad_navbar_below
ad_showthread_firstpost_start

add this code to the second line of ad_footer_start & ad_navbar_below templates.

<if condition="is_member_of($bbuserinfo, X, Y, Z)">Change x,y,z to the user group ID's and add another </if> to the very bottom of these templates.

In the ad_showthread_firstpost_start template just change the second line to same code from above.

Rick7C2
Sun 8th Feb '09, 6:36pm
Awesome thats works great. +rep