Support » Plugin: Pie Register » [Plugin: Pie Register] Conflict with Theme My Login plugin

Viewing 6 replies - 1 through 6 (of 6 total)
  • TML only changes the site URL if it has wp-login.php in the URL.

    Thanks Jeff. I did not mean to imply that TML is doing something wrong, just that what it does doesn’t work with what Pie Register is doing, if Pie Register is configured to use the password strength meter.

    Pie Register and TML both affect the login page, so perhaps conflicts are to be expected? I don’t know enough about plugin design to say what should be happening here. My change to the pie-register.php script works for me but would fail in the general case.

    @ cwjordan: What did you modify exactly to get the password strength meter of Pie Register to work with “Theme my Login”?!

    Chip_88 I changed the pie-register.php script so that where it had paths like:

    wp-includes/js/jquery/jquery.js?ver=1.2.3

    I changed them to start one directory higher like so:

    ../wp-includes/js/jquery/jquery.js?ver=1.2.3

    I believe that will break if Theme My Login is _not_ installed, so that’s not a good general solution. I’m not sure what the best thing to do is. Here is the complete diff between the original pie-register.php script in Pie Register version 1.2.9a, and my customized version (this also has a fix for https support):

    $ diff pie-register.php pie-register.php.orig
    46,47c46
    < /* cwjordan - we want plugin_url to be https if needed so use "plugins_url()" */
    <                       $this->plugin_url = trailingslashit(plugins_url(basename(dirname(__FILE__))));
    ---
    >                       $this->plugin_url = trailingslashit(get_option('siteurl')) . 'wp-content/plugins/' . basename(dirname(__FILE__)) .'/';
    247,262c246,256
    <                         if (is_array($rpg)) {
    <                                 foreach ($rpg as $k=>$v) {
    <                                         $rpg[$k] = $this->disable_magic_quotes_gpc($v);
    <                                 }
    <                         } else {
    <                               if (TRUE == function_exists('get_magic_quotes_gpc') && 1 == get_magic_quotes_gpc()){
    <                                       $mqs = strtolower(ini_get('magic_quotes_sybase'));
    <
    <                                       if (TRUE == empty($mqs) || 'off' == $mqs){
    <                                               // we need to do stripslashes on $_GET, $_POST and $_COOKIE
    <                                               $rpg=stripslashes($rpg);
    <                                       }
    <                                       else{
    <                                               // we need to do str_replace("''", "'", ...) on $_GET, $_POST, $_COOKIE
    <                                               $rpg=str_replace("''","'",$rpg);
    <                                       }
    ---
    >                       $drf=$rpg;
    >                       if (TRUE == function_exists('get_magic_quotes_gpc') && 1 == get_magic_quotes_gpc()){
    >                               $mqs = strtolower(ini_get('magic_quotes_sybase'));
    >
    >                               if (TRUE == empty($mqs) || 'off' == $mqs){
    >                                       // we need to do stripslashes on $_GET, $_POST and $_COOKIE
    >                                       $rpg=stripslashes($rpg);
    >                               }
    >                               else{
    >                                       // we need to do str_replace("''", "'", ...) on $_GET, $_POST, $_COOKIE
    >                                       $rpg=str_replace("''","'",$rpg);
    264c258
                            }
    ---
    >                       }
    265a260
    >                       //return $drf;
    1441c1436
    <                       <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>../wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>
    ---
    >                       <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>
    1449c1444
    < <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>../wp-includes/js/jquery/jquery.color.js?ver=2.0-4561'></script>
    ---
    > <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>wp-includes/js/jquery/jquery.color.js?ver=2.0-4561'></script>
    1461c1456
    < <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>../wp-admin/js/password-strength-meter.dev.js?ver=20070405'></script>
    ---
    > <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>wp-admin/js/password-strength-meter.dev.js?ver=20070405'></script>
    1689c1684
    <                 <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>../wp-includes/js/jquery/jquery.js?ver=1.2.3'></script>
    ---
    >                 <script type='text/javascript' src='<?php trailingslashit(get_option('siteurl'));?>wp-includes/js/jquery/jquery.js?ver=1.2.3'></script>
    2092c2087
    < ?>
    ---
    > ?>

    Hey cwjordan!

    Thanks for your answer!

    After I updated from wordpress 3.4.2 to wordpress 3.5.1 the password strength meter broke again. The problem is pie-register.php is looking for password-strength-meter.dev.js which is not there in WordPress 3.5.1, it is password-strength-meter.js instead. After I changed that name in pie-register.php it worked again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Pie Register] Conflict with Theme My Login plugin’ is closed to new replies.