The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
conditional for "who is online"
I've created a usergroup for people who's contact info I want hidden (email form, messenger details etc) regardless of what they have entered before.
I've got <if condition="$bbuserinfo[usergroupid] == 15"><else /> for the templates that they might see I've got <if condition="$userinfo[usergroupid] == 15"><else /> for the memberinfo template I've got <if condition="$post[usergroupid] == 15"><else /> for the postbit template However I can't find anything that works for the who's online page <if condition="$vboptions[usergroupid] == 15"></else> doesn't seem to do anything, neither do any of the above. Any suggestions? |
#2
|
||||
|
||||
Try:
Code:
<if condition="is_member_of($post,15)"> <else /> Who's online codes here... </if> *Note: $post = Content that's displayed on page. $bbuserinfo = Restriction or allowance to the end user (the one who's viewing the page). |
#3
|
||||
|
||||
Cheers, I've tried that like this and it doesn't do a thing, this is in the whosonlinebit template
<if condition="is_member_of($post,15)"><else /> $userinfo[aimicon] $userinfo[icqicon] $userinfo[msnicon] $userinfo[yahooicon] </if> |
#4
|
||||
|
||||
You have it in reversed that's why. It should be:
Code:
<if condition="is_member_of($post,15)"> <else /> $userinfo[aimicon] $userinfo[icqicon] $userinfo[msnicon] $userinfo[yahooicon] </if> |
#5
|
||||
|
||||
doh ... I need to sleep more
Edit: No I don't, that hides everything for everyone |
#6
|
||||
|
||||
That code will work on most vB pages. I'm wondering, then, if the conditional can't detect the Usergroups that show up on Who's Online. If that's the case then a template conditional may not help; you'll may need to look at a PHP edit.
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
I'm sorry I couldn't be of much help. If you do find a solution please post back so others can benefit from it.
|
#9
|
||||
|
||||
AFAIK, the WOL uses $userinfo, not $post, changing that should work.
|
#10
|
||||
|
||||
That's what I tried in the firstplace.
if condition="$userinfo[usergroupid] == 15"> doesn't work so I tried this <if condition="is_member_of($userinfo,15)"> and still nothing, I'm thinking that online.php needs something adding to it. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|