Showing log out button and welcome text
I would like to show a welcome message to logged on users but a different message to those who have not yet logged on. I am hoping i can do this from within the template but so far i haven't got it to work
Any help will be much appreciated
Samir
I have already created a template in dwmx 2004 and have already created many of the pages. I have used dw's user authentication system to allow users to log in. What i now want to do is show a 'You are currently logged on as : xxxxx. Please click here to log off' IF a user is logged on (using mm_username i think). However if the user is not logged on i want it to say 'please log on to view the restricted areas'.
I have attempted to do this in the template but with no sucess. Is it possible to do this in the template so this can autoimatically appear on each page, or do i have to manually do it on every page. Also i tried doing it manually on one of the pages to see if it would work and i get an error saying mm_username is undefined (i am using isset() so i thought it would just return false in this case???)
Any help would be much appreciated,
Thanking you in advance
Samir
Comments
Hmm...
You must me logged in to write a comment.