+ Reply to Thread
Results 1 to 4 of 4

Thread: Redirect user to My Listings page after successful login

  1. #1
    Senior Member
    Join Date
    Aug 2010
    Posts
    174

    Redirect user to My Listings page after successful login

    I want to redirect my users to “My Listings” page right after they successfully logged in.

    Does anyone know how to set this up?

  2. #2
    Senior Member
    Join Date
    Dec 2012
    Posts
    102
    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:

    Code:
    Only registered members can view the code.
    change {$request_page} with your chosen url

  3. #3
    Hello Kirill,

    You can go to ftp://includes>>controllers>>login.inc.php

    find code at line ~ 36

    PHP Code:
    Only registered members can view the code
    and replace to:

    PHP Code:
    Only registered members can view the code
    Viktor,
    Flynax technical department,
    Best wishes.

  4. #4
    Senior Member
    Join Date
    Aug 2010
    Posts
    174
    Thank you all! However, Viktor's option works best.

+ Reply to Thread