![]() |
Vbulletin 4 user profile field help needed?
hello i have create a new registration user profile field as below:
Profile Field type: Single-Selection Menu Title:: Marketing Experience Options: Select your marketing experience. 1 year 2 years 3 years 5 years. Set Default: Yes But No first blank option Display order: 6 Field Required: Registration and profile page Field editable: yes Here is the details, and after some searching i am able to show these value on a postbit under usertitle. But one issue is that i don't want to show the exact option selected, i want to show like this If a user select '1 year' marketing experience during registration the text 'rookie' should be displayed on postbit. Can you please tell me how can i achieve that. i want to display the value as shown If a user select option 1 year = Rookie Marketer should be displayed on postbit 2 years = Scalper Marketer 3 years = Technical marketer 5 years = professional marketer Please anybody help, need it done urgently. Thanks In Advance. |
try this:
Code:
<vb:if condition="$post['fieldXXX'] == '1 Year'"> Replace the XXX with the corresponding field number. Replace Marketing level with the the title you want to use |
Quote:
Thanks in advance. |
strange it as working perfectly on my testsite.
Did you replace the xxx with the fieldnumber 3 times? I see i had a type error in my code. I forgot the change field5 with xxx o 2 lines. Sorry about that. Was getting late and tired. Code:
<vb:if condition="$post['fieldXXX'] == '1 Year'"> |
Quote:
|
can you give me the link to your site please?
and the postbit legacy if possible (or the part with the added code) |
here is the link of the site i am working on,
here is a thread. link where i tested Here is postbit_legacy code. Code:
{vb:raw template_hook.postbit_start} |
field5 is the correct fieldnumber for that custom field?
I registered to your site. i can't seem to change it anymore after registering. can you change that so i can test? |
hi, after registering you can change the user permission, via edit profile in settings page.
yes the field number is 5 as you can see in the screenshot. |
i think the problem is that you placed in under usertitle.
Try placing it under Code:
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd> |
All times are GMT. The time now is 12:04 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:
|