|
|
#1 |
|
Senior Member
|
Hi there,
I'd like to use one of the extra registration fields to catch info regarding how people came by the site as there is no point in spending money on advertising if it can't measured. My idea was to use one of these fields to house a drop down with values like Word Of Mouth, Billboard, Radio Advertisement, Flyer, Other etc etc A nice but not essential would be that, if other was selected I'd like to allow the user to type the explanation in a text box which would appear. Trouble is these fields seem to be single line text only. Anyone know a neat way of doing this ? Many thanks, Mully
__________________
v4.08 Last edited by free2take; 02-25-2007 at 02:21 PM. |
|
|
|
|
|
#2 |
|
Senior Member
|
Ok found a solution for the bulk of this.
Basically I piggyback the extra field and change it into a drop down box and create a small function to define the values there in. 1)In includes/functions.php add the following lines: PHP Code:
PHP Code:
2) In lanuage/english.php add the following entry PHP Code:
PHP Code:
This passes the dropdown values you listed in the getrby() function to the userjoin template. 4)Your active template folder /user/userjoin.tpl.php Modify the extra listings section as PHP Code:
Make sure you change the description of the extra field in your admin panel and make it visible etc on your registration form. Haven't worked out how to pop up an additional box though I'd like the user to be able to type in a vlaue if other was selected, any ideas ? All the best, Mully
__________________
v4.08 |
|
|
|
|
|
#3 | |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 745
Rep Power: 28 ![]() |
Quote:
That means you would have a select box (already done) place an accompanying text input.
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
|
|
|
|
|
|
#4 |
|
Senior Member
|
I had thought about this before and was thinking of using one of the remaiing extra fields again i.e. extra field 2.
Guess I could go down this route, I thought it would be nice to have the dynamic element to it though.
__________________
v4.08 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Extra user registration info | BigOrange | v3.1 Questions & Support | 4 | 03-06-2007 05:47 PM |
| Extra fields bug? | Sinisa | v3.1 Questions & Support | 8 | 01-24-2007 03:20 PM |
| Location of extra fields | Acpjax | v3.1 Questions & Support | 4 | 10-25-2006 03:03 PM |