On Saturday, April 23, 2011 1:40:09 PM UTC-4, encompass wrote: > > I would like to make a drop down with the email and password option > there... similar to the way that twitter does it. Is this easily possible?
auth.login() generates the login form -- I suppose you could return that from your home page controller and embed it in the view where appropriate (or just call it directly in the view). On the client side, you would probably handle the drop-down with simple Javascript to toggle the visibility of the login form. For an example, see http://www.beunick.com(it's powered by web2py). > Second, I would like to get read of the "Welcome <first name>" message > next to the logout buttons. > I tried looking into the auth code and couldn't see where this was > easily possible. For example I don't understand how to make my own auth > form and response on any other page by the default one. The login and logout links are generated by the 'navbar' method of the Auth class in /gluon/tools.py. auth.navbar() returns a web2py HTML helper object, so you can use the server-side DOM to alter it before it is rendered (see http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing). Alternatively, you could just write your own replacement for the 'navbar' function. Anthony

