The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
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.
|
#3
|
|||
|
|||
![]() Quote:
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. |
#4
|
||||
|
||||
![]()
Session:
$vbulletin->session->vars['dbsessionhash'] Userid: $vbulletin->userinfo['userid'] Usergroupid: $vbulletin->userinfo['usergroupid'] |
#5
|
|||
|
|||
![]() Quote:
|
#6
|
|||
|
|||
![]()
you can do pre postbit processing in a hook.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|