Theme My Login - Version 2.0.6

Version Description

Download this release

Release Info

Developer jfarthing84
Plugin Icon 128x128 Theme My Login
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

Files changed (3) hide show
  1. includes/admin-page.php +8 -0
  2. readme.txt +3 -2
  3. theme-my-login.php +6 -4
includes/admin-page.php CHANGED
@@ -9,6 +9,7 @@ if ( $_POST ) {
9
  $this->SetOption('chk_uninstall', stripslashes($_POST['chk_uninstall']));
10
  $this->SetOption('login_redirect', stripslashes($_POST['login_redirect']));
11
  $this->SetOption('logout_redirect', stripslashes($_POST['logout_redirect']));
 
12
  $this->SetOption('login_title', stripslashes($_POST['login_title']));
13
  $this->SetOption('login_text', stripslashes($_POST['login_text']));
14
  $this->SetOption('register_title', stripslashes($_POST['register_title']));
@@ -68,6 +69,13 @@ if ( $_POST ) {
68
 
69
  <h3><?php _e('Template Settings'); ?></h3>
70
  <table class="form-table">
 
 
 
 
 
 
 
71
  <tr valign="top">
72
  <th scope="row"><label for="register_title"><?php _e('Register Page Title'); ?></label></th>
73
  <td>
9
  $this->SetOption('chk_uninstall', stripslashes($_POST['chk_uninstall']));
10
  $this->SetOption('login_redirect', stripslashes($_POST['login_redirect']));
11
  $this->SetOption('logout_redirect', stripslashes($_POST['logout_redirect']));
12
+ $this->SetOption('theme_profile', stripslashes($_POST['theme_profile']));
13
  $this->SetOption('login_title', stripslashes($_POST['login_title']));
14
  $this->SetOption('login_text', stripslashes($_POST['login_text']));
15
  $this->SetOption('register_title', stripslashes($_POST['register_title']));
69
 
70
  <h3><?php _e('Template Settings'); ?></h3>
71
  <table class="form-table">
72
+ <tr valign="top">
73
+ <th scope="row"><label for="theme_profile"><?php _e('Theme Profile?'); ?></label></th>
74
+ <td>
75
+ <input name="theme_profile" type="checkbox" id="theme_profile" value="1" <?php if ($this->GetOption('theme_profile')) { echo 'checked="checked"'; } ?> />
76
+ <span class="setting-description"><?php _e('Check here to theme subscriber\'s profile. This is known to cause issues with plugins that have a user administration menu.'); ?></span>
77
+ </td>
78
+ </tr>
79
  <tr valign="top">
80
  <th scope="row"><label for="register_title"><?php _e('Register Page Title'); ?></label></th>
81
  <td>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://webdesign.jaedub.com
4
  Tags: wordpress, login, register, theme, form, james kelly
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
- Stable tag: 2.0.5
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
@@ -58,4 +58,5 @@ Now you can save your changes and go test out your new themed login and registra
58
  * 2.0.2 - 2009-03-31 - Fixed a bug that broke registration and broke other plugins using the_content filter
59
  * 2.0.3 - 2009-04-02 - Fixed various reported bugs and cleaned up code
60
  * 2.0.4 - 2009-04-03 - Fixed a bug regarding relative URL's in redirection
61
- * 2.0.5 - 2009-04-04 - Fixed a bug with default redirection and hid the login form from logged in users
 
4
  Tags: wordpress, login, register, theme, form, james kelly
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
+ Stable tag: 2.0.6
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
58
  * 2.0.2 - 2009-03-31 - Fixed a bug that broke registration and broke other plugins using the_content filter
59
  * 2.0.3 - 2009-04-02 - Fixed various reported bugs and cleaned up code
60
  * 2.0.4 - 2009-04-03 - Fixed a bug regarding relative URL's in redirection
61
+ * 2.0.5 - 2009-04-04 - Fixed a bug with default redirection and hid the login form from logged in users
62
+ * 2.0.6 - 2009-04-08 - Added the option to turn on/off subscriber profile theming
theme-my-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://webdesign.jaedub.com/wordpress-plugins/theme-my-login-plugin
5
  Description: Themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
6
- Version: 2.0.5
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
@@ -33,6 +33,8 @@ Version History
33
  Fixed a bug regarding relative URL's in redirection
34
  2.0.5 - 2009-04-04
35
  Fixed a bug with default redirection and hid the login form from logged in users
 
 
36
  */
37
 
38
  if (!class_exists('ThemeMyLogin')) {
@@ -197,7 +199,7 @@ if (!class_exists('ThemeMyLogin')) {
197
  $this->LoadOptions();
198
  $permalink = $this->QueryURL();
199
 
200
- if ( is_user_logged_in() && is_admin() && current_user_can('edit_posts') === false && !isset($_POST['from']) && $_POST['from'] != 'profile' ) {
201
  $_GET['profile'] = true;
202
  $redirect_to = $this->ArgURL($permalink, $_GET);
203
  wp_safe_redirect($redirect_to);
@@ -218,7 +220,7 @@ if (!class_exists('ThemeMyLogin')) {
218
  }
219
 
220
  function ReInit() {
221
- if ($_GET['profile'] && $_REQUEST['action'] == 'update' && is_user_logged_in())
222
  include 'includes/profile-actions.php';
223
  else
224
  include 'includes/wp-login-actions.php';
@@ -226,7 +228,7 @@ if (!class_exists('ThemeMyLogin')) {
226
 
227
  function TheContent($content) {
228
  if (strpos($content, '[theme-my-login]') !== false) {
229
- if ($_GET['profile'] && is_user_logged_in())
230
  return $this->DisplayProfile();
231
  else
232
  return $this->DisplayLogin();
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://webdesign.jaedub.com/wordpress-plugins/theme-my-login-plugin
5
  Description: Themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
6
+ Version: 2.0.6
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
33
  Fixed a bug regarding relative URL's in redirection
34
  2.0.5 - 2009-04-04
35
  Fixed a bug with default redirection and hid the login form from logged in users
36
+ 2.0.6 - 2009-04-08
37
+ Added the option to turn on/off subscriber profile theming
38
  */
39
 
40
  if (!class_exists('ThemeMyLogin')) {
199
  $this->LoadOptions();
200
  $permalink = $this->QueryURL();
201
 
202
+ if ( $this->GetOption('theme_profile') && is_user_logged_in() && is_admin() && current_user_can('edit_posts') === false && !isset($_POST['from']) && $_POST['from'] != 'profile' ) {
203
  $_GET['profile'] = true;
204
  $redirect_to = $this->ArgURL($permalink, $_GET);
205
  wp_safe_redirect($redirect_to);
220
  }
221
 
222
  function ReInit() {
223
+ if ($this->GetOption('theme_profile') && $_GET['profile'] && $_REQUEST['action'] == 'update' && is_user_logged_in())
224
  include 'includes/profile-actions.php';
225
  else
226
  include 'includes/wp-login-actions.php';
228
 
229
  function TheContent($content) {
230
  if (strpos($content, '[theme-my-login]') !== false) {
231
+ if ($this->GetOption('theme_profile') && $_GET['profile'] && is_user_logged_in())
232
  return $this->DisplayProfile();
233
  else
234
  return $this->DisplayLogin();