Welcome to weSEO

Login

Welcome back, nice to see you again.

Register - it's free!

Comment, spread your love, communicate

Welcome back!

Nickname:

Password:

Lost your Password?

Create your new Account

Sign in with Twitter

Nickname:

Mailadress:

Back to previous Page after login

As webSPELL Users you will have gone through this at least once. You want to write a Comment and notice that you are not logged in. Thats where your Journey trough the whole Page starts:

  1. You have to LogIn
  2. You are lead to the "Login Overview"
  3. You have to click on "News"
  4. You have to search for the News you wanted to commend on
  5. You finally can write your Comment

And now, with my solution you can do it in 2 steps!
  1. You have to LogIn
  2. You are lead back to the news you wanted to commend on and you can write your commend!

This was only an example for what this change will do. It works everywhere, you are always going to come exactly back to where you where before you Logged in!

Here´s how you change your checklogin.php!
Open checklogin.php and search for:
Code:
1.
<?php if($login) { echo '<meta http-equiv="refresh" content="1;URL=index.php?site=loginoverview" />'; } ?>

Change to:
Code:
1.
2.
3.
4.
5.
6.
7.
<?php
 $referer = $_SERVER["HTTP_REFERER"];
 if($login) {
  if(isset($referer)) echo '<meta http-equiv="refresh" content="1;URL='.$referer.'">';
  else echo '<meta http-equiv="refresh" content="1;URL=index.php?site=loginoverview">';
 }
?>

If we know from where the User comes we can send him back there, otherwise he will be lead to the Login Overview.


Avatar
ferinan - 05.07.2009 - 06:08
big thanks for that !!! very usefull

Avatar
ReMiXs - 15.09.2011 - 16:36
Thanks :))

Please Login to leave a Comment.

Sign in with Facebook Sign in with Twitter