Leonel, Whats be your email address? Mine is [email protected] I am not a web developer but I started to learn web2py and want to get good at it. Since my background is different, I need some help. Right now, I am coming up with task to myself and trying to learn web2py by working these tasks. But I have questions and need help. May be what we can do is, send you a w2p file with a power point presentation. And I ask you the question explaining where I am stuck, what I am trying to do and what help I need,... and you without doing the job, may be you can send me some screenshots and links and I pay you hourly? There is a web site call peopleperhour. We can go through that or if you have another way to do things, I am open for ideas.
I have few plans, may be over time it may become something more but to be honest, for now, it just small jobs here and there and tutoring thats all I need. That may change in the long run but I am not sure. Ron On Sunday, March 1, 2015 at 5:08:19 PM UTC-5, Leonel Câmara wrote: > > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

