![]() |
Custom Profile Fields not appearing in 3.7
Either I'm missing something, or something has changed since 3.7.
I am attempting to make some changes to my memberinfo template, which includes showing some profile fields. Here's the code which I use: Code:
<if condition="$post[field10]">$post[field10]</if> I also tried this: Code:
<if condition="$vbulletin->userinfo[field10]">$post[field10]</if> Any comments would be appreciated. |
I'm not sure why you'd be expecting profile fields to be in a $post array on the profile page. Just use $userinfo['field10'].
Remember that what works in one template may not work in another. In this case, you may have used $post['field10'] in something like a postbit, called via showthread.php ... because showthread.php sets up that $post[] array to include all kinds of useful information sepcific to a given post. But MEMBERINFO is called from profile.php, which knows nothing about forum posts, and doesn't set up a $post[] array. -- hugh |
It worked, thanks. I was struggling with this for a while and had tried just about every type of variable except $userinfo, the closest one I had used was $user. But in any case, well said, and thank you.
|
All times are GMT. The time now is 09:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|