The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
<IF CONDITION= not working
Hey
I am trying to make a modification for vB.org and for my client. I am trying to declare a function and some HTML through vB's template conditions and its not working. In basic, I could not find a developer documentation for the following conditions, but none of them are working with else, and if else combinations. PHP Code:
PHP Code:
PHP Code:
Anyone have an idea to achieve this. Code:
IF user->guest SHOW Hey guest ELSE Welcome back END IF |
#2
|
||||
|
||||
For usergroup:-
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"> </if> HTML Code:
<if condition="$show['guest']"> </if> |
#3
|
|||
|
|||
Still not working
|
#4
|
||||
|
||||
They will work - if you are implementing them properly.
|
#5
|
|||
|
|||
Hey
I am doing a Welcome Panel. And have done it in the ForumHome template. It displays when the user is logged in only, and not for the guest. The code is being called in the FORUMHOME_WELCOMEPANEL |
#6
|
|||
|
|||
<a href="http://www.vbulletin.com/docs/html/main/template_conditionals" target="_blank">Template Conditionals</a> See if maybe you can get something from there that works. Also use <else /> instead of two seperate <if>s
|
#7
|
|||
|
|||
Its working. I managed to place the guest information in the navigation bar and its fixed it!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|