grey_goose
04-08-2016, 04:10 PM
I've got an external trackermini.php that I've got inserted into the postbit_legacy. It's working, with static data.
What I'd like to do is pass variables from the poster's info to the script -- but I can't seem to snag them. How do I grab fields from the POSTER to use?
Plugin at SHOWTHREAD_START
$templater->register('post', $post);
ob_start();
$var1 = $vbulletin->userinfo['userid']; <----- LOGGED IN USER VARIABLE WORKS
$var2 = $vbulletin->post['field109']; <----- NO WORKY
$var3 = $foruminfo[title_clean]; <----- GLOBAL VARIABLE WORKS
require_once('includes/trackermini.php');
$trackermini = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('postbit_legacy',array('t rackermini' => $trackermini));
What I'd like to do is pass variables from the poster's info to the script -- but I can't seem to snag them. How do I grab fields from the POSTER to use?
Plugin at SHOWTHREAD_START
$templater->register('post', $post);
ob_start();
$var1 = $vbulletin->userinfo['userid']; <----- LOGGED IN USER VARIABLE WORKS
$var2 = $vbulletin->post['field109']; <----- NO WORKY
$var3 = $foruminfo[title_clean]; <----- GLOBAL VARIABLE WORKS
require_once('includes/trackermini.php');
$trackermini = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('postbit_legacy',array('t rackermini' => $trackermini));