User goes to board index page after logging in from topic thread

Started by xjessie007, October 11, 2008, 03:57:14 PM

Previous topic - Next topic

xjessie007

Hi,

I have been trying to figure out one thing. When a user that is not logged in browses through a forum, he gets to some thread that interests him. Then he logs in. After logging in, the user is not taken to the thread, but he is taken to the board index. Anyone has any idea how to fix this? I am using SMF 1.1.6.

Thanks.
When traveling to the Schengen zone (most of Europe), remember that some nationals need so called Schengen visa. Schengen visa is a travel document.
Check the schengen visa travel guide

Kermit

You've probably smfseo on your forum

For fixing that problem


try this


Sources/LogInOut.php




Code (find) Select
if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
$_SESSION['login_url'] = $_SESSION['old_url'];

Code (replace) Select
     if (isset($_SESSION['old_url']))
          $_SESSION['login_url'] = $_SESSION['old_url'];
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

xjessie007

I do not have smfseo (I have pretty urls if it makes any difference), but this did help!
Thanks. Guys, you all are so smart..  :)


-------------
www.maxi-pedia.com - Maxi-Pedia: Your resource for finance & IT!
www.finance-management.cz - Central European Center for Finance and Management
When traveling to the Schengen zone (most of Europe), remember that some nationals need so called Schengen visa. Schengen visa is a travel document.
Check the schengen visa travel guide

Advertisement: