Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2004, 08:44 PM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default User Profile Fields outside Postbit?

I'm trying to display a user profile field in a template outside of postbit.

Specifically, I want to use the ShowGroups page to be my staff page and display additional information about the user (i.e., full name, title, etc.).

I can't seem to find the code that allows you to reference $post[fieldx] in the post bit.

If anyone can help, or at least point me to where the code is, I'd really appreciate it.

Thanks in advance,
Sean
MX6.com
Reply With Quote
  #2  
Old 04-19-2004, 04:26 PM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #3  
Old 04-19-2004, 04:50 PM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using vb 2.3.1 or 3.0.x?
Reply With Quote
  #4  
Old 04-19-2004, 05:09 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try $bbuserinfo[fieldx].
Reply With Quote
  #5  
Old 04-19-2004, 06:11 PM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using 3.0.

$bbuserinfo[fieldx] wont work because it only displays the info the current logged in user, not the user being displayed on the Show Groups bit.
Reply With Quote
  #6  
Old 04-19-2004, 09:51 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh. Yes. I didn't completely understand what you were asking.

I could use something like that as well.
Reply With Quote
  #7  
Old 04-21-2004, 12:15 AM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another possibility would be to modify the Memberlist to show only certain usergroups. I mean, I'm kinda suprised that they have a separate Show Groups page at all. It would seem to make more sense to have a lookup on the regular Memberlist that only showed the Admins and Mods (or staff).

The Memberlist page is WAY more flexible than Showgroups.

So if anyone has any ideas to make the Memberlist display only certain user groups, then that would probably work as well.
Reply With Quote
  #8  
Old 04-30-2004, 04:30 PM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I asked the same thing a long time ago, and again today.

http://www.vbulletin.com/forum/showt...969#post663969

Quote:
Originally Posted by mtha
Idea:

- You have to edit showgroup.php file, find the part where it read the information from database for showgroup (query SELECT something)

- Add to the query so that it also read all field (or field16) from customfield table



by that time, you will be able to use field16 in your template



I didnt actually look at the file, so cant tell you excactly where it is right now.
Reply With Quote
  #9  
Old 04-30-2004, 05:12 PM
the_sisko's Avatar
the_sisko the_sisko is offline
 
Join Date: Oct 2001
Location: Hamburg,Germany
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kyrnel
Another possibility would be to modify the Memberlist to show only certain usergroups. I mean, I'm kinda suprised that they have a separate Show Groups page at all. It would seem to make more sense to have a lookup on the regular Memberlist that only showed the Admins and Mods (or staff).

The Memberlist page is WAY more flexible than Showgroups.

So if anyone has any ideas to make the Memberlist display only certain user groups, then that would probably work as well.
The memberlist already has the feature to show only one specific group. It's used to show public group leaders all members of the group (memberlist.php?usergroupid=X) But its only working when you are leader of these groups. Maybe you could use the part of code of it and recode it for your needs.
Reply With Quote
  #10  
Old 04-30-2004, 05:25 PM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats a good suggestion.

I really need it to display mutiple groups, though. I know I could probably make a hidden group and add it to all the staff, but they would likely be all lumped together then.

It would be wonderful if I could have a page that showed the following sections:

Admins
Super Moderators
Moderators
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07875 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete