vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Adsense as second post. 2 Sizes - Big for guests, small for members (https://vborg.vbsupport.ru/showthread.php?t=136743)

kylek 01-26-2007 05:38 AM

Thank you, nice and easy to install.

jacki 01-29-2007 01:13 PM

Thank You, very Good :)

ShackMaster 01-30-2007 05:21 AM

Installed with modifications to fit postbit legacy.

You can check out how I did it here... http://www.hometheatershack.com/forums

StarBuG 01-30-2007 06:48 AM

My postbit_legacy Version looks like this:

http://www.patientenfragen.net/showt...1399&styleid=6

3dsoft 01-31-2007 08:27 AM

Is it also possible to hide adsense from certain usergroups? What is the difference between postbit & postbit_legacy?

thanks

StarBuG 01-31-2007 03:16 PM

In the if condition at the very beginning of my code add:

Code:

AND $bbuserinfo['usergroupid'] == 'X'
at the end, where X is the usergroup ID.

So that it looks like this:

Code:

<if condition="THIS_SCRIPT == 'showthread' AND  $post[postid] == $GLOBALS['qrfirstpostid'] AND (!$show[member]) AND $bbuserinfo['usergroupid'] == '1'">

postbit_legacy is the old version to display posts (from vB 2.x times).
The userinfos are on the left site not on the top like it is here.

StarBuG

3dsoft 01-31-2007 06:11 PM

Hi StarBuG,
thank you for answering that fast. It somehow does not work , yet. ;)
I would like adsense not to show up for moderators (usergroup: 7) & admins (6). You could also say that I only want registered users who belong to usergroup 2 should see adsense.

I have tried to add "AND $bbuserinfo['usergroupid'] == 'X'' at he begining of the code. But the beginning of your code is for guests, right? The problem is that I want logged in moderators & admins not to see adsense.

I also tried to use:
Code:

<if condition="THIS_SCRIPT == 'showthread' AND  $post[postid] == $GLOBALS['qrfirstpostid'] AND (!$show[member]) AND $bbuserinfo['usergroupid'] == '1'">
...within the second part, but either all logged in users see adsense or all logged in users don't see adsense!?

FSHD 02-01-2007 04:09 PM

This is really nice.

StarBuG 02-04-2007 06:51 AM

to exclude usergroups you need to add:
Code:

AND $bbuserinfo['usergroupid'] != 'X'


to include Usergroups:
Code:

AND $bbuserinfo['usergroupid'] == 'X'

you could also wrap my whole code from above inside this:
Code:

<if condition="is_member_of($bbuserinfo, X)">

</if>

and for the X put all the Usergroups you want to see the ADs, like 1,2,3,4,7,9,10 etc ;)

roger.kore 02-10-2007 12:50 PM

I think this modification doesn't work if you have this installed
https://vborg.vbsupport.ru/showthrea...hreadid=131544

Im using 3.6.4


All times are GMT. The time now is 02:21 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.01135 seconds
  • Memory Usage 1,734KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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