The Arcive of vBulletin Modifications Site. |
|
Custom Profile Fields Details »»
|
|||||||||||||||||||||||||
Hi, Everybody,
I'm redesigning "getinfo", the user profile template, and I wanted to reference a custom profile field directly. How would I do this? Is it just $userinfo[field2] and so on, or do I need to reference it somehow differently? Thanks! Regards, Kaelon Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Whoops! Please move to : https://vborg.vbsupport.ru/forumdisp...?s=&forumid=27
|
|
#3
|
||||
|
||||
|
I've been trying to accomplish this task for a while now, but I haven't been able to figure it out either. Does anybody know how to do this?
|
|
#4
|
|||
|
|||
|
Yes, although IIRC the fields start at 5. Look at the database or the id when adding the field.
|
|
#5
|
||||
|
||||
|
What's wrong with $userinfo[fieldx]? Should work. You can set it the custom profile id NOT to show in your Admin CP, then manually add it to your getinfo template.
|
|
#6
|
||||
|
||||
|
The $userinfo[fieldx] thing doesn't seem to work within profiles, but it does in postbits. Either that, or I'm doing something wrong. The custom field I wanted in the profile was 7, so I added $userinfo[field7] into the getinfo template, but nothing showed up. Any Ideas?
|
|
#7
|
||||
|
||||
|
$userinfo[fieldx] DOES work in the getinfo template. I use it all the time.
Make sure you have entered a value in that custom profile field. In postbit, it's not $userinfo[fieldx], it should be $post[fieldx]. |
|
#8
|
||||
|
||||
|
Okay, I must've confused the tags. Thanks for the help.
|
|
#9
|
||||
|
||||
|
Yikes, I just tested it again and it still doesn't show up. I'm using $userinfo[fieldx] in getinfo, but it doesn't seem to work. Any ideas?
|
![]() |
|
|