![]() |
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. |
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,5,6)"> info </vb:if>
|
Quote:
|
Quote:
1,2,3,4,5,6 change this to the Usergroups Allowed to see |
Quote:
https://vborg.vbsupport.ru/showthread.php?p=2047172 |
Quote:
Code:
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,5,6) AND $post['isfirstshown']" > |
Sorry for the delay in response but it's still showing and it tells me this:
"adding child to non-existent node!" |
Quote:
there is no "non-existent node!" in the code above |
Quote:
|
Well, I got rid of the node. I had an extra </vb:if> that wasn't needed but it still shows.
|
Quote:
if that dont work pm me your site |
Quote:
|
Quote:
plus i did say "Usergroups Allowed to see" Quote:
|
OMG, I'm an idiot and that's all I'll say.
Thank you both you for taking the time to helping me figure this out. It is greatly appreciated and I apologize for the idiot in me. |
Quote:
|
Quote:
Quote:
... the bold is all I'll say. Sorry again, lol. |
Quote:
|
The most important thing is that you got it to work. Glad to hear that :)
|
All times are GMT. The time now is 03:08 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:
|