Theme My Login - Version 1.1.2

Version Description

Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

Files changed (2) hide show
  1. readme.txt +12 -9
  2. theme-my-login.php +33 -12
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.1
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
@@ -24,19 +24,21 @@ Upload the Theme My Login plugin to your 'wp-content/plugins' directory and acti
24
 
25
  3. Register Text - You can change this to whatever text you want to appear above your registration form. This defaults to 'Register'.
26
 
27
- 4. Login Text - You can change this to whatever text you want to appear above your login form. This defaults to 'Log In'.
28
 
29
- 5. Forgot Password Text - You can change this to whatever text you want to appear above your forgot password form. This defaults to 'Forgot Password'.
30
 
31
- 6. Profile Text - You can change this to whatever text you want to appear above the user profile form. This defaults to 'Your Profile'.
32
 
33
- 7. Template Header Files - Enter each header file used in your template, one per line. Typically, this is only header.php, but you can figure this out by clicking Appearance->Editor->Main Index Template. If the only function call you see is get_header() before the HTML then it's likely this is the only file you need to enter.
34
 
35
- 8. Template HTML After Header - Enter the HTML that appears between the get_header() function and the page code. You can probably figure this out by clicking Appearance->Editor->Main Index Template. The HTML you need to copy is everything between the last ?> in the top of the file and the line that looks something like this: <?php endif; ?> and the line that may look like this: <?php get_sidebar(); ?>. Keep in mind that if you are using a template that doesn't fit the typical scheme, you will need to experiment a bit to get this right.
36
 
37
- 9. Template HTML Before Footer - Enter the HTML that appears between the page code and the get_sidebar()/get_footer() functions. You can probably figure this out by clicking Appearance->Editor->Main Index Template. The HTML you need to copy is everything between the last ?> in the top of the file and the line that looks something like this: <?php if (have_posts()) : ?>. Keep in mind that if you are using a template that doesn't fit the typical scheme, you will need to experiment a bit to get this right.
38
 
39
- 10. Template Footer Files - Enter each footer file used in your template, one per line. Typically this is sidebar.php and footer.php. You can figure this out by clicking Appearance->Editor->Main Index Template. If you see the function calls get_sidebar() and get_footer() then you should be able to leave the defaults alone.
 
 
40
 
41
  Now you can save your changes and go test out your new themed login and registration pages. That's all!
42
 
@@ -46,4 +48,5 @@ Now you can save your changes and go test out your new themed login and registra
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
 
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.2
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
24
 
25
  3. Register Text - You can change this to whatever text you want to appear above your registration form. This defaults to 'Register'.
26
 
27
+ 4. Register Message - You can change this to whatever you want to appear below your registration form. This defaults to 'A password will be e-mailed to you.'
28
 
29
+ 5. Login Text - You can change this to whatever text you want to appear above your login form. This defaults to 'Log In'.
30
 
31
+ 6. Forgot Password Text - You can change this to whatever text you want to appear above your forgot password form. This defaults to 'Forgot Password'.
32
 
33
+ 7. Profile Text - You can change this to whatever text you want to appear above the user profile form. This defaults to 'Your Profile'.
34
 
35
+ 8. Template Header Files - Enter each header file used in your template, one per line. Typically, this is only header.php, but you can figure this out by clicking Appearance->Editor->Main Index Template. If the only function call you see is get_header() before the HTML then it's likely this is the only file you need to enter.
36
 
37
+ 9. Template HTML After Header - Enter the HTML that appears between the get_header() function and the page code. You can probably figure this out by clicking Appearance->Editor->Main Index Template. The HTML you need to copy is everything between the last ?> in the top of the file and the line that looks something like this: <?php endif; ?> and the line that may look like this: <?php get_sidebar(); ?>. Keep in mind that if you are using a template that doesn't fit the typical scheme, you will need to experiment a bit to get this right.
38
 
39
+ 10. Template HTML Before Footer - Enter the HTML that appears between the page code and the get_sidebar()/get_footer() functions. You can probably figure this out by clicking Appearance->Editor->Main Index Template. The HTML you need to copy is everything between the last ?> in the top of the file and the line that looks something like this: <?php if (have_posts()) : ?>. Keep in mind that if you are using a template that doesn't fit the typical scheme, you will need to experiment a bit to get this right.
40
+
41
+ 11. Template Footer Files - Enter each footer file used in your template, one per line. Typically this is sidebar.php and footer.php. You can figure this out by clicking Appearance->Editor->Main Index Template. If you see the function calls get_sidebar() and get_footer() then you should be able to leave the defaults alone.
42
 
43
  Now you can save your changes and go test out your new themed login and registration pages. That's all!
44
 
48
  * 1.0.0 - 2009-03-13 - Initial release version
49
  * 1.0.1 - 2009-03-14 - Made backwards compatible to WordPress 2.5+
50
  * 1.1.0 - 2009-03-14 - Added custom profile to completely hide the back-end from subscribers
51
+ * 1.1.1 - 2009-03-16 - Prepared plugin for internationalization and fixed a PHP version bug
52
+ * 1.1.2 - 2009-03-20 - Updated to allow customization of text below registration form
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.1
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
@@ -17,6 +17,8 @@ Version History
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')) {
@@ -61,6 +63,7 @@ if (!class_exists('ThemeMyLogin')) {
61
  $this->options['tml_footer_html'] = ' </div>' . "\n";
62
  $this->options['tml_login_text'] = 'Log In';
63
  $this->options['tml_register_text'] = 'Register';
 
64
  $this->options['tml_password_text'] = 'Reset Password';
65
  $this->options['tml_profile_text'] = 'Your Profile';
66
  }
@@ -137,6 +140,7 @@ if (!class_exists('ThemeMyLogin')) {
137
 
138
  $this->SetOption('login_text', stripslashes($_POST['login_text']));
139
  $this->SetOption('register_text', stripslashes($_POST['register_text']));
 
140
  $this->SetOption('password_text', stripslashes($_POST['password_text']));
141
  $this->SetOption('profile_text', stripslashes($_POST['profile_text']));
142
  $this->SetOption('login_redirect', stripslashes($_POST['login_redirect']));
@@ -191,6 +195,13 @@ if (!class_exists('ThemeMyLogin')) {
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>
@@ -271,8 +282,10 @@ if (!class_exists('ThemeMyLogin')) {
271
  $wp_error = new WP_Error();
272
 
273
  $header_files = $this->GetOption('header_files');
274
- foreach((array)$header_files as $header_file)
275
- include(TEMPLATEPATH . '/' . $header_file);
 
 
276
 
277
  echo $this->GetOption('header_html');
278
  ?>
@@ -394,8 +407,10 @@ if (!class_exists('ThemeMyLogin')) {
394
  <?php
395
  echo $this->GetOption('footer_html');
396
  $footer_files = $this->GetOption('footer_files');
397
- foreach((array)$footer_files as $footer_file)
398
- include(TEMPLATEPATH . '/' . $footer_file);
 
 
399
 
400
  die();
401
  break;
@@ -447,7 +462,7 @@ if (!class_exists('ThemeMyLogin')) {
447
  <input type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
448
  </p>
449
  <?php do_action('register_form'); ?>
450
- <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
451
  <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register'); ?>" tabindex="100" /></p>
452
  </form>
453
 
@@ -461,8 +476,10 @@ if (!class_exists('ThemeMyLogin')) {
461
  <?php
462
  echo $this->GetOption('footer_html');
463
  $footer_files = $this->GetOption('footer_files');
464
- foreach((array)$footer_files as $footer_file)
465
- include(TEMPLATEPATH . '/' . $footer_file);
 
 
466
 
467
  die();
468
  break;
@@ -561,8 +578,10 @@ if (!class_exists('ThemeMyLogin')) {
561
  <?php
562
  echo $this->GetOption('footer_html');
563
  $footer_files = $this->GetOption('footer_files');
564
- foreach((array)$footer_files as $footer_file)
565
- include(TEMPLATEPATH . '/' . $footer_file);
 
 
566
 
567
  die();
568
  break;
@@ -791,8 +810,10 @@ if (!class_exists('ThemeMyLogin')) {
791
  <?php
792
  echo $this->GetOption('footer_html');
793
  $footer_files = $this->GetOption('footer_files');
794
- foreach((array)$footer_files as $footer_file)
795
- include(TEMPLATEPATH . '/' . $footer_file);
 
 
796
 
797
  die();
798
  }
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.2
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
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
+ 1.1.2 - 2009-03-20
21
+ Updated to allow customization of text below registration form
22
  */
23
 
24
  if (!class_exists('ThemeMyLogin')) {
63
  $this->options['tml_footer_html'] = ' </div>' . "\n";
64
  $this->options['tml_login_text'] = 'Log In';
65
  $this->options['tml_register_text'] = 'Register';
66
+ $this->options['tml_register_msg'] = 'A password will be e-mailed to you.';
67
  $this->options['tml_password_text'] = 'Reset Password';
68
  $this->options['tml_profile_text'] = 'Your Profile';
69
  }
140
 
141
  $this->SetOption('login_text', stripslashes($_POST['login_text']));
142
  $this->SetOption('register_text', stripslashes($_POST['register_text']));
143
+ $this->SetOption('register_msg', stripslashes($_POST['register_msg']));
144
  $this->SetOption('password_text', stripslashes($_POST['password_text']));
145
  $this->SetOption('profile_text', stripslashes($_POST['profile_text']));
146
  $this->SetOption('login_redirect', stripslashes($_POST['login_redirect']));
195
  <span class="setting-description"><?php _e('This will appear above the registration form.'); ?></span>
196
  </td>
197
  </tr>
198
+ <tr valign="top">
199
+ <th scope="row"><label for="register_msg"><?php _e('Register Message'); ?></label></th>
200
+ <td>
201
+ <input name="register_msg" type="text" id="register_msg" value="<?php echo( htmlspecialchars ( $this->GetOption('register_msg') ) ); ?>" class="regular-text" />
202
+ <span class="setting-description"><?php _e('This will appear below the registration form.'); ?></span>
203
+ </td>
204
+ </tr>
205
  <tr valign="top">
206
  <th scope="row"><label for="login_text"><?php _e('Login Text'); ?></label></th>
207
  <td>
282
  $wp_error = new WP_Error();
283
 
284
  $header_files = $this->GetOption('header_files');
285
+ foreach((array)$header_files as $header_file) {
286
+ if (file_exists(TEMPLATEPATH . '/' . $header_file))
287
+ include(TEMPLATEPATH . '/' . $header_file);
288
+ }
289
 
290
  echo $this->GetOption('header_html');
291
  ?>
407
  <?php
408
  echo $this->GetOption('footer_html');
409
  $footer_files = $this->GetOption('footer_files');
410
+ foreach((array)$footer_files as $footer_file) {
411
+ if (file_exists(TEMPLATEPATH . '/' . $footer_file))
412
+ include(TEMPLATEPATH . '/' . $footer_file);
413
+ }
414
 
415
  die();
416
  break;
462
  <input type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
463
  </p>
464
  <?php do_action('register_form'); ?>
465
+ <p id="reg_passmail"><?php _e($this->GetOption('register_msg')) ?></p>
466
  <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Register'); ?>" tabindex="100" /></p>
467
  </form>
468
 
476
  <?php
477
  echo $this->GetOption('footer_html');
478
  $footer_files = $this->GetOption('footer_files');
479
+ foreach((array)$footer_files as $footer_file) {
480
+ if (file_exists(TEMPLATEPATH . '/' . $footer_file))
481
+ include(TEMPLATEPATH . '/' . $footer_file);
482
+ }
483
 
484
  die();
485
  break;
578
  <?php
579
  echo $this->GetOption('footer_html');
580
  $footer_files = $this->GetOption('footer_files');
581
+ foreach((array)$footer_files as $footer_file) {
582
+ if (file_exists(TEMPLATEPATH . '/' . $footer_file))
583
+ include(TEMPLATEPATH . '/' . $footer_file);
584
+ }
585
 
586
  die();
587
  break;
810
  <?php
811
  echo $this->GetOption('footer_html');
812
  $footer_files = $this->GetOption('footer_files');
813
+ foreach((array)$footer_files as $footer_file) {
814
+ if (file_exists(TEMPLATEPATH . '/' . $footer_file))
815
+ include(TEMPLATEPATH . '/' . $footer_file);
816
+ }
817
 
818
  die();
819
  }