The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Included php file variables
I'm using the plugin method described in the manual to run a php script, but am having some problems. I need to be able to access $bbuserinfo[userid]. I also need to pass a variable to the script through the url. As far as I can tell, the php script is processed before the vBulletin page and is stored in a variable.
I have tried to pass a variable through the link with no success. Code:
include('ladderpanel.php?op=top'); Quote:
|
#2
|
|||
|
|||
You use
PHP Code:
|
#3
|
|||
|
|||
Thank you, that's exactly what I was looking for.
Quote:
Any idea how I pass variables through the url when using a plugin? Code:
include('ladderpanel.php?op=top'); |
#4
|
||||
|
||||
Quote:
so withing ladderpanel.php you can just have $op = $_REQUEST['op']; though I recommend cleaning first. |
#5
|
|||
|
|||
I apologize, I'm not understanding. If I want to pass a variable such as which function to perform, what do I need to do? I know I need $_GET or $_REQUEST in my ladderpanel.php file to retrieve the variables, but how do I send them to the file?
Quote:
|
#6
|
||||
|
||||
They are already there. You don't need to do anything at all. _GET and _REQUEST are available in all files.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|