The thing I am not understanding at this point is. If I am trying to preregister a variable for use with a stock template, in this case header. Where am I putting my code?
Is there a stock location to add this to or am I having to jump from adding a simple variable used on sites since vb 3.x into learning the basics of plugin writing? GLOBALS.permissions.pmquota isn't working for me in a new situation so I am trying to learn how to register permissions with the header template.
I believe the code is going to look like this?
Code:
$permissions = $vbulletin->userinfo['permissions'];
vB_Template::preRegister('header',array('permissions' => $permissions));
If so or even once correct where is this going? I mean were talking about a stock item for a stock template not a 3rd party plugin so I am confused.
Also is the above enough or do I need to add more like:
Code:
$permissions['pmquota'] = vb_number_format($vbulletin->userinfo['permissions']['pmquota']);