21 February 2009 at 1:59am
(Last edited: 21 February 2009 2:28am),
I'm using the $LoginForm in my template as follows:
<% if CurrentMember %>
You're logged in as: $CurrentMember.FirstName
<% else %>
<% end_if %>
1) Where do i edit the CSS for this?
2) It has an email & password field and a 'login' and 'i've lost my password' button. When logged in, i would like the user to have a 'logout' option. How do i create this? Is there something like a $Logout piece of code?
Many thanks in advance!
edit: I ended up just adding the following code to log out:
Probably the easiest way to approach it would be to copy all the styles that apply to the login form and then just add #customLoginForm inform of them and start editing, that way you know that it will always have one more selector and so will overwrite the default styling :)
19 December 2009 at 2:29am
thank you for your code,it helped me in creating the link for logout
but when i click on logout link though the session is logged out but it is redirect to the same page,I want to redirect it to home page
Can anyone help me in redirecting to home page after clicking on logout.
Thank you in advance