The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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?? |
#2
|
||||
|
||||
Maybe this:
Code:
<vb:if condition="in_array($forum['forumid'], array(1,2,3))"> Show this in forum 1, 2 and 3 </vb:if> |
#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? |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
Could you move this thread then? My Bad.
|
#6
|
||||
|
||||
No sorry, you would need to repost it in the mods thread.
|
#7
|
|||
|
|||
Quote:
If that works in php, then in a template you should be able to do: Code:
<vb:if condition="$_SERVER['REQUEST_URI']=='/gallery/'"> {#Do What I Need Done;} </vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|