The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello!
I would like to include a splash image on my homepage which welcomes everyone to the forum just as I set up here: http://www.leftunderground.com/content/ However, I would only like this image to appear on the front page. Is there a conditional statement I could use in a template to achieve this? I can do this by using the various methods described to include PHP code in templates but I was hoping there was an easier way. Also, is there a way to check if the user is logged in or not so that I can fetch a different graphic based on that? Help would be appreciated, thanks in advance. |
#2
|
||||
|
||||
![]() HTML Code:
<vb:if condition="$_GET['r'] == '1-home-page-one' OR !$_GET['r']">your message</vb:if> |
#3
|
|||
|
|||
![]()
That works perfectly, thank you very much. Is there a way to detect if they are a logged in user or not? Or better yet is there a reference somewhere for all the variables available?
|
#4
|
||||
|
||||
![]()
Variables names changed based on what page you are on. But, here is an article that may help you out - vB4 Template Conditionals List
|
#5
|
|||
|
|||
![]()
Awesome! Thank you.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|