A simple way of doing it would be adding a field with a string set (avatar 
1, avatar 2 , avatar 3).
Then in the view you can show a image based on which string the user chose.

Example

{{if (row.avatar == "avatar 1"):}}
 {{url to first image..}}
{{elif (row.avatar == "avatar 2"):}}
 {{url to second image..}}
{{else:}}
 {{url to third image..}}
{{pass}}

However, i'm not sure how to put images in a dropdown list, i think you 
need jQuery for that. 
Maybe you could make a function that whenever the select gets updated (user 
choosing a different avatar) that you show the image beneath the select?



On Thursday, November 21, 2013 2:38:29 AM UTC+1, Noah Corradin wrote:
>
> I have a custom registration form and i am getting a good grasp of the 
> concepts behind customizing the auth_table.  I was curious about one thing 
> i could not find a good direction for.
>
> I want users to be able to select an image from a drop down menu at the 
> registration page for their avatar.  Any tips or suggestions on how to 
> accomplish this?
> Much appreciated in advance.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to