Author |
Topic |
|
Uzzio
Starting Member
46 Posts |
Posted - 16 October 2003 : 03:41:20
|
I almost finished modifying this hated inc_header.asp... Last thing I want to do is to eliminate the possibility to login from the forum pages, but just inserting a link to login.asp in the navigation bar.
I inserted the link, but I would like it to change from log in to log out (just as the image in the default forum) when needed...
So if you are logged out the link says "Log in" and takes you to login.asp, after you logged in, the link changes in "Log Out" that directly logs you out and the link is back to "Log In".
I tried to copy and modify the default code but I wasnt able to do it....please help me I hate that login table :D it messes up my new forum design!
thanks!
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 16 October 2003 : 07:38:30
|
just add an if statement around the link: if mLev = 0 then <a href=""..."">log in</a> else <a href=""..."">log out</a> end if |
|
|
Uzzio
Starting Member
46 Posts |
Posted - 17 October 2003 : 02:50:00
|
quote: Originally posted by Roland
just add an if statement around the link: if mLev = 0 then <a href=""..."">log in</a> else <a href=""..."">log out</a> end if
Thank you!!! didnt know about mlev=0 to define logged in :) thanks.
One problem : it works but I cant find the link to have the logout....?tried to link at login.asp as the login but if you are already logged in it directs to default.asp, it does not log you out...how can I do?
thanks! |
|
|
EvilRick
Starting Member
37 Posts |
Posted - 20 October 2003 : 22:54:47
|
You're doing the same thing that I'd like to do.
How did you eliminate the Login/Logout code? |
|
|
Uzzio
Starting Member
46 Posts |
Posted - 21 October 2003 : 02:24:51
|
That's what I'm trying to do :), still. I added the link for login (to login.asp) and it changes to logout when you are logged in, but I dont know how to set it to a link for logging out...it takes me back to default.asp.
To remove the login code, I tried, I just removed the table.But you have to check to mantain the "admin options" link :)
www.teamspl.it you can see how it works at the moment |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 21 October 2003 : 06:36:28
|
I did something similar, I made a second inc_header (inc_header2.asp) file for use only with the portal pages. Stripped the login code out and provided just a link to login.asp in that file. A valid member cookie will go straight to default.asp when the login link is clicked. I changed the original inc_header so that a member will go to portal.asp when logout is clicked. See here: www.cashbackaustralia.com Username: Special Guest Password: bnr258d |
Edited by - StephenD on 21 October 2003 06:40:16 |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 21 October 2003 : 07:47:13
|
When you log the member out, you have to delete the cookie and use the original codes found in inc_header.asp. |
|
|
Uzzio
Starting Member
46 Posts |
Posted - 22 October 2003 : 07:01:01
|
quote: Originally posted by Roland
When you log the member out, you have to delete the cookie and use the original codes found in inc_header.asp.
I tried, calling the subroutine deletecookie, but just get errors :( so I still did not remove the table with the old login style |
|
|
Uzzio
Starting Member
46 Posts |
Posted - 03 November 2003 : 06:59:14
|
anyone?:) |
|
|
|
Topic |
|