The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide Info From Certain Usergroups...
Say I wanted to hide something from a usergroup, I tried this but it didn't work.
<vb:if condition="$bbuserinfo['usergroupid'] == '19'"> </vb:if> What would be the proper coding to hide something from a usergroup? I copied Lynne's code from hiding recent activity on an old 3.8 thread but now am trying to do the same for another thing in VB 4. Sorry if this is a little screwed up. I've edited a few times and never reorganized it. |
#2
|
|||
|
|||
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,5,6)"> info </vb:if>
|
#3
|
|||
|
|||
No, it still shows, sorry.
|
#4
|
|||
|
|||
This is the right code 100%
1,2,3,4,5,6 change this to the Usergroups Allowed to see |
#5
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showthread.php?p=2047172 |
#6
|
|||
|
|||
Quote:
Code:
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,5,6) AND $post['isfirstshown']" > <li class="firstpost_advert_container"><div class="firstpost_advert"> REPLACE THIS WITH YOUR ADSENSE CODE HERE </div> </li> </vb:if> |
#7
|
|||
|
|||
Sorry for the delay in response but it's still showing and it tells me this:
"adding child to non-existent node!" |
#8
|
|||
|
|||
Quote:
there is no "non-existent node!" in the code above |
#9
|
||||
|
||||
If I understood the OP correctly, he wants to hide stuff from those usergroups and not show it. This conditional above, will show whatever he is trying to hide, to those groups. Try to add the non true operator, !, when checking for the gids and that should fix it.
|
#10
|
|||
|
|||
Well, I got rid of the node. I had an extra </vb:if> that wasn't needed but it still shows.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|