The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]() PHP Code:
|
#3
|
|||
|
|||
![]()
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
|
#4
|
||||
|
||||
![]()
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']"> whatever is only shown to members </if> |
#5
|
|||
|
|||
![]()
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'"> |
#6
|
|||
|
|||
![]()
It belongs in a single set of quotation marks, not a set of quotation marks for each condition.
PHP Code:
|
#7
|
|||
|
|||
![]()
Thank you very much that was very helpful
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|