You can use extra fields to add fields to profile.
auth.settings.extra_fields['auth_user'] = [Field('gender'),
Field('eyes_color'), Field('overall_hotness')]
You can make the profile of a user public:
# http://...../profile/1
def profile():
user = db.auth_user(request.args(0))
if user: # remove fields you do not want to accidentally expose
del user.password
del user.registration_key
return dict(user=user)
To check who is online you need to use a websocket server. Web2py has one
in gluon/contrib/websocket_messaging.py. It requires tornado. The example
is in the code itself. If you understand how it works it only requires 2-3
lines of JavaScript coding.
Massimo
On Friday, 26 February 2016 09:03:30 UTC-6, meanrhei nqiofg wrote:
>
> How do you create dating profiles like in a dating site in web2py? I want
> one to see other profiles once they are created.
> I also want one to see who is online when the users are created.
>
--
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.