Vbulletin Global Variables

It appears that there is very little info available in regard to global variables within vbulletin. It took WAY too long to pull this off tonight so I guess I’ll post it here.

To definit the global variable, create a plugin with the global_start hook.

$GLOBALS['thesevalues']=array (62, 60, 50, 47, 52, 53, 54, 55, 56, 59, 61, 63);

Note: At the global_start very few (if any) of the important variables have been defined in vbulletin. For example, I was attempting to determine if the thread category id was listed in this array. I had problems because the thread category id was not yet defined. I therefore had to call the $GLOBALS[’thesevalues’] after the forum id was defined. Do my “if” statements and then define a new $GLOBALS[’newvalue’] which I used for if statements within postbit.

Leave a Reply

You must be logged in to post a comment.