Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-21T17:05:11-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10170 2011-08-21T17:05:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10170&p=32588#p32588 <![CDATA[Re: Password Strength Indicator broken]]> Statistics: Posted by annabwashere — August 21st, 2011, 5:05 pm


]]>
2011-06-16T00:21:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10170&p=20908#p20908 <![CDATA[Re: Password Strength Indicator broken]]>

Statistics: Posted by Cristián Lávaque — June 16th, 2011, 12:21 am


]]>
2011-06-16T00:10:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10170&p=20904#p20904 <![CDATA[Re: Password Strength Indicator broken]]>
I am HIDING two fields -- the Username and the DisplayName -- from the form, by using Hooks from s2m's profile-in.inc.php, to insert HTML comments around the rows.
Code:
add_action('ws_plugin__s2member_during_profile_during_fields_before_username','ideal_hide_start',10);
add_action('ws_plugin__s2member_during_profile_during_fields_after_username','ideal_hide_end',10);
add_action('ws_plugin__s2member_during_profile_during_fields_before_display_name','ideal_hide_start',5);
add_action('ws_plugin__s2member_during_profile_during_fields_after_display_name','ideal_hide_end',5);

function ideal_hide_start ( $vars = array() ) {
   echo "<!--  \n";
}
function ideal_hide_end ( $vars = array() ) {
   echo " --> \n";
}

In troubleshooting this just now, I found that the hooks are ok, and even inserting a complete html comment (like <!-- test --> ) is ok, but wrapping the TRs as I'm doing it is what breaks the Password Strength Indicator, for some reason.

No big deal, though, since I can use jQuery to hide the TRs instead.
Code:
// hide fields (the entire <tr>)
jQuery('#ws-plugin--s2member-profile-display-name').parent().parent().parent().hide(); // Display-Name field
jQuery('#ws-plugin--s2member-profile-login').parent().parent().parent().hide(); // Username field

Statistics: Posted by toddz88 — June 16th, 2011, 12:10 am


]]>
2011-06-15T21:03:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10170&p=20873#p20873 <![CDATA[Re: Password Strength Indicator broken]]> Statistics: Posted by Cristián Lávaque — June 15th, 2011, 9:03 pm


]]>
2011-06-15T16:23:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10170&p=20846#p20846 <![CDATA[Password Strength Indicator broken]]>
GREY with "password strength indicator"
- on page load

RED with "Very weak"
- tab into Password-1 field, instantly (before typing).
- first 3 characters.

GREY with "Very weak"
- more than 3 chars (of a good password)
- tab into Password-2 field.

BROWN with "Mismatch"
- any chars entered, including the beginning of Password1.
- when chars fully and exactly match Password-1

(I have s2member+Pro v110606 on wp 3.1.3).
Anyone else having trouble with this?

Statistics: Posted by toddz88 — June 15th, 2011, 4:23 pm


]]>