| Re: sql and plugin Ok I got it. Put this in a plugin at global_start: // Globalize Variables
global $vbulletin;
// Query It!
$reputation = $vbulletin->db->query_first("
SELECT reputation
FROM " . TABLE_PREFIX . "user
WHERE userid = '" . $vbulletin->userinfo['userid'] . "'
");
// Use $reputation[reputation] in your templates.
And use this in your template: $reputation[reputation]
__________________ I hate that someone changed my signature. |