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?
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
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.
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…
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?
BSR
(@biblestudyradio)
I think CYC is the best alternative for customized login and re-direction…. only if it works with different templates 🙁
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