Support Forums

How to create dropdown list options for Extra Field in "User Registration Fields"?

This is a discussion on How to create dropdown list options for Extra Field in "User Registration Fields"? within the Technical Support forums, part of the Technical Support Forums category; How to create dropdown list options for Extra Field in "User Registration Fields"? For example, I want to create a ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-29-2008, 07:15 AM   #1
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 19
Success is on a distinguished road
Default How to create dropdown list options for Extra Field in "User Registration Fields"?

How to create dropdown list options for Extra Field in "User Registration Fields"?

For example, I want to create a drop down list of Occupations for user to select during registration.
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 05-29-2008, 07:17 AM   #2
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 19
Success is on a distinguished road
Default

Also, how to create radio buttons field for registration page?
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 05-31-2008, 11:53 PM   #3
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 19
Success is on a distinguished road
Default

bump .
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 06-01-2008, 07:50 AM   #4
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 16
ombre is on a distinguished road
Default

Quote:
Originally Posted by Success
bump .
have you figured it out ? also interested in the solution.
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website
ombre is offline  
Old 06-02-2008, 07:52 AM   #5
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 19
Success is on a distinguished road
Default

no, still looking.

Eric, can this be done?
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 06-02-2008, 08:25 AM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 137
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Success
no, still looking.

Eric, can this be done?
It can be done, just about anything can with the developer edition and the coding know how.

Your going to have to hard code the radio buttons or dropdown fields in the template. Then give them a name that coresponds to the extra field you want to use. currently there is extra, extra2 and extra3. When theform is processed the underlying script already looks for values in those fields and should add the values to the user registration.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-02-2008, 09:11 AM   #7
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 19
Success is on a distinguished road
Default

If you create a dropdown list of occupations, usual lists like this will have more than ten items.

An issue I have been thinking is, a user may be from your country, or main location of your classifieds, but is now staying overseas in another country.

Another user, a foreigner, may be from overseas but is now staying in your country.

So what should each of them choose for the Country field?

To solve this, we can use the current countries list as "Nationality" and create another country list as "Current Country of Residence."

If you were to create a dropdown list of countries, the items are in the hundreds.
__________________
Using V4++ Developer... and loving it.

Last edited by Success; 06-02-2008 at 09:15 AM.
Success is offline  
Old 06-02-2008, 09:14 AM   #8
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 137
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Success
If you create a dropdown list of occupations, usual lists like this will have more than ten items.

An issue I have been thinking is, a user may be from your country but is now staying in overseas, another user may be from overseas but is now staying in your country.

To solve this, we can use the current countries list as "Nationality" and create another country list as "Current Country of Residence"

If you were to create a dropdown list of countries, the items are in the hundreds.
Ok, so whats the question?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-02-2008, 09:19 AM   #9
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 19
Success is on a distinguished road
Default

So the hard coding method and the current 3 extra fields are not really suitable to create dropdown fields.

It would be much user friendly on the admin side if one can create new fields and choose normal text, radio or dropdown lists, then entering the items into the control panel to create such fields.
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 06-02-2008, 09:43 AM   #10
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 137
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Success
So the hard coding method and the current 3 extra fields are not really suitable to create dropdown fields.

It would be much user friendly on the admin side if one can create new fields and choose normal text, radio or dropdown lists, then entering the items into the control panel to create such fields.
I guess user friendly depends on your comfort level with HTML. Adding dropdown extra fields as you can now for categories is just as slow or slower for me than adding them manually to the template.

For your specific case, if you want to present someone a list where the data is already in your clasified site, then it would be easy enough to add a database query to the unserjoin file to collect the values and send them to the userjoin template for display in a dropdown. Certainly much easier to code than to manually enter 200+ items to a dropdown whether done via admin interface or by hand in the template.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 12:29 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0