View Full Version : Displaying Custom User Profile Field
djnth
02-27-2006, 12:25 AM
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...
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 (http://www.paragonix.org/forums/admincp/options.php?dogroup=stylelang&do=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?
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...
This looks like a plugin or something... you prolly have to dig in the userpage.php file
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.