Theme My Login - Version 1.1.1

Version Description

Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

Files changed (2) hide show
  1. readme.txt +3 -2
  2. theme-my-login.php +30 -29
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.5
7
- Stable tag: 1.1.0
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
@@ -45,4 +45,5 @@ Now you can save your changes and go test out your new themed login and registra
45
 
46
  * 1.0.0 - 2009-03-13 - Initial release version
47
  * 1.0.1 - 2009-03-14 - Made backwards compatible to WordPress 2.5+
48
- * 1.1.0 - 2009-03-14 - Added custom profile to completely hide the back-end from subscribers
 
4
  Tags: wordpress, login, register, theme, form, james kelly
5
  Requires at least: 2.5
6
  Tested up to: 2.5
7
+ Stable tag: 1.1.1
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
45
 
46
  * 1.0.0 - 2009-03-13 - Initial release version
47
  * 1.0.1 - 2009-03-14 - Made backwards compatible to WordPress 2.5+
48
+ * 1.1.0 - 2009-03-14 - Added custom profile to completely hide the back-end from subscribers
49
+ * 1.1.1 - 2009-03-16 - Prepared plugin for internationalization and fixed a PHP version bug
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: 1.1.0
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
@@ -15,7 +15,8 @@ Version History
15
  Made backwards compatible to WordPress 2.5+
16
  1.1.0 - 2009-03-14
17
  Added custom profile to completely hide the back-end from subscribers
18
-
 
19
  */
20
 
21
  if (!class_exists('ThemeMyLogin')) {
@@ -23,7 +24,7 @@ if (!class_exists('ThemeMyLogin')) {
23
 
24
  var $options = array();
25
 
26
- function ThemedRegLog() {
27
  $this->__construct();
28
  }
29
 
@@ -101,13 +102,13 @@ if (!class_exists('ThemeMyLogin')) {
101
  }
102
 
103
  function AddAdminPage(){
104
- add_submenu_page('options-general.php', "Theme My Login", "Theme My Login", 10, "Theme My Login", array(&$this, 'AdminPage'));
105
  }
106
 
107
  function AdminPage(){
108
  if ( $_POST ) {
109
  if ( !current_user_can('manage_options') )
110
- die( __( 'Cheatin’ huh?' ) );
111
 
112
  check_admin_referer('tml-settings');
113
 
@@ -150,7 +151,7 @@ if (!class_exists('ThemeMyLogin')) {
150
 
151
  ?>
152
  <div class="updated">
153
- <p>If you like this plugin, please help keep it up to date by <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3836253">donating through PayPal</a>!</p>
154
  </div>
155
  <div class="wrap">
156
  <?php if ( strlen($success) > 0 ) { ?>
@@ -163,84 +164,84 @@ if (!class_exists('ThemeMyLogin')) {
163
 
164
  <form action="" method="post" id="tml-settings">
165
  <?php if ( function_exists('wp_nonce_field') ) wp_nonce_field('tml-settings'); ?>
166
- <h3>Redirection Settings</h3>
167
  <table class="form-table">
168
  <tr valign="top">
169
- <th scope="row"><label for="login_redirect">Redirect on Login</label></th>
170
  <td>
171
  <input name="login_redirect" type="text" id="login_redirect" value="<?php echo( htmlspecialchars ( $this->GetOption('login_redirect') ) ); ?>" class="regular-text" />
172
- <span class="setting-description">Defaults to 'wp-admin/'.</span>
173
  </td>
174
  </tr>
175
  <tr valign="top">
176
- <th scope="row"><label for="logout_redirect">Redirect on Logout</label></th>
177
  <td>
178
  <input name="logout_redirect" type="text" id="logout_redirect" value="<?php echo( htmlspecialchars ( $this->GetOption('logout_redirect') ) ); ?>" class="regular-text" />
179
- <span class="setting-description">Defaults to 'wp-login.php?loggedout=true'.</span>
180
  </td>
181
  </tr>
182
  </table>
183
 
184
- <h3>Template Settings</h3>
185
  <table class="form-table">
186
  <tr valign="top">
187
- <th scope="row"><label for="register_text">Register Text</label></th>
188
  <td>
189
  <input name="register_text" type="text" id="register_text" value="<?php echo( htmlspecialchars ( $this->GetOption('register_text') ) ); ?>" class="regular-text" />
190
- <span class="setting-description">This will appear above the registration form.</span>
191
  </td>
192
  </tr>
193
  <tr valign="top">
194
- <th scope="row"><label for="login_text">Login Text</label></th>
195
  <td>
196
  <input name="login_text" type="text" id="login_text" value="<?php echo( htmlspecialchars ( $this->GetOption('login_text') ) ); ?>" class="regular-text" />
197
- <span class="setting-description">This will appear above the login form.</span>
198
  </td>
199
  </tr>
200
  <tr valign="top">
201
- <th scope="row"><label for="password_text">Forgot Password Text</label></th>
202
  <td>
203
  <input name="password_text" type="text" id="password_text" value="<?php echo( htmlspecialchars ( $this->GetOption('password_text') ) ); ?>" class="regular-text" />
204
- <span class="setting-description">This will appear above the forgot password form.</span>
205
  </td>
206
  </tr>
207
  <tr valign="top">
208
- <th scope="row"><label for="profile_text">Profile Text</label></th>
209
  <td>
210
  <input name="profile_text" type="text" id="profile_text" value="<?php echo( htmlspecialchars ( $this->GetOption('profile_text') ) ); ?>" class="regular-text" />
211
- <span class="setting-description">This will appear above the users profile.</span>
212
  </td>
213
  </tr>
214
  <tr valign="top">
215
- <th scope="row"><label for="login_redirect">Template Header Files</label></th>
216
  <td>
217
  <textarea name="header_files" id="header_files" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('header_files') ? htmlspecialchars(implode("\n", $this->GetOption('header_files'))) : ''; ?></textarea>
218
- <span class="setting-description">Enter each header file used in your template, one per line. Typically, this is 'header.php'.</span>
219
  </td>
220
  </tr>
221
  <tr valign="top">
222
- <th scope="row"><label for="header_html">Template HTML After Header</label></th>
223
  <td>
224
  <textarea name="header_html" id="header_html" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('header_html') ? htmlspecialchars($this->GetOption('header_html')) : ''; ?></textarea>
225
- <span class="setting-description">Enter the HTML that appears after the get_header() function and before the page code.</span>
226
  </td>
227
  </tr>
228
  <tr valign="top">
229
- <th scope="row"><label for="footer_html">Template HTML Before Footer</label></th>
230
  <td>
231
  <textarea name="footer_html" id="footer_html" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('footer_html') ? htmlspecialchars($this->GetOption('footer_html')) : ''; ?></textarea>
232
- <span class="setting-description">Enter footer HTML that appears between the page code and the get_sidebar()/get_footer() functions.</span>
233
  </td>
234
  </tr>
235
  <tr valign="top">
236
- <th scope="row"><label for="footer_files">Template Footer Files</label></th>
237
  <td>
238
  <textarea name="footer_files" id="footer_files" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('footer_files') ? htmlspecialchars(implode("\n", $this->GetOption('footer_files'))) : ''; ?></textarea>
239
- <span class="setting-description">Enter each footer file used in your template, one per line. Typically, this is 'sidebar.php' and 'footer.php'.</span>
240
  </td>
241
  </tr>
242
  </table>
243
- <p class="submit"><input type="submit" name="Submit" class="button-primary" value="Save Changes" />
244
  </form>
245
  </div>
246
  <?php
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: 1.1.1
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
15
  Made backwards compatible to WordPress 2.5+
16
  1.1.0 - 2009-03-14
17
  Added custom profile to completely hide the back-end from subscribers
18
+ 1.1.1 - 2009-03-16
19
+ Prepared plugin for internationalization and fixed a PHP version bug
20
  */
21
 
22
  if (!class_exists('ThemeMyLogin')) {
24
 
25
  var $options = array();
26
 
27
+ function ThemeMyLogin() {
28
  $this->__construct();
29
  }
30
 
102
  }
103
 
104
  function AddAdminPage(){
105
+ add_submenu_page('options-general.php', __('Theme My Login'), __('Theme My Login'), 'manage_options', __('Theme My Login'), array(&$this, 'AdminPage'));
106
  }
107
 
108
  function AdminPage(){
109
  if ( $_POST ) {
110
  if ( !current_user_can('manage_options') )
111
+ die( __('Cheatin&#8217; huh?') );
112
 
113
  check_admin_referer('tml-settings');
114
 
151
 
152
  ?>
153
  <div class="updated">
154
+ <p><?php _e('If you like this plugin, please help keep it up to date by <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3836253">donating through PayPal</a>!'); ?></p>
155
  </div>
156
  <div class="wrap">
157
  <?php if ( strlen($success) > 0 ) { ?>
164
 
165
  <form action="" method="post" id="tml-settings">
166
  <?php if ( function_exists('wp_nonce_field') ) wp_nonce_field('tml-settings'); ?>
167
+ <h3><?php _e('Redirection Settings'); ?></h3>
168
  <table class="form-table">
169
  <tr valign="top">
170
+ <th scope="row"><label for="login_redirect"><?php _e('Redirect on Login'); ?></label></th>
171
  <td>
172
  <input name="login_redirect" type="text" id="login_redirect" value="<?php echo( htmlspecialchars ( $this->GetOption('login_redirect') ) ); ?>" class="regular-text" />
173
+ <span class="setting-description"><?php _e('Defaults to <code>wp-admin/</code>.'); ?></span>
174
  </td>
175
  </tr>
176
  <tr valign="top">
177
+ <th scope="row"><label for="logout_redirect"><?php _e('Redirect on Logout'); ?></label></th>
178
  <td>
179
  <input name="logout_redirect" type="text" id="logout_redirect" value="<?php echo( htmlspecialchars ( $this->GetOption('logout_redirect') ) ); ?>" class="regular-text" />
180
+ <span class="setting-description"><?php _e('Defaults to <code>wp-login.php?loggedout=true</code>.'); ?></span>
181
  </td>
182
  </tr>
183
  </table>
184
 
185
+ <h3><?php _e('Template Settings'); ?></h3>
186
  <table class="form-table">
187
  <tr valign="top">
188
+ <th scope="row"><label for="register_text"><?php _e('Register Text'); ?></label></th>
189
  <td>
190
  <input name="register_text" type="text" id="register_text" value="<?php echo( htmlspecialchars ( $this->GetOption('register_text') ) ); ?>" class="regular-text" />
191
+ <span class="setting-description"><?php _e('This will appear above the registration form.'); ?></span>
192
  </td>
193
  </tr>
194
  <tr valign="top">
195
+ <th scope="row"><label for="login_text"><?php _e('Login Text'); ?></label></th>
196
  <td>
197
  <input name="login_text" type="text" id="login_text" value="<?php echo( htmlspecialchars ( $this->GetOption('login_text') ) ); ?>" class="regular-text" />
198
+ <span class="setting-description"><?php _e('This will appear above the login form.'); ?></span>
199
  </td>
200
  </tr>
201
  <tr valign="top">
202
+ <th scope="row"><label for="password_text"><?php _e('Forgot Password Text'); ?></label></th>
203
  <td>
204
  <input name="password_text" type="text" id="password_text" value="<?php echo( htmlspecialchars ( $this->GetOption('password_text') ) ); ?>" class="regular-text" />
205
+ <span class="setting-description"><?php _e('This will appear above the forgot password form.'); ?></span>
206
  </td>
207
  </tr>
208
  <tr valign="top">
209
+ <th scope="row"><label for="profile_text"><?php _e('Profile Text'); ?></label></th>
210
  <td>
211
  <input name="profile_text" type="text" id="profile_text" value="<?php echo( htmlspecialchars ( $this->GetOption('profile_text') ) ); ?>" class="regular-text" />
212
+ <span class="setting-description"><?php _e('This will appear above the users profile.'); ?></span>
213
  </td>
214
  </tr>
215
  <tr valign="top">
216
+ <th scope="row"><label for="login_redirect"><?php _e('Template Header Files'); ?></label></th>
217
  <td>
218
  <textarea name="header_files" id="header_files" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('header_files') ? htmlspecialchars(implode("\n", $this->GetOption('header_files'))) : ''; ?></textarea>
219
+ <span class="setting-description"><?php _e('Enter each header file used in your template, one per line. Typically, this is <code>header.php</code>.'); ?></span>
220
  </td>
221
  </tr>
222
  <tr valign="top">
223
+ <th scope="row"><label for="header_html"><?php _e('Template HTML After Header'); ?></label></th>
224
  <td>
225
  <textarea name="header_html" id="header_html" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('header_html') ? htmlspecialchars($this->GetOption('header_html')) : ''; ?></textarea>
226
+ <span class="setting-description"><?php _e('Enter the HTML that appears after the get_header() function and before the page code.'); ?></span>
227
  </td>
228
  </tr>
229
  <tr valign="top">
230
+ <th scope="row"><label for="footer_html"><?php _e('Template HTML Before Footer'); ?></label></th>
231
  <td>
232
  <textarea name="footer_html" id="footer_html" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('footer_html') ? htmlspecialchars($this->GetOption('footer_html')) : ''; ?></textarea>
233
+ <span class="setting-description"><?php _e('Enter footer HTML that appears between the page code and the get_sidebar()/get_footer() functions.'); ?></span>
234
  </td>
235
  </tr>
236
  <tr valign="top">
237
+ <th scope="row"><label for="footer_files"><?php _e('Template Footer Files'); ?></label></th>
238
  <td>
239
  <textarea name="footer_files" id="footer_files" rows="5" cols="50" class="large-text"><?php echo $this->GetOption('footer_files') ? htmlspecialchars(implode("\n", $this->GetOption('footer_files'))) : ''; ?></textarea>
240
+ <span class="setting-description"><?php _e('Enter each footer file used in your template, one per line. Typically, this is <code>sidebar.php</code> and <code>footer.php</code>.'); ?></span>
241
  </td>
242
  </tr>
243
  </table>
244
+ <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes'); ?>" />
245
  </form>
246
  </div>
247
  <?php