Zubrag.com
November 22, 2019, 01:04:10 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Going back to login.php after a person has logged in  (Read 11875 times)
therockwwe
Newbie
*
Posts: 7


« on: November 22, 2007, 06:30:27 PM »

Hi

Really enjoying the script

Just having a few issues:

I have a login graphic in my navigation that points to login.php, when a person logs in then clicks the login graphic again it goes to a blank page

Is there anyway to fix this?

Forgot to mention its a frame based website where the navigation is in one frame

Thanks in advance

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: November 23, 2007, 04:04:41 AM »

Hi! Why would you show login graphic after user is logged in?
Logged
therockwwe
Newbie
*
Posts: 7


« Reply #2 on: November 23, 2007, 05:19:59 PM »

Its not really a 'login' graphic

Its meant to be linked to the password protected page (like a members page)

Except I have individual password protected pages (i.e. John.php, Stacey.php, Joe.php)

Should I be linking to something other than login.php??
Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #3 on: November 26, 2007, 06:03:16 AM »

Find this code in login.php

  if (!$found) {
    showLoginPasswordProtect("");
  }

and add this code after it

  // need to be redirected?
  if (isset($REDIRECTS[$key]) && !empty($REDIRECTS[$key])) {
    header('Location: '
           . ((REDIRECT_PREFIX != '') && (strpos($REDIRECTS[$key], 'http') !== false) ? '' : REDIRECT_PREFIX)
           . $REDIRECTS[$key]);
    exit();
  }
Logged
therockwwe
Newbie
*
Posts: 7


« Reply #4 on: November 27, 2007, 12:42:07 AM »

Thank you so much zubrag

Your response are absolutely amazing

Thank you very much 
Logged
Woody
Newbie
*
Posts: 13


« Reply #5 on: December 25, 2008, 11:50:15 AM »

That worked for me too! I take it you are no longer posting on the site, but thanx for keeping the forum open so peeps who have only just come across your great script can still find the help they need!

I now don't have to worry about adding the link manually into the manager.php for customers to get to the links when they are already logged in, I can also change the login time from 1 minute!

Merry Xmas & Happy New Year to all on here, especially to you Zubrag for making the scripts free!

All the best,

Woody
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC