Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Jul 2008, 17:05
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
Profile Field in Postbit - Displaying as #

Hello -

I included code in my postbit template to display a profile field in the postbit.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The bold, blue text is the text I added in. I'm also using the postbit that vbulletin.com is using, so I'm editing the postbit template, not the postbit_legacy template.

It is listed as field7, so I'm guessing I have the field right. It's a multiple-selection menu with 24 options, and a maximum of one can be selected. It's not private, it's not searchable but it does display on the Member's list.

The problem I'm experiencing is that the text Affiliation: shows up fine, but the text displayed isn't what I want. I'm looking for words - as those are the selections, but instead I'm getting numbers.

At first I selected the second option, and it displayed as a 2. Then I selected the last option, and it's displaying as 8388608.

Does anyone know what the problem could be?

Last edited by youradhere4222; 20 Jul 2008 at 17:11.
Reply With Quote
  #2  
Old 20 Jul 2008, 18:52
SLR722 SLR722 is offline
 
Join Date: Jul 2008
What are the options here? I recently post on my blog. A modification for vBulletin Country Flags and you can see in my install how I have done it.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Title: Country Flag
Description:Add a country flag to your profile
Profile Field Category: (Uncategorized)
Options: Open the list.txt and copy and paste the whole file in here
Set Default: None
Display Order: 5 (Or whatever else is there)
Field Required: Yes, at registration and profile updating
Field Editable by User: Yes
Private Field: No
Field Searchable: No
Show on Members List: Yes
Allow user to input their own value for this option: No
Max length of allowed user input: SKIP
Field Length: SKIP
Regular Expression: SKIP
Display Page: Edit Your Details
I hope this helps. You can also try reading about the operator bits which are generated in multi choice with number options, check it out here..


How To Add A Profile Field To The Postbit

Reply With Quote
  #3  
Old 20 Jul 2008, 20:16
Opserty Opserty is offline
 
Join Date: Apr 2007
It's a multiple-selection menu with 24 options, and a maximum of one can be selected.
Doesn't limiting it to one select, defeat the purpose of a multiple selection option?

See the 2nd post of the link given above (How To Add A Profile Field To The Postbit)
Reply With Quote
  #4  
Old 21 Jul 2008, 05:07
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
Originally Posted by Opserty View Post
Doesn't limiting it to one select, defeat the purpose of a multiple selection option?

See the 2nd post of the link given above (How To Add A Profile Field To The Postbit)
Ah - thank you.

That's way to difficult to understand; I guess I'll allow users to input their own choices.
Reply With Quote
  #5  
Old 21 Jul 2008, 20:24
SLR722 SLR722 is offline
 
Join Date: Jul 2008
You do not need to follow the binary operators. Mine works the same way and does not follow the operator erand..
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:28.

Layout Options | Width: Wide Color: