PDA

View Full Version : What functions file is associated with postbit?


binjured
07-04-2005, 12:31 PM
Hey all. I need to know which functions file is associated with the postbit / postbit_legacy template. I'm modding my postbit_legacy (specifically the username menu dropdown) but it's going to require a variable or two in addition to simple html changes. If there is no functions file associated with the template, is there a way to make one that is? Also, do I need to specially define my variables to make them work in the template, like do they need to defined as "global" or anything?

Thanks.

Marco van Herwaarden
07-04-2005, 12:49 PM
There are many places where the postbit template is used. I suggest you do a search of the files in you forumhome directory and the ./includes directory.

binjured
07-04-2005, 05:09 PM
There are many places where the postbit template is used. I suggest you do a search of the files in you forumhome directory and the ./includes directory.
Okay, it seems I've found what I'm looking for within class_postbit.

a couple more questions: What is the session, cookie, or variable that say a user is logged in? How can I tell what primary usergroup a user is in (via a variable)?

Note: I am referring to already-present Global variables. If none exists for say, the usergroup, I assume I will need to make a query for it on each page.

Andreas
07-04-2005, 05:15 PM
Session:
$vbulletin->session->vars['dbsessionhash']

Userid:
$vbulletin->userinfo['userid']

Usergroupid:
$vbulletin->userinfo['usergroupid']

binjured
07-04-2005, 06:11 PM
Session:
$vbulletin->session->vars['dbsessionhash']

Userid:
$vbulletin->userinfo['userid']

Usergroupid:
$vbulletin->userinfo['usergroupid']
Thanks a lot! Per chance would you know if there is a page or thread somewhere that lists all the default global arrays and their variables?

merk
07-04-2005, 11:05 PM
you can do pre postbit processing in a hook.