=== 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.0 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. 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). == 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 == * 2010-08-20 1.9.2: Bug fix in code syntax. * 2010-08-03 1.9.1: Bug fix for putting the username in the redirect URL. * 2010-08-02 1.9.0: 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. * 2010-05-13 1.8.1: Added proper encoding of username in the redirect URL if the username has spaces. * 2010-03-18 1.8.0: Added the ability to specify a username in the redirect URL for more dynamic URL generation. * 2010-03-04 1.7.3: Minor tweak on settings page for better compatibility with different WordPress URL setups. * 2010-01-11 1.7.2: 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. * 2009-10-07 1.7.1: Minor database compatibility tweak. (Thanks KCP!) * 2009-05-31 1.7.0: Added option $rul_local_only (in the plugin file itself) to bypass the WordPress default limitation of only redirecting to local URLs. * 2009-02-06 1.6.1: Minor database table tweak for better compatibility with different setups. (Thanks David!) * 2008-11-26 1.6.0: 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 * 2008-09-17 1.5.1: Fixed compatibility for sites with a different table prefix setting in wp-config.php. (Thanks Eric!)