Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2006, 12:25 AM
djnth djnth is offline
 
Join Date: May 2003
Location: AZ
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Displaying Custom User Profile Field

I have tried to get help with this elsewhere but nobody seems to have an answer.

I am using the User Page mod http://www.azdancemusic.com/forums/userpage.php?do=list on my site and it displays the list of users who have created their own pages. Currently they are listed by their user name but I would like to have them listed by one of the Custom Profile Fields I created called 'DJ Name'. I tried replacing the username with the variable for the Custom Profile Field but it doesn't seem to be working, I'm thinking it doesn't have access to that info but I'm not a php coder so I'm not sure.

Any help would be greatly appreciated!!

djnth
Reply With Quote
  #2  
Old 03-01-2006, 08:59 PM
SwissPegasus SwissPegasus is offline
 
Join Date: Jan 2006
Location: Switzerland
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey

Same me, i try to display in postbit some of the custom profile fields. But since now i have no idea how to do it.

Could somebody help?
Reply With Quote
  #3  
Old 03-02-2006, 05:35 AM
djnth djnth is offline
 
Join Date: May 2003
Location: AZ
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There must be a way...
Reply With Quote
  #4  
Old 03-02-2006, 06:45 AM
SwissPegasus SwissPegasus is offline
 
Join Date: Jan 2006
Location: Switzerland
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes there is a way. Yesterday late in the night i found this:

$post[field5]

With this var i get what i want. I hope this will help u to.

cu
SwissPegasus
Reply With Quote
  #5  
Old 03-31-2006, 09:41 PM
Uniphix's Avatar
Uniphix Uniphix is offline
 
Join Date: Dec 2004
Location: Washington, USA
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you went to the Profile Field Manager you would have seen it very clearly if you would have clicked on that ? and it would have explained what you needed...

Quote:
User profile fields can be displayed in posts next to the author's name. If you want to display a profile field in posts then you need to edit your postbit or postbit_legacy template (depending on which one you use as is indicated by the "Use Legacy (Vertical) Postbit Template" option in your vBulletin options) and add $post[fieldX] where X is the field ID of the profile field as shown under the "Name" column on this page.
Reply With Quote
  #6  
Old 03-31-2006, 10:20 PM
djnth djnth is offline
 
Join Date: May 2003
Location: AZ
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've already tried that bit of code $post[field5] but it doesn't work on the page I want it on. I can get it to display other places but not on this page http://www.azdancemusic.com/forums/userpage.php?do=list I want to have [field5] display instead of the username field that currently displays on the list of DJs. Is this because it is within another script?



Quote:
Originally Posted by Uniphix
If you went to the Profile Field Manager you would have seen it very clearly if you would have clicked on that ? and it would have explained what you needed...
Reply With Quote
  #7  
Old 04-04-2006, 07:25 AM
dlan dlan is offline
 
Join Date: Aug 2005
Location: Greece
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a plugin or something... you prolly have to dig in the userpage.php file
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 02:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03823 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete