![]() |
<if...> Help
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'"> Thanks for you help in advance. |
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 :D) |
Would I define a variable like this:
PHP Code:
|
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 |
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".
|
All times are GMT. The time now is 10:11 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:
|