The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
|||
|
|||
![]()
OK - this line:
Code:
($hook = vBulletinHook::fetch_hook('member_execute_start')) ? eval($hook) : false; is the place where the plugin code gets executed (if hook location member_execute_start is selected). So you don't need to edit member.php (at least to do what you're trying to do here), you can just put the code in the plugin. Also, you need to use vB_Template: ![]() So, take that code out of member.php and try this as your plugin code: Code:
$usrid = $vbulletin->userinfo['userid']; $gfxpquery = $db->query_read("SELECT gfxpoints FROM user WHERE userid = '".$usrid."'")or die(mysql_error()); $gfxpoints = mysql_result($gfxpquery,0); vB_Template::preRegister('memberinfo_block_ministats', array('gfxpoints' => $gfxpoints)); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|