![]() |
Thank you, nice and easy to install.
|
Thank You, very Good :)
|
Installed with modifications to fit postbit legacy.
You can check out how I did it here... http://www.hometheatershack.com/forums |
|
Is it also possible to hide adsense from certain usergroups? What is the difference between postbit & postbit_legacy?
thanks |
In the if condition at the very beginning of my code add:
Code:
AND $bbuserinfo['usergroupid'] == 'X' 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 |
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'"> |
This is really nice.
|
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)"> |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|