Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:41:16 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Login Redirect To Current Page?  (Read 725 times)
gillweb

Offline Offline

Posts: 83



« on: February 03, 2008, 04:22:12 AM »

Right now the way the account/login.php page it redirects the visitor back to the index.php file:
Code:
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index'.PAGE_EXTENSION);
Is there a way to change this to redirect page to the page they were at when they logged in?  Like if they login on a page named products.php it would bring them right back to products instead of index.  Any ideas?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: February 03, 2008, 07:34:13 AM »

Hello,

create your own login form in a wysiwyg section, there you can add your own redirect. Look her for an example, simply replace url and redirection with your values.

http://www.websitebaker2.org/forum/index.php/topic,8019.msg48393.html#msg48393

Matthias
Logged
gillweb

Offline Offline

Posts: 83



« Reply #2 on: February 03, 2008, 10:48:07 PM »

thanks got it!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!