View Full Version : Remove from index for guest only
Wizardjv
08-11-2008, 06:43 AM
I was wondering if someone could help me with a conditional problem having.
I know this removes something from the index only
<if condition="THIS_SCRIPT != 'index'">
But how would I remove something from the index only for only guests.
I need it off the index but only when they are guests, but when not guests on the index.
djxcee
08-11-2008, 07:09 AM
<if condition="!is_member_of($bbuserinfo, X)"></if>
X = Usergroup #
Wizardjv
08-11-2008, 02:16 PM
That doesnt work. It removes it from the entire board for guests. I just need it removed from the index for guests only. But I want guests to see it elsewhere. But thank you anyway
Lynne
08-11-2008, 02:44 PM
Are you talking about the code to put in a plugin or in a template? If it's the template and you only want to show something to members, you can use:
<if condition="$show['member']">
whatever is only shown to members
</if>
Wizardjv
08-11-2008, 08:30 PM
I want to combine 2 conditionals
If they are a guest and this is on the homepage it is not shown.
<if condition="$bbuserinfo['userid'] == 0" and "THIS_SCRIPT != 'index'">
SOmething like that but I cant get it to work. This is on the forumhome
RLShare
08-11-2008, 09:38 PM
It belongs in a single set of quotation marks, not a set of quotation marks for each condition.
<if condition="$show['member'] and THIS_SCRIPT != 'index'">
Wizardjv
08-11-2008, 09:57 PM
Thank you very much that was very helpful :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.