Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Jul 2005, 13:31
binjured binjured is offline
 
Join Date: Jun 2005
Question What functions file is associated with postbit?

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.
Reply With Quote
  #2  
Old 04 Jul 2005, 13:49
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
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.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 04 Jul 2005, 18:09
binjured binjured is offline
 
Join Date: Jun 2005
Originally Posted by MarcoH64
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.

Last edited by binjured; 04 Jul 2005 at 18:12.
Reply With Quote
  #4  
Old 04 Jul 2005, 18:15
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Session:
$vbulletin->session->vars['dbsessionhash']

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

Usergroupid:
$vbulletin->userinfo['usergroupid']
Reply With Quote
  #5  
Old 04 Jul 2005, 19:11
binjured binjured is offline
 
Join Date: Jun 2005
Originally Posted by KirbyDE
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?
Reply With Quote
  #6  
Old 05 Jul 2005, 00:05
merk merk is offline
 
Join Date: Nov 2001
Real name: Tim
you can do pre postbit processing in a hook.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:50.

Layout Options | Width: Wide Color: