Create link based on username | Peter's Login Redirect | Forum
Back to the login redirect plugin page
3:52 am
Hi, I would like to create a link at the top of my site that links back to the page that I redirected the logged-in user after they logged in. So this link would have to dynamically generate the URL based on the logged-in username, and what URL I entered into the field for their redirect rule. What's the best/easiest way to do this? I know some PHP if you can get me on the right track.
11:35 am
Jaffa said
Hi, I would like to create a link at the top of my site that links back to the page that I redirected the logged-in user after they logged in. So this link would have to dynamically generate the URL based on the logged-in username, and what URL I entered into the field for their redirect rule. What's the best/easiest way to do this? I know some PHP if you can get me on the right track.
You've got a really great plug in here. It works well for the login sending the user to their own page. However I am not able to figure out how to bring them back to their own page after they have logged in and then gone to other pages. I tried adding a menu item or a link following your instruction "Note that you can use the syntax [variable]username[/variable] in your URLs" but cannot seem to make it work. Sorry, but my question is very basic. Do I just put this code in the url in a menu item or a link?
Hi, I'd recommend checking out the Custom "My Portal Link" documentation at the bottom of this page: http://wordpress.org/extend/pl.....her_notes/