I'm up to doing some consulting. You can put all that code in the models before the line where you do auth.define_tables() or you can put upload_fullpath and SMARTHUMB in a module and then you import SMARTHUMB in your models before auth.settings.extra_fields.
This solution uses a computed field to make the avatar from the photo field, so you really don't need any controllers, see: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Computed-fields To show the avatar of the logged in user for example you could just do: <img alt="avatar" src="{{=URL('default', 'download', args=auth.user.avatar)}}"> PS:. You may need to logout and log back in to see the avatar if you do it this way. -- 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/d/optout.