WordPress.org

Ready to get started?Download WordPress

Forums

Login & Redirect (9 posts)

  1. asadeddin
    Member
    Posted 5 years ago #

    Hey all,

    I am a freelance web designer & developer, and I want to create a client login page. The whole idea is for the client to login and then be redirected to their page. Their page will display how much work I have done on their site, our terms and agreement, a price quote of the services and other stuff. This content I will create manually obviously. I do not require registration. I actually prefer if I am able to register them my self. Thanks for the help!

  2. MichaelH
    Member
    Posted 5 years ago #

    This plugin might work for you:
    http://wordpress.org/extend/plugins/redirection/

  3. asadeddin
    Member
    Posted 5 years ago #

    I don't see how that would work. This plugin redirects error pages. I would like my clients to login and be redirected to their appropriate page depending on the user name... Anyone else?

  4. MichaelH
    Member
    Posted 5 years ago #

    I was pretty sure that Redirection plugin did allow you to redirect on login, but there is this:
    http://wordpress.org/extend/plugins/weasels-login-redirection/

    I used this tag at Extend:
    http://wordpress.org/extend/plugins/tags/redirect

  5. Peter Butler
    Member
    Posted 5 years ago #

    I used this when I needed the user profile page to be totally customized:

    http://www.sugarrae.com/wordpress/cyc/

    It may not be exactly what you need, but the code is pretty easy to pick apart.

  6. asadeddin
    Member
    Posted 5 years ago #

    Ok... I got an idea on how to do this... I have used the login redirection plugin and enabled wp_loginout( ) . Now, I am thinking of some php if statements. So here's how it's going to work. When the user logs in, they are redirected to a specific page. Let's say I call that page client.php. And let's say one of our clients is called "Joe". When Joe logs in, he's redirected to the client.php page. In this page I want the code to bring up Joe's information. So it would be if the user is Joe then bring up this piece of information, if the user Bob then bring up this piece of information, if the user is Kim then bring up this piece of information, and so on and so forth. However, I have not been able to find a tag to retrieve what user is on. Does anyone know how to do this idea?
    Edit: So, in essence, everyone get's redirected to the same page but will be able to view different information depending on their login. It's a simple idea...

  7. asadeddin
    Member
    Posted 5 years ago #

    Hey every one,
    Here's an update. I have found this http://wordpress.org/support/topic/177434?replies=8

    Now how can I turn it to fit my original idea?

  8. BibleStudyRadio
    Member
    Posted 5 years ago #

    I think CYC is the best alternative for customized login and re-direction.... only if it works with different templates :-(

  9. Dgold
    Member
    Posted 5 years ago #

    Rethink the approach. Here's another way.

    I think it would be easy (easier) to just show a particular Link to any particular logged in User. Rather than worrying about a Redirect, just let 'em login and see a page on your site, with Conditionals or whatever to show different content to each User.

    You can use getcurrentuserinfo to show a paragraph of content that is tailored to each user name. This isn't too mysterious for you, because you want to create the Usernames yourself, so you know which Username to conditional for.
    http://codex.wordpress.org/Function_Reference/wp_get_current_user

    For example, they log-in, they see a page on your site,

    if username is "Jim"

    Welcome Jim!
    Screenshot: []
    Our Terms are: ____
    Price Quote: $ ____
    Other Info: ____
    CLICK HERE TO SEE JIM'S WEBSITE DEMO IN ACTION <a href="...

    And of course have this hidden from anyone whose username is not "Jim" or "Admin"

    Have "Admin" able to see them all, in a list on 1 page

Topic Closed

This topic has been closed to new replies.

About this Topic