PDA

View Full Version : $vbulletin->userinfo['blahblah']


byon
05-17-2007, 08:01 AM
Hi

This should be a simple question.

Where can i locate the place where the script creates, $vbulletin->userinfo['******']?
What i am wanting to do is to add more customfield (e.g., vbb_userfields) informations inside it.


Thanks. :D

Adrian.
05-17-2007, 08:47 AM
includes/class_core.php

If you look in global.php, that'a where they put $vbulletin =& new vB_Registry.

If i remember correctly.

ragtek
05-17-2007, 08:52 AM
i think he means this:

$this->validfields['foo'] = array(TYPE_UINT, REQ_NO);
$this->validfields['bar'] = array(TYPE_UINT, REQ_NO);
no you can use $vbulletin->userinfo['foo'] in the script


so the background

1. in the usertable add the columns bar, foo
2. add plugin at the hook userdata_start

now you can use it

i hope it can be understand, sorry for bad english:D

byon
05-17-2007, 09:18 AM
hmm thks for the replies.
but i dont understand where are both of you tryin to lead me to. cuz i couldnt find those codes anywhere..