![]() |
Using VB variables in custom php plugin possible?
I've got this plugin:
Code:
ob_start(); Is there any way to get the poster's ID in my vigilance.php file so that I can do a db query on it or can I not access VB variables even if I include the global.php file in my script? Simply stated, I need to do an sql query on the database for the user in the postbit_legacy and display the custom field I added in the database. |
Why don't you just execute your code in the plugin?
|
I'm still unable to find out how to grab the userID of the poster in my script so that I can grab their custom profile field database entry.
I just need to be able to parse "fieldX" into my script when I execute it. Any ideas? |
Quote:
Then you can just use $post['userid']. |
How would I do something like this in the plugin, unsure how to get user variables in the plugins.
PHP Code:
PHP Code:
|
Having the same question here...
Does anyone knows an answer? |
Quote:
|
$post['fieldX'] does not get any data when loading the plugin. I have it in global_start, do I need to be setting this somewhere else or delcaring any includes in the plugin?
|
global_start is obsolete in the latest VB4 versions. Use global_bootstrap_init_start instead
|
Quote:
PHP Code:
|
All times are GMT. The time now is 08:13 PM. |
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:
|