Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Eliminating the login from inc_header.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uzzio
Starting Member

46 Posts

Posted - 16 October 2003 :  03:41:20  Show Profile
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  Show Profile
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
Go to Top of Page

Uzzio
Starting Member

46 Posts

Posted - 17 October 2003 :  02:50:00  Show Profile
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!
Go to Top of Page

EvilRick
Starting Member

37 Posts

Posted - 20 October 2003 :  22:54:47  Show Profile  Visit EvilRick's Homepage
You're doing the same thing that I'd like to do.

How did you eliminate the Login/Logout code?
Go to Top of Page

Uzzio
Starting Member

46 Posts

Posted - 21 October 2003 :  02:24:51  Show Profile
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
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 21 October 2003 :  06:36:28  Show Profile  Send StephenD a Yahoo! Message
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
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 21 October 2003 :  07:47:13  Show Profile
When you log the member out, you have to delete the cookie and use the original codes found in inc_header.asp.
Go to Top of Page

Uzzio
Starting Member

46 Posts

Posted - 22 October 2003 :  07:01:01  Show Profile
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
Go to Top of Page

Uzzio
Starting Member

46 Posts

Posted - 03 November 2003 :  06:59:14  Show Profile
anyone?:)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07