Support Forums

Extra field Drop down list in User Registration

This is a discussion on Extra field Drop down list in User Registration within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Does anyone could help me on this problem? I would like to include in the user records a drop down ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 02-08-2009, 03:45 PM   #1
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default Extra field Drop down list in User Registration

Does anyone could help me on this problem?

I would like to include in the user records a drop down list field to find out who to refer to my website.

I enabled the fields EXTRA1 in the "User Registration Fields"

I added this code in the "userjoin.tpl" But it does not work.

Quote:
<td>
<select name="refer"
onchange=this.form.extra.value++;
<option>"Choose"</option>
<option>"Friend"</option>
<option >"Other site"</option>
<option >"Search engine"</option>
<option >"Magazine"</option>
<option >"Exposition"</option>
</select>
<input name="extra" type="HIDDEN" value="{$extra}" />
-->
</td>
I don't know how to add the selection to the variable $extra
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 02-08-2009, 04:27 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I'm not quite sure, but I think you're overcomplicating it with javascript and all.
Try this instead using standard XHTML:
HTML Code:
<td>
<select name="extra" id="extra" value="">
<option value="Choose">Choose</option>
<option value="Friend">Friend</option>
<option value="Other site">Other Site</option>
<option value="Search engine">Search engine</option>
<option value="Magazine">Magazine</option>
<option value="Exposition">Exposition</option>
<option value="Other">Other</option>
</select>
</td>
I haven't tested it, but I believe that should work. I use this code with different option values on my site although my site is running the legendary v3.1.10.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-08-2009, 05:37 PM   #3
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default

Hey Mike,

Again right on!

Thank you very much.
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 02-08-2009, 06:33 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Glad it worked for ya!
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra field drop-down sorting pasmith Technical Support 4 11-08-2009 04:41 PM
Extra field Child drop down list not showing hel68c Technical Support 15 09-01-2008 11:21 AM
How to create dropdown list options for Extra Field in "User Registration Fields"? Success Technical Support 11 06-02-2008 10:38 AM


All times are GMT -4. The time now is 04:25 AM.


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