The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
where to find variable names etc
Hi
is there a thread or place in the developer area where i can find details on the variable names such as $forumid etc and the different ways i can sue them to call or display content etc. like for instance i know there is a way of only dfisplaying certain content to certain usergroups and other things like that what is the best way to find details on this. Thanks in advance |
#2
|
|||
|
|||
There is no big "list" so to speak you can look through the articles in the vBulletin Articles, otherwise you just have to look through the files.
Quote:
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> <some code...> <else /> <some code for non members of the x, y and z groups </if> PHP Code:
|
#3
|
|||
|
|||
i would like to point out that the reason i know that there is a way of displaying to only certain member id's is that i have used the search feature but thanks for showing me again
if however there is no Big List can you make any suggestions on certain files which may be of more use than others to look at. Surely there must be at least a basic list of variables and conditionals somewhere. i mean how do people work them out otherwise? i assume they are not made up and i dotn follow completely on the php-vbulletin link. i have bought some books on php tso i can learn as much as possible but i cant work out how vbulletin works for some reason. |
#4
|
|||
|
|||
The only common ones are $db and $vbulletin ($vbulletin->forumcache, $vbulletin->bf_... and many more), use var_dump() on variables to see their contents then you have to figure out what each variable is for. The only way to learn is with experience and trial and error.
The variables are only created when they are needed, you might find $forumid in one file and not another so if someone created a list it would be pages long... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|