The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all.
I have a photo gallery (photopost / vbgallery) installed on VB. I want to be able to print a different header out if users are looking at the photo gallery. So I need help with the IF ELSE code that I would need to use. Essentially, IF user is in photo album print x else print y Any help would be really appreciated as I am totally stumped on this one. Thanks David |
#2
|
|||
|
|||
![]()
It depends on the Photo gallery. If it is done properly then it should have a line which says:
PHP Code:
Code:
<if condition="THIS_SCRIPT == 'blabla'"> We are in Photogallery <else /> We are not in photogallery </if> |
#3
|
|||
|
|||
![]()
Perfect!
Thank you! FYI for anyone else this is the code I used: <if condition="PP_SCRIPT !== 'vBGallery'"> Stuff to show when NOT in gallery <else /> Stuff to show when IN gallery </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|