![]() |
Remove from index for guest only
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. |
PHP Code:
|
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
|
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:
HTML Code:
<if condition="$show['member']"> |
I want to combine 2 conditionals
If they are a guest and this is on the homepage it is not shown. Code:
<if condition="$bbuserinfo['userid'] == 0" and "THIS_SCRIPT != 'index'"> |
It belongs in a single set of quotation marks, not a set of quotation marks for each condition.
PHP Code:
|
Thank you very much that was very helpful :)
|
All times are GMT. The time now is 09:14 AM. |
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:
|