=== Plugin Name === Contributors: pkthree Donate link: http://www.theblog.ca Tags: login, redirect, admin, administration, dashboard, users, authentication Requires at least: 2.7 Tested up to: 3.1 Stable tag: trunk Redirect users to different locations after logging in. == Description == Define a set of redirect rules for specific users, users with specific roles, users with specific capabilities, and a blanket rule for all other users. This is all managed in Settings > Login redirects. You can use the syntax **[variable]username[/variable]** in your URLs so that the system will build a dynamic URL upon each login, replacing that text with the user's username. If you're using a plugin such as Gigya that bypasses the regular WordPress redirect process (and only allows one fixed redirect URL), set that plugin to redirect to wp-content/plugins/peters-login-redirect/wplogin_redirect_control.php and set the $rul_use_redirect_controller setting to "true" in the main plugin file. This plugin also includes a function `rul_register` that acts the same as the `wp_register` function you see in templates (typically producing the Register or Site Admin links in the sidebar), except that it will return the custom defined admin address. `rul_register` takes three parameters: the "before" code (by default "<li>"), the "after" code (by default "</li>"), and whether to echo or return the result (default is `true` and thus echo). = Translations = * nl\_NL translation by Anja of http://www.werkgroepen.net/wordpress/plugins/peters-login-redirect/ * sk\_SK translation by Michal Miksik of http://moonpixel.com/michal-miksik/ * ro\_RO translation by Anunturi Jibo of http://www.jibo.ro * cs\_CZ translation by Petr Mašek == Installation == Unzip wplogin\_redirect.php to your WordPress plugins folder. Redirect rules are configured in the Settings > Login redirects admin menu. == Screenshots == 1. Defining redirect rules per role. == Frequently Asked Questions == Please visit the plugin page at http://www.theblog.ca/wplogin-redirect with any questions. == Changelog == = 2.0.0 = * 2011-03-03: Added option to allow a redirect_to POST or GET variable to take precedence over this plugin's rules. = 1.9.3 = * 2010-12-15: Made plugin translatable. (Thanks Anja!) = 1.9.2 = * 2010-08-20: Bug fix in code syntax. = 1.9.1 = * 2010-08-03: Bug fix for putting the username in the redirect URL. = 1.9.0 = * 2010-08-02: Added support for a separate redirect controller URL for compatibility with Gigya and similar plugins that bypass the regular WordPress login redirect mechanism. See the $rul_use_redirect_controller setting within this plugin. = 1.8.1 = * 2010-05-13: Added proper encoding of username in the redirect URL if the username has spaces. = 1.8.0 = * 2010-03-18: Added the ability to specify a username in the redirect URL for more dynamic URL generation. = 1.7.3 = * 2010-03-04: Minor tweak on settings page for better compatibility with different WordPress URL setups. = 1.7.2 = * 2010-01-11: Plugin now removes its database tables when it is uninstalled, instead of when it is deactivated. This prevents the redirect rules from being deleted when upgrading WordPress automatically. = 1.7.1 = * 2009-10-07: Minor database compatibility tweak. (Thanks KCP!) = 1.7.0 = * 2009-05-31: Added option $rul_local_only (in the plugin file itself) to bypass the WordPress default limitation of only redirecting to local URLs. = 1.6.1 = * 2009-02-06: Minor database table tweak for better compatibility with different setups. (Thanks David!) = 1.6.0 = * 2008-11-26: Added a function rul_register that acts the same as the wp_register function you see in templates, except that it will return the custom defined admin address = 1.5.1 = * 2008-09-17: Fixed compatibility for sites with a different table prefix setting in wp-config.php. (Thanks Eric!)