View Full Version : Redirect user to My Listings page after successful login
PGGO
December 27, 2012, 08:42 AM
I want to redirect my users to “My Listings” page right after they successfully logged in.
Does anyone know how to set this up?
autocy
December 27, 2012, 09:32 AM
Hi PGGO,
I don't think it's a good idea to always redirect to a fixed url, i.e what if the user is trying to access a specific page and it prompts for login? wouldn't it be better to redirect them to the page they wanted in the first place?
But i think you can do it like this:
open file in /templates/[your_template]/tpl/controllers/login.tpl and line 22 find this:
<input type="hidden" name="regirect" value="{$request_page}" />
change {$request_page} with your chosen url
Viktor
December 27, 2012, 09:33 AM
Hello Kirill,
You can go to ftp://includes>>controllers>>login.inc.php
find code at line ~ 36
$reefless -> referer();
and replace to:
$url = SEO_BASE;
$url .= $config['mod_rewrite'] ? $pages['my_vendors'] .'.html' : '?page='. $pages['my_vendors'];
$reefless -> redirect(null, $url);
PGGO
December 27, 2012, 09:57 AM
Thank you all! However, Viktor's option works best.
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.