![]() |
Secondary Usergroups Question
Hey everyone.
I have another odd question I hope someone can answer. I just started to use a template mod for adding images based on usergroups. The following is an example of what I have: Code:
<if condition="$post[usergroupid] == 10"> |
Try this....it's also XHTML compliant :D
Code:
<if condition="is_member_of($vbulletin->userinfo, 10)"> |
Quote:
|
Ok, try THIS one, lol
HTML Code:
<if condition="in_array($bbuserinfo[usergroupid], array(10))"> |
Quote:
|
ERRR!!! I used to know a conditional that checked if the users groups were primary and seconday but I can't remember it. I THOUGHT it was the first one I posted. The bad thing about these, is there's so many ways to do it. So, try this one...
HTML Code:
<if condition="is_member_of($bbuserinfo, 10)"> I'm assuming you got this working? |
Quote:
The only issue is that everyone else on that page has the same thing now. Any ideas? |
Quote:
|
There are two people registered ATM. We are both in userID 9. I have added myself to 9 with 10 and 11 as secondaries. The three images now show up where I want them but for whatever reason all three show up in his postbit too even though he isn't in all three.
|
Not sure about the answer to that one. Have you checked his profile in the AdminCP to make sure the other user doesn't have any additional usergroups selected?
|
All times are GMT. The time now is 09:15 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:
|