![]() |
How t detect current page / location / script
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 |
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'"> |
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> |
All times are GMT. The time now is 07:10 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:
|