The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
classes/functions and user fields
I was wondering what the correct usage is for a class when i want to use a field for a variable. Here is part of the class im trying to get working:
Code:
class Code { private $key = $bbuserinfo[fieldx]; private $usercode = $bbuserinfo[fieldx]; private $charcode = $bbuserinfo[fieldx]; private $cachedir = './xmlcache'; private $cachetime = 60; private $timeformat = "Y-n-d H:i:s"; public $debug = false; private $msg = array(); private $usecache = false; What is the correct usage of the field attribute within a class? Also, how might i use this same method with scripts outside of the vbulletin structure? Thanks in advance. |
#2
|
||||
|
||||
What are you trying to do there?
|
#3
|
||||
|
||||
I'm trying to make it so that specific functions of the class will use the 3 inputed user fields specifed at registration, as each users codes in their specific user field will always be different. These will then be used to authenticate each user for third party xml files used within a third party application.
I'm not much of a php coder, so its a little hard to explain with the correct lingo. |
#4
|
||||
|
||||
can anyone help me with this one?
|
#5
|
||||
|
||||
$bbuserinfo does not exist outside of templates. It is usually better to leave the variables null, and assign values to them in your constructor, where the $vbulletin object can be passed into it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|