![]() |
Retrieving server request URI in VB
Is there a way to retrieve the URL in VB code similar to a php function that would be like:
PHP Code:
vb:if condition="$GLOBALS[forumid]== foo" But for /gallery, any suggestions?? |
Maybe this:
Code:
<vb:if condition="in_array($forum['forumid'], array(1,2,3))"> |
Yes, except that it's not a forumid, it's the photopost photo gallery, so I need to parse the URL containing myforum.com/gallery/blah
know what I mean? |
Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.
|
Could you move this thread then? My Bad.
|
No sorry, you would need to repost it in the mods thread. :)
|
Quote:
If that works in php, then in a template you should be able to do: Code:
<vb:if condition="$_SERVER['REQUEST_URI']=='/gallery/'"> |
All times are GMT. The time now is 09:22 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:
|