vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adsense after first post (https://vborg.vbsupport.ru/showthread.php?t=96249)

dieselpowered 09-14-2005 08:12 PM

Quote:

Originally Posted by KirbyDE
Yup.
https://vborg.vbsupport.ru/showpost....10&postcount=2 :)

Mental Note: Tagging the post was a good idea :D

Kirby forgive my ignorance, however, where does this post show how to do a conditional based on the usergroup?

I am going to be adding adsence, however, do not want contributing members or sponsors to see them.

Any help is appreciated!!

Andreas 09-14-2005 08:18 PM

I've posted this often already, but i'll post it once again :)

<if condition="!is_member_of($bbuserinfo, x, y, z) AND !$GLOBALS['FIRSTPOSTID']">

dieselpowered 09-14-2005 08:28 PM

Quote:

Originally Posted by KirbyDE
I've posted this often already, but i'll post it once again :)

<if condition="!is_member_of($bbuserinfo, x, y, z) AND !$GLOBALS['FIRSTPOSTID']">

Sorry, you are going to fly out from Germany and kill me, however, I assume I put the usergroup number of the usergroup I do not want to see this in place of the x, y, z??

Thanks :)

Andreas 09-14-2005 08:29 PM

Yep (regarding the replacement of x, y and z).

dieselpowered 09-14-2005 08:35 PM

Quote:

Originally Posted by KirbyDE
Yep (regarding the replacement of x, y and z).

LOL I thought you were talking about the flying out part ;)

Thanks Kirby!!

Hey I seem to remember a thread one of the vBulletin Devs put out in regards to adding adsense....it had quite a few examples. Do you remember that?

dieselpowered 09-14-2005 08:46 PM

That is odd, I placed the usergroup 1 (admin) in that code and it still shows the adsense?

**edit** disregard, it did remove it, however, completely did something odd with the formatting?? When I get home I will get a screen print.

artonex 09-14-2005 08:47 PM

Quote:

Originally Posted by KirbyDE
I've posted this often already, but i'll post it once again :)

<if condition="!is_member_of($bbuserinfo, x, y, z) AND !$GLOBALS['FIRSTPOSTID']">


Thanks kirby works great :D

Andreas 09-14-2005 08:48 PM

Usergroup 1 is Guest, not Admin?

dieselpowered 09-14-2005 08:51 PM

Quote:

Originally Posted by KirbyDE
Usergroup 1 is Guest, not Admin?

I know....I meant 6....sorry about that.

Somehow it messes up the formatting on the page, I will get a screenshot to show. Thanks as always Kirby!

Gio~Logist 09-14-2005 09:13 PM

Quote:

Originally Posted by jluerken
Hi,

I want to have the adsense stuff for people NOT in specific groups.

For example: Admins, mods, staff etc. should not get the adsense stuff.

Can you give an example how to modify your template to make this possible?

btw. thanks for sharing :D


try replacing

HTML Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">
With:

HTML Code:

<if condition="!$GLOBALS['FIRSTPOSTID'] and
$vbulletin->userinfo[usergroupid] != 'x' "
>


Then replace x with the usergroupid that you do NOT want this ad to show for.


All times are GMT. The time now is 11:40 AM.

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.01386 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete