The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello, I have just started coding for vBulletin yesterday, and I am getting fairly used to it. Although I have one problem, I cannot seem to get sub-pages working correctly for custom pages.
A link in the template would call a location to look something like: Code:
/videoadmin.php?action=addvideo PHP Code:
HTML Code:
<if condition="$page == 'addvideo'"> Testing AddVideo Command </if> Thanks for you help in advance. |
#2
|
||||
|
||||
![]()
did you try to define the page with the define_script 'addvideo'
Then use <if condition="THIS_SCRIPT == addvideo"> (note, my syntax is never excatly correct but should may be close ![]() |
#3
|
|||
|
|||
![]()
Would I define a variable like this:
PHP Code:
|
#4
|
||||
|
||||
![]()
Put your sub-page conditionals in the php code, not in your template code.
videoadmin.php PHP Code:
Check out this page for more info: https://vborg.vbsupport.ru/showthread.php?t=98009 |
#5
|
||||
|
||||
![]()
When you instantiate vBulletin, it will clear most superglobals for security reasons (forcing you to clean them with the input cleaner). You should be using "do", not "action".
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|