![]() |
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:
|
You use
PHP Code:
|
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'); |
Quote:
so withing ladderpanel.php you can just have $op = $_REQUEST['op']; though I recommend cleaning first. |
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:
|
They are already there. You don't need to do anything at all. _GET and _REQUEST are available in all files.
|
All times are GMT. The time now is 06:41 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:
|