Log in

View Full Version : Adsense and paid subscriptions


specmav
07-12-2006, 06:47 PM
I have read some other posts on this but cannot seem to grasp this concept. I want to add some ads to my forum (after main thread, somewhere in the middle and at the end) but I want it so Admins and other specified groups can't see the Ads.

I keep seeing !$GLOBALS['FIRSTPOSTID'] a lot but I have no idea what it means. Can anyone explain? Also what is postbit and postbit_legacy. Maybe a pointer to a thread with meaningful variables used in vB would help?

Can someone paste an example of a complete adsense block with the admin and super moderators not being able to see it.

I thought it could be done with a simple IF statement:

If usergroups != 1,2,3 etc... (can you comma seperate user ID's in IF statements)
then show adsense code (or any other ad)
close statement

Am I missing any important variables that are unique to vB.

Thanks

specmav
07-12-2006, 06:50 PM
Sorry!

I screwed up posting, can a mod move this to the correct forum.

Thanks and sorry!

Snake
07-12-2006, 07:15 PM
Thank you! Installs. ;)

Ntfu2
07-12-2006, 07:58 PM
postbit and postbit_legacy are templates regarding the post area (where you read the text and avatars) The postbit are you see here is called postbit_legacy if your site uses the one with the avatar one top thats called the postbit template

You need to setup a usergroup called supporters for instance, then set up their subscription when a user donates they get moved to that group.

Then you need to add a tempalte conditional to whatever template you wish to use and place your add code inside of that.