vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adsense and paid subscriptions (https://vborg.vbsupport.ru/showthread.php?t=121035)

specmav 07-12-2006 06:47 PM

Adsense and paid subscriptions
 
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.


All times are GMT. The time now is 08:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01068 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete