vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Displaying Custom User Profile Field (https://vborg.vbsupport.ru/showthread.php?t=108991)

djnth 02-27-2006 12:25 AM

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

SwissPegasus 03-01-2006 08:59 PM

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?

djnth 03-02-2006 05:35 AM

There must be a way...

SwissPegasus 03-02-2006 06:45 AM

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

Uniphix 03-31-2006 09:41 PM

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.

djnth 03-31-2006 10:20 PM

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...


dlan 04-04-2006 07:25 AM

This looks like a plugin or something... you prolly have to dig in the userpage.php file


All times are GMT. The time now is 08:30 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.03555 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete