WordPress.org

Ready to get started?Download WordPress

Forums

Peter's Login Redirect
[variable]username[/variable] (3 posts)

  1. tadindustrial
    Member
    Posted 1 year ago #

    Peter, I am not a developer but I am trying to use this variable url. Could you direct me to more information on this syntax?

    I'd like for each of my users, after login, to be redirected to a specific page that is both secure and specific to that user.

    For example, when FakeUser logs in they will be directed to "FakeUser's Page". FakeUser's Page can only be accessed by FakeUser when he/she signs in. On this page I plan to put documents that only FakeUser should be able to view/download.

    Thank in advance for the help!

    http://wordpress.org/extend/plugins/peters-login-redirect/

  2. Peter
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, there is some discussion on how to use it here:

    http://www.theblog.ca/peter-forum/peters-login-redirect/redirect-by-user-name

    But generally, you just put [variable]username[/variable] as part of your redirect URL and it will be dynamically replaced by the logged in user's username.

    As for creating a page that is only accessible to that user, the typical case is to use one page (and template) for that purposes. In that template simply fetch the relevant content based on the current logged in user's information, thus preventing the possibility that a user is viewing information relevant to another user.

  3. s0206
    Member
    Posted 1 year ago #

    Hi Peter

    I'm using your plugin which is fantastic btw but I am also trying to achieve the same solution as the original poster. Could you provide a link to some further info regarding your last paragraph please? I am not sure how to go about it.

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic