Side bar Login

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post September 5th, 2006, 2:15 pm

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.
#define NULL (::rand() % 2)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 5th, 2006, 2:15 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 5th, 2006, 2:36 pm

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.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 5th, 2006, 2:43 pm

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 5th, 2006, 2:59 pm

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/
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Joined: Aug 03, 2004
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap
  • Status: Offline

Post September 5th, 2006, 5:39 pm

i would put a hidden field in the login box that posts the current page to login.php
GodBeGone - Atheist Blog
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 5th, 2006, 7:37 pm

I agree, Meman's way would be more reliable since you can't really trust the referrer browser property to actually be passed.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post September 19th, 2006, 4:06 pm

... 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 31 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.