This is a page devoted to the Login Redirect / Text Replacement Plugin for Wordpress that I wrote (all by myself, no less)!
WHAT IS IT?
Login Redirect / Text Replacement is a wordpress plugin that will allow you to redirect where the default login/logout buttons take you - by default, WordPress sends users to your Dashboard, which can be uncomfortable and scary. It will also allow you to change the default “login” and “logout” text strings, as well as the “Register” and “Site Admin” strings. These sets are associated with the functions wp_loginout(); and wp_register();, respectively.
Included in the package is an administration interface that allows you to adjust everything without needing to edit any source files.
New Feature in v1.20: I can’t believe I never thought of this before, but now you have the option to redirect a user to the currently viewed page instead of just a static pre-defined page.
New in v2.0: Better in-file documentation and an upload to the wordpress plugin database.
NOTE:
For easier access control I strongly, strongly recommend the Role Manager plugin. Hundreds of other plugins make use of it too; get it here.
DOWNLOAD:
Obtain download information and latest updates from the wordpress.org plugin repository.

on February 11th, 2007 at 1:39 pm #
New version released (v1.20) and now… Wordpress 2.1 compliant!
on February 19th, 2007 at 10:24 pm #
I have rolemanager installed in my blog. I also copied wz_loginredirect1.2.rar file in plugin directory through ftp client; but, I could not find the file in the plugin section of my admin. If this service has to be activated from somewhere else in the admin section, please let me know.
on February 19th, 2007 at 10:54 pm #
close; you have to un-rar the file :) it’s a compressed file archive similar to .ZIP. Try googling “winrar”.
I beleive windows XP does have a built in RAR utility though.
on February 22nd, 2007 at 6:07 pm #
Thanx for the great plugin. It’s just what i was looking for. But I have a problem. I want to stay on the same page when I log out, and it works fine when I log out on the blog main page, but when I log out on some other page, like when I am browsing posts i get redirected to wp-login.php… :(
I’m using wp 2.1.
on February 23rd, 2007 at 2:22 am #
hey, sweet plugin! would be nice if it was zip’d instead of rar’d — there is not a default unrar in WinXP (or I couldn’t find it) and I had to download a trial version of WinAce just to get it. Other than that, it’s really a nifty program. Thanks
on March 11th, 2007 at 9:32 am #
Both of your downloads point to v1.0 which doesn’t work in WP 2.1.2.
on March 11th, 2007 at 12:16 pm #
Woops. Upload link fixed, now available in .RAR, .ZIP, and .PHP. I also updated the requirements; there’s a new Role Manager in town that this plugin will require. :)
on March 11th, 2007 at 1:49 pm #
Thanks! (Been refreshing this page all day LOL)
on April 1st, 2007 at 6:20 pm #
Not seeing the admin interface after install. I’ve got several user levels with the redirect chosen, but still no admin interface!
on April 2nd, 2007 at 9:34 am #
Hrm. Which version of Wordpress/RoleManager do you have?
on April 25th, 2007 at 5:20 pm #
Like the idea, I need something exactly like this. I have WP 2.1, RM 2.0.5, and version 1.2u of your plugin. Assigned the capability to the administrator level and got the admin menu correctly. Set it to redirect to index.php, but nothing happens. All users are still redirected to the Dashboard.
on April 25th, 2007 at 5:43 pm #
Never mind. It was just an issue with my sidebar widgets. Nicely done.
on April 29th, 2007 at 7:29 am #
Hi
Thanks for the plugin. I get redirected to the profile page when I use the pluging. It may be other redirect plugins I tried before. http://simonstownrealty.info. Is there something I should change or files I have to correct before it will work. BTW: I get logged out while trying to post here.
on April 29th, 2007 at 12:10 pm #
Hi Johan,
I can’t quite tell without seeing your header.php template file. Included in your sourcecode should be:
[?php wp_loginout(); ?]
(using triangle brackets instead of square brackets). This is the WP-approved way of making login/logout links and is how my plugin intercepts the orders. :)
If you’d like you can email me your theme file and I’ll take a look; email.
As for the being logged out - oops, forgot to close a bracket :)
on April 30th, 2007 at 12:36 am #
Hi weasel
Thanks. I have email you the file. I hope it’s the one in my wp-content/themes/semiologic/
BTW: I suppose you use another nice plugin to tell me to put those fingers to the keys ;-) It’s great. I’ll see if I can find it.
Johan
on April 30th, 2007 at 5:19 am #
Hi Weasel
Thanks for making my day with all the support. Thanks Johan
on May 7th, 2007 at 2:37 pm #
Weasel
Thanks for the plugin as it works great. However, I need just a tiny bit of help.
I’m creating a testing blog site and want to create an author whose username and password I can give to many potential clients to test writing a post on my site.
I’ve been suggested to use your plugin in tandem with Hide Dashboard plugin http://www.deepwave.net/articles/hide_dashboard/ . You see not only do I want to keep these testing visitors out of the dashboard, but I really want to keep them from making changes to the profile either (especially I do not want them having the ability to change the password).
So, your plug in works great and the hide dashboard plugin actually hides the profile and dashboard tabs which is great. But because your plugin re-directs to the Profile tab it gets my visitors back into an area I don’t want them.
Can your plugin re-direct to a page other than Profile (in my case I would like the Write post page)?
Or is it easy to find where in the code that I can change the redirect to link?
Regards,
Robert
P.S. Here is what I mean go to http://accmachine.com/test/wp-login.php?loggedout=true then username = Test123 and password = bluefly
on May 8th, 2007 at 1:10 am #
Hi there, Robert!
How my plugin works, is it redirects the login/logout attempt from the wp_loginout(); function. This function is what you call in your template files, and is the function that generates the sidebar text “Login” and “Logout.”
If you click a link that is NOT generated by that function (eg: if you click “logout” in the dashboard), the plugin can’t take effect.
What you describe seems fully possible, though. For example, short of typing the URL manually, there is no way for a registered user to get into the admin panel of this website. When you click the “sign in” button on my sidebar, it takes you back to the page you are on. Same thing if you hit logout.
What link are you clicking to get the link you posted at the bottom of that comment?
on May 8th, 2007 at 5:46 am #
Weasel
thanks for the reply. I’m understanding the plugin better, too many hours yesterday, sorry,
I have assigned loginredirect to administrator, that’s me and then under options I have clicked on Login Redirect and then changed true to false and then changed redirect path to /post-new.php (and left the rest the same) And I pressed Update Options as well.
Then I try to enter http://accmachine.com/test/wp-admin then username = Test123 and password = bluefly, still i’m redirected to the dashboard, instead of the Write new post screen. I should tell you that the above user is an Author and not the administrator if that makes a difference.
Any ideas on what I have done wrong?
Regards,
Robert
on May 8th, 2007 at 11:44 am #
Weasel
btw, I’m using WP 2.13
Regards,
Robert
on May 8th, 2007 at 11:52 am #
Hi Robert,
If you type in the address manually (/test/wp-admin) and attempt logging in or logging out there, it won’t redirect. You have to click on a link that is generated by wp_loginout();.
For example, check out the top right corner of my website. See the link “Sign In =D” ? That link wasn’t typed out by me manually or anything, I went into the theme editor and typed out:
[?php wp_loginout(); ?]
(with triangle instead of square brackets)
You have Semiologic’s theme I beleive, which is fairly easy to setup but gives you less editing access. If you give me some admin powers I can go in and take a look for you. (email me, here)
on May 8th, 2007 at 1:20 pm #
Weasel
Sent you the email.
Regards,
Robert
on May 8th, 2007 at 2:52 pm #
Weasel
Just a special thanks for helping work through my issues. Your help was amazing.
Regards,
Robert
on May 24th, 2007 at 1:06 pm #
I am using your great plugin. However, it is being imposible to change the text appearing as yours “Sign In! =D”. Even changing the text in the dashboard, it doesn’t take effect in my blog, appearing some text in spanish that I did’nt write.
I have wp 2.1.3 with the role manager that you reference, and an spanish package for translations (I think that this package is making translation).
Any idea?
on May 30th, 2007 at 4:30 pm #
It is probably the plugin making the translations interfering - try disabling it and trying again!
on June 25th, 2007 at 12:46 am #
Hi!
The plugin sounds great and I can’t wait to use it! Unfortunately I can’t make it work…I activated it and then from the role manager panel I selected ‘Login Redirect’ for the ‘editors’ for example, but came this error message referring to the role-manager.php on line 22:
Fatal error: Cannot redeclare class rolemanager in /data/members/paid/a/n/…/htdocs/www/blog/wp-content/plugins/role-manager/role-manager.php on line 22
Any idea?
Andrea
on June 30th, 2007 at 12:00 pm #
i don’t get it, this plugin doesn’t give any option to redirect to a defined page ? there’s no admin area as mentioned in the plugin file, all it does is add a role but then no option to edit where you want the login to go
on July 31st, 2007 at 7:56 am #
Am using this plug in with WP2.2.1 Role Manager 2.08 and have even installed the disappearing dashboard plugin from Filosofo but… this doesn’t work for me. Can’t one just hack the code? Anyway, any help would be much appreciated. Nice idea if it works.
on July 31st, 2007 at 10:01 am #
Actually, now seems to be working. Probably an issue with the cache in the browser before. Will update if any changes. Thanks.
on July 31st, 2007 at 11:12 am #
Great plugin…thanks!
1 odd behavior…
I have the plugin redirect to the originating page (the default). So, someone shows up at the main blog page, clicks “Login”, is taken to the login page, and then gets back to the main page. All fine and good–that’s what the plugin is for.
Once they’re back at the main page, under “Login” it says “Site Admin” and “Logout”, as it should.
BUT, if someone is surfing around the blog and clicks “Home” to get back to the main page, under “Login” it now says “Register” and “Login” (the WP default) rather than “Site Admin” and “Logout”, as the plugin tries to do.
What’s happening here? Why is it only on initial login (and redirect back to the main page) that these are being displayed correctly?
on August 3rd, 2007 at 6:25 pm #
I do not see the logic in this plugin, it redirects but it also shows the admin menu where they can access the admin area
on August 4th, 2007 at 1:56 am #
this plugin makes absolutely no sense why would we want to give a subscriber admin rights to change their login redirect settings i must be losing my mind
i thought the goal was to redirect the user not give them the admin feature to redirect themselves
on August 8th, 2007 at 8:56 am #
Alias; my plugin does not show the admin menu or a link to the admin menu. That’s an option that has come with your theme.
You can allow administrators to change the login redirect settings but not general subscribers.
on August 8th, 2007 at 8:58 am #
Camner; I had that problem a while ago, it had to do with cookie storage, domain names, and www. being in front of the URL when it shouldn’t be (or vice versa). Double check all your WP settings and maybe ask your hosting company. (Nothing to do with plugins ;))
on September 1st, 2007 at 11:08 am #
I managed to install and set up the Weasel plugin and the Login link is configured so:
~/wp-login.php?redirect_to=/post-new.php
(The intention is to link to the write post page).
However, when I click on that link it still goes to the Dashboard and I have no clue as to why. Any suggestions?
Thanks in advance
on October 2nd, 2007 at 6:20 am #
I am on WP2.3 and using this Role-Manager which is based on Red-Alts Role-Manager. Redirect doesn’t work. Any experience with WP2.3?
on October 29th, 2007 at 7:54 pm #
Hi, I would appreciate your help very much. Does the plugin alters wp_login.php file? Because I edited it just to add a help link, and now I can’t login.
on October 29th, 2007 at 9:00 pm #
Nope, doesn’t alter wp_login. If you disable the plugin it’ll release the hooks too so it won’t effect your website at all.
If you can’t login to disable the plugin - delete it from the plugins directory (via FTP) and that’ll delete the entries automatically (Wordpress Feature, not mine).
on October 30th, 2007 at 2:04 am #
Thanks very much for your reply. I changed wp_login with a clean file and I was able to login. It seems that another plugin altered it.
I wanted to ask you, if there is a way to add an option for the “Site Admin” link, when a user is not administrator, not to go to the dashboard but to his profile.
on December 7th, 2007 at 8:02 am #
I’ve got a fix for you…. I’m using wp 2.3.1 and Role Manager 2.2.0 as of 12-7-07. Role Manager started using some AJAX so some modifications were needed for login re-direct.
LINE 82 -- if(current_user_can('Login Redirect'))
CHANGE TO -- if(current_user_can('login_redirect'))
LINE 83 -- add_options_page('Login Redirect','Login Redirect','Login Redirect','wz_loginredirect_admin','wz_loginredirect_admin');
CHANGE TO -- add_options_page('Login Redirect','Login Redirect','login_redirect','wz_loginredirect_admin','wz_loginredirect_admin');
LINE 115 -- $cap[] = 'Login Redirect';
CHANGE TO -- $cap[] = 'login_redirect';
Works for me!
on December 7th, 2007 at 2:22 pm #
I’d prefer reading in my native language, because my knowledge of your languange is no so well.
on December 7th, 2007 at 2:24 pm #
Ah good catch! I wasn’t using the latest version of Role Manager. I’ll install the updates, do a few stability tests and update the version files shortly. You get a gold star!
on December 9th, 2007 at 11:41 am #
This is in response to Brayne’s fix. It didn’t work exactly as written for me. I’m using WP 2.3.1 and Role Manager 2.2.0 as well.
Using the exact same fix as he wrote it but changing login_redirect to just loginredirect without the underscore seems to have solved my problem.
Thank you weasel for the great plugin and thank you Brayne. I would have had no idea what to change to make it work.
on December 26th, 2007 at 9:06 am #
Role Manager version 2.2.1 fixed the problem and no updates to my code are necessary. :)
on December 31st, 2007 at 8:54 am #
I am a little lost. The login under Meta works fine and redirects but I am not sure how to create a login like your Sign In! =D. May you move mountains during 2008 Johan
on December 31st, 2007 at 9:27 am #
You do that from the administration menu, and there’s instructions on how to get there in the install instructions. Check it out there!
on January 2nd, 2008 at 9:32 am #
Hi Thanks. I have the role manager because I don’t see “Login Redirect”. And it was not clear to me that I need to set admin role to “yes” on login redirect. I though that if I click this it will redirect the admin when admin login. Well as soon as I checked it I then saw the Login Redirect menu.
Thanks for helping.
Johan
on January 2nd, 2008 at 9:49 am #
The problem that I have is that I have a login using http://helpmetoblog.com/wp-login.php and I am not sure how to change it to include the redirect to current page. I suppose it has something to do with wp_loginout(); but I have no clue (yet) how to use it ;-(
Johan
on January 2nd, 2008 at 10:47 am #
Ok. Got a shortcut to do it. I used with this plugin http://blog.samsarin.com/samsarin-php-widget
to get it to work without hacking anything. Thanks Johan
on January 2nd, 2008 at 10:58 am #
Ah - close - if you use the Login button on your main site ( http://helpmetoblog.com/ ) - it’s on the right hand side, says “SIGN IN” in green text. That’s where the plugin works.. no need to go direct to wp-login.php. :)
on January 2nd, 2008 at 8:03 pm #
Hi weasel tanks. I did not know how to or rather where to enter wp_loginout(); in my template…i suppose in the sidebar.php and then used the php plugin that creates a php widget. I then dumped php code for wp_loginout(); in this widget and it was done ;-)
on January 5th, 2008 at 5:44 am #
We are using WP 2.3.2, Role Manager 2.2.1 and Weasel’s Login Redirect 2.0, and loged in as ADMINISTRATOR with full access rights.
However, under the “Options” tab, there’s no subheading “Login Redirect”.
Please excuse the question but we new in WP, in wich file shoul be found “wp_loginout();” and “wp_register();”? if not present where to put them?, Could this be the reason “Login Redirect” subheading is not present at “Options”?
Hope to hear from you soon.
Best regards,
on January 5th, 2008 at 7:14 am #
In role manager, give the administrator access rights and you’ll find the menu in question. :)
The wp_loginout(); and register functions are usually found in the sidebar of your page (go to the THEME EDITOR and you can see it in there), but it can change from theme to theme. :)
on January 5th, 2008 at 7:46 am #
I’m searching how to change Login Redirec “X” to allow, as I click over “X”nothing hapens.
on January 5th, 2008 at 7:50 am #
OH! thanks about before info/help, I found “wp_loginout();” and “wp_register();” on l_sidebar
on January 5th, 2008 at 8:04 am #
Any clue how to grant access to Login Direct to the Administrator at the Manage Role page ?
on January 5th, 2008 at 8:29 am #
Ok, we found how to grant access to Login Direct to the Administrator at the Manage Role page.
Now, we are trying to delete or rename the Premium Subscriber, we are receiving following message: “A valid role name can only have letters, digits and spaces”
How we fiex it?
on January 5th, 2008 at 8:31 am #
Are you sure you have the latest version of Role Manager installed? They fixed that bug in the latest version :)
on January 5th, 2008 at 8:34 am #
Yes sir. Role manager 2.2.1
on January 5th, 2008 at 8:36 am #
Dowloded from: http://www.im-web-gefunden.de/wp-content/downloads/plugins/role-manager.zip
on January 6th, 2008 at 6:38 am #
Any way to make it redirect to another page, since i have the dashboard hide plugin wich makes this plugin fail :-/
on January 9th, 2008 at 7:03 pm #
role manager 2.2.1 + login redirect 2.0 + wordpress 2.3.1 = unable to assign login redirect capability to administrator user
on January 10th, 2008 at 4:02 pm #
Hey Weasel….
Looking to use your redirect plugin myself, but with Wordpress 2.3.2, Login Redirect 2.0, and Role Manager 2.2.1 I’m not able to grant myself permission to use Login Redirect, and I’m not seeing it show up in the ‘Options’ tab. Any help would be most kindly appreciated….
on January 13th, 2008 at 2:05 pm #
Same problem as tcsoul ^ above ^.
on January 14th, 2008 at 1:26 pm #
Hmm, seems to work fine on my end. this calls for a test blog! should have a fix in a few days if I can recreate it.
on January 15th, 2008 at 4:48 pm #
I had the same issue with that combination (Wordpress 2.3.2, Login Redirect 2.0, and Role Manager 2.2.1). The workaround for me was to set up a new role in role manager that had Login Redirect and Edit User privleges. Then, I created a new user with that role attached. Logged in as that user, modifed the Login Redirect role for the admin user (and a couple of other admin types) and voila, they were able to see the Login Redirect option and make the changes.
on January 16th, 2008 at 4:35 pm #
thanks diehard
worked a treat!
on February 1st, 2008 at 8:43 am #
hi…i’m experiencing the same problem as matt and tcsoul…was wondering if you’ve had any luck with this.
on February 6th, 2008 at 2:38 pm #
for me it was easier - didn’t have to set up a new user. Just set the “Login Redirect” for the Administrator from red to green. Then it worked for me.
on March 3rd, 2008 at 5:53 pm #
Great idea but the Role Manager plugin isnt even letting me grant me access to the plugin! - hmm We’ll get there.
Using WP 2.3.3
Role Manager 2.2.1
Login Redirect 2.0
on March 9th, 2008 at 8:40 pm #
Had the same problem (not being able to give myself the Login Redirect right or seeing the Login Redirect link under the Options tab) until I went to Users>Role-/Capability Management General tab and checked the “Spaces allowed in capabilities” box and click “Store.”
on March 30th, 2008 at 6:46 pm #
Is it possible to redirect to a specific page when a user’s login fails? It defaults to the generic WordPress login error screen. Thanks!
on April 20th, 2008 at 2:33 pm #
Will you be making this plugin 2.5 compatible? I already use Role Manager (which was updated) and had to come up with this hack:
http://wordpress.org/support/topic/170419?replies=3#post-739523
Cheers,
Gene
on April 22nd, 2008 at 7:09 pm #
Hey is this compatible with WP 2.5 ??
This has worked great on previous wp installs.
on April 24th, 2008 at 8:20 am #
Hello Herrin and all,
It seems Weasel’s Login Redirect is compatible with WP 2.5 (at least on my WP install).
When I installed and activated the plugin, it didn’t show up in the subtabs under the “Options” tab… but the redirection was working!
In the “Users” tab’s “Roles” subtab (which shows after you’ve installed the strongly, strongly recommended Role Manager plugin), the Login Redirect capability was listed for all roles, but couldn’t be activated at all.
I had to go to the “Role-/Capability Management General” subtab, check the “Spaces allowed in Capabilities” checkbox (under Configuration) and click the “Store” button.
Then, the “Login Redirect” subtab showed up under the “Options” tab.
Hope this help.
on April 24th, 2008 at 8:34 am #
Hello Herrin and all,
Login Redirect seems WP 2.5 compatible, at least on my install.
See Aeneah’s comment above — http://www.thedailyblitz.org/weasels-login-redirect-text-replacement-plugin#comment-32319 — to get the Login Redirect subtab to show up under the Options tab.
on April 24th, 2008 at 8:38 am #
@Matthew Selznick
Check out BM Custom Login — http://www.binarymoon.co.uk/projects/bm-custom-login/ — to customize the WordPress login screen.
on April 25th, 2008 at 4:53 pm #
Thanks, Lionel, but I was more looking to redirect to a specific page, not customize the login screen.
on May 3rd, 2008 at 6:58 am #
Where is the option tab in wordpress 2.5?
on June 4th, 2008 at 2:55 pm #
Hi
IWG Hide Dashboard 1.0.3
Role Manager 2.2.2
Weasel’s Login Redirect 2.0
WP 2.5.1
Redirect worked fine, until I installed Hide Dashboard. Now can’t get it working again (but that’s not my real problem).
Real problem is that when it was working, the user (subscriber, level 0) was able to go to the settings page and change the redirect setting.
I see a similar query above, you say it’s in the theme, but I’m using the default WP theme…. nothing fancy.
Ideas?
thanks, Ian
on June 10th, 2008 at 1:30 pm #
I tried this in wp 2.5.1 with no success. tried the role manager steps suggested above. Is there a chance it will be updated?
on July 8th, 2008 at 10:33 pm #
Hello,
I tried your plugin, and could not get it to work (it would not redirect and would throw the user back to the login screen. I disabled the plugin and now have a larger problem where no matter what I do, this problem continues to occur. I was wondering if you have any suggestions because it is really tough having a site where no users can log in. Thanks!
on July 9th, 2008 at 3:47 pm #
Never mind, figured it out. I used and was able to successfully log in and out that way on the page.