Side bar Login

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

I normal just set my status to always sign myselve in, but sence I reformated a bit I had it cleared. So for the past few days I have just been loging in. Well everyonce in a while I forgot and my looking through a topic and I desided I want to post. So now that there is that nice little login box on the sdie of the forum Ive been using it. But when I login, it redirects me to the home page. So I was thinking it might be worth making it redirect to last page. I am now set to auto login but not everyone uses this.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9101
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Yes that is a good idea, however I do not think the stock phpBB allows that to be done. Unless I am wrong, I will have to find a premade mod or write some code up myself to get that done.

I will try to get that to do tha sometime in the future.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

I do like this suggestion. I've seen this on countless forums outside of phpBB. Never looked for a prewritten mod for this in phpbb but there might be one out there.

Problem is the way login.php is written stock, it can only redirect to one spot. It could be set to any page but by default redirects to index.php. It would have to be custom modded to make it work. Should be pretty easy though. Just capture the refering page, assign it to a variable and the set the redirect to the referer variable. Only snag with that is keeping it "in house" so-to-speak. Have to filter only OZZU refering pages. Wouldn't want someone coming from an external site to be redirected back to that lol.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

hmmm, looks like this could be all it takes

PHP Code: [ Select ]
if(@$_SERVER['HTTP_REFERER'] != '')
 
   header('Location: '.$_SERVER['HTTP_REFERER']);
 
else
 
   header('Location: <!-- m --><span class="postlink">http://www.example.com/'</span><!-- m -->);
  1. if(@$_SERVER['HTTP_REFERER'] != '')
  2.  
  3.    header('Location: '.$_SERVER['HTTP_REFERER']);
  4.  
  5. else
  6.  
  7.    header('Location: <!-- m --><span class="postlink">http://www.example.com/'</span><!-- m -->);


http://www.julian-bez.de/blog/2005/07/1 ... er-in-php/
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap

Post 3+ Months Ago

i would put a hidden field in the login box that posts the current page to login.php
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9101
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

I agree, Meman's way would be more reliable since you can't really trust the referrer browser property to actually be passed.
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

... or even a "reply to this post" button like there was on the old theme. This would take you to the login screen, which would then redirect you to the post in question with the reply box open.

Bouncing back out to the main page is certainly a little bit annoying.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 4 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.