Log in

View Full Version : using "$userinfo['posts']" in global_start doesn't work!


X Quiz
04-11-2007, 06:14 AM
Hi,

I want to use $userinfo['posts'] in global_start to make a function to use it in "header".


This is my plugin:

$ex = $userinfo['posts'] / 5000;
$exp = round($ex,2);


but it doesn't work!

when I change it to : postpit_dispaly_start it works?


So, as I think the problem maybe because the variable $userinfo['posts'] is not define in global_start to work in header?!


any Idea about that?


thank you.

Dismounted
04-11-2007, 06:41 AM
$vbulletin->userinfo in PHP code.
$bbuseinfo in templates.

X Quiz
04-11-2007, 07:18 AM
Thank you,