Page 1 of 1

Password strength indicator not working...

PostPosted: August 26th, 2011, 5:33 pm
by kvaughn
I just installed s2Member Pro and the password strength indicator in my registration form stopped working. I also noticed that the registration form does not return errors if you don't enter data in custom fields that are set to be required, or if you enter an incorrect data type. I would be very appreciative if someone could point me in the right direction to begin troubleshooting this? Seems like a JavaScript issue but just not sure where to start.

Registration Form
http://www.knowledgeinfusionnetwork.com/?page_id=84&action=register

Re: Password strength indicator not working...

PostPosted: August 27th, 2011, 2:08 am
by Cristián Lávaque
Yes, it does sound like a JS problem. I loaded the page with Firefox' Error Console open and got these two errors:

Error: invalid regular expression flag h
Source File: http://www.knowledgeinfusionnetwork.com ... cript=wp25
Line: 2, Column: 77
Source Code:
<b>Deprecated</b>: Function set_magic_quotes_runtime() is deprecated in <b>/home/content/55/8242055/html/wp-settings.php</b> on line <b>32</b><br />


Error: The stylesheet http://www.knowledgeinfusionnetwork.com ... style=wp25 was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://www.knowledgeinfusionnetwork.com ... n=register
Line: 0


Maybe they're related to the problem you're having with the form. If deactivating the Login Box doesn't solve the problem, you can try deactivating other plugins until the form works, or change to the default theme in case the conflict is with your theme. Once you find where the conflict is, it'll be easier to solve it.

Re: Password strength indicator not working...

PostPosted: August 30th, 2011, 11:07 am
by kvaughn
Thanks Cristián for the quick response. Sounds like good advice, I will post back the results. Loving the s2Member product, very powerful and easy to use.

Re: Password strength indicator not working...

PostPosted: August 30th, 2011, 6:13 pm
by Cristián Lávaque
Thanks for the kudos! Glad you're liking it. :)

I look forward to your update, I hope you can solve it without much trouble.

Re: Password strength indicator not working...

PostPosted: August 30th, 2011, 6:16 pm
by kvaughn
I've found the offending plugin, it's called Theme My Login. I'd really hate to get rid of it. Does anyone happen to know if there is a way to get s2Member and Theme My Login to play nice together?

Re: Password strength indicator not working...

PostPosted: August 30th, 2011, 8:02 pm
by Cristián Lávaque
Glad you found the problem. This thread may help you with that plugin: viewtopic.php?f=4&t=251

Re: Password strength indicator not working...

PostPosted: August 31st, 2011, 12:14 pm
by kvaughn
Thanks Cristián for pointing me to this thread... I'm not so sure it's a Theme My Login issue now. What's happening to my registration page, is not at all what the others are experiencing in that thread.

When I load the page in Firefox' Error Console I get many css errors like the following:

Warning: Expected 'important' but found 'ie'. Expected ';' or '}' to terminate declaration but found 'ie'. Declaration dropped.
Source File: http://www.knowledgeinfusionnetwork.com ... 5-31820110
Line: 1

In fact these same errors appear on all pages of the site. I would be very appreciative if you could take a quick look. Here is the registration page: http://www.knowledgeinfusionnetwork.com ... n=register

Re: Password strength indicator not working...

PostPosted: August 31st, 2011, 11:24 pm
by Cristián Lávaque
I didn't get any errors. Did you get errors or warnings?

Re: Password strength indicator not working...

PostPosted: September 1st, 2011, 2:27 pm
by kvaughn
My apology... you are correct, they are warnings. Are these normal or something I should worry about?

Can you point me to a complete list of shortcodes for s2Member or are the ones in the API/Scripting section of the help files the only ones?

Also, is there a single shortcode that will insert the whole registration form into a page?

Re: Password strength indicator not working...

PostPosted: September 2nd, 2011, 1:18 pm
by kvaughn
Uninstalled Theme My Login... too much trouble with it.

Love your product and am committed to using but wish it had the ability to apply the site theme to login, registration, password recovery pages.

Re: Password strength indicator not working...

PostPosted: September 2nd, 2011, 9:51 pm
by Cristián Lávaque
Yeah, I know what you mean. We may add that at some point, but we haven't gotten to that yet.

You can, with s2Member Pro's pro-forms, have a custom registration page that isn't the one in wp-login.php?action=register. There's a free registration pro-form you can use in any WordPress page/post and is more customizable. WP Admin -> s2Member -> PayPal Pro-Forms -> Free Registration

s2Member Pro also has a Login Widget you can use in the widgets areas or include it via PHP in any WordPress post/page. WP Admin -> s2Member -> API / Scripting -> Pro Login Widget via PHP

I hope this helps. :)

Re: Password strength indicator not working...

PostPosted: September 22nd, 2011, 7:28 am
by sserbanro
kvaughn wrote: [...]In fact these same errors appear on all pages of the site. [...]


Hi everybody!

I am interested in using the same plugin [Theme My Login] for integrating the s2M forms into the theme.
I gave a try to all the pages available for visitors on the:
http://www.knowledgeinfusionnetwork.com
1. I use Chrome v 14.0835.x
2. All the pages I accessed worked excellent, except for testing the registration itself (I'm an outsider to Pro medical care...) which could lead me to some other pages AFTER triggering the PHP registration scripts.
So, as a logical conclusion, the code collision might occure when the PHP registration snippet interferes with the PHP page output.
3. Now, am I supposed to understand that those are mostly browser-specific issues? For instance, the flash plugin gives weird behaviour when run on Linux with different browsers, and on different sites. Might that be the same kind of trouble?

Re: Password strength indicator not working...

PostPosted: September 25th, 2011, 4:43 pm
by Cristián Lávaque
Thanks for the kudos. :)

I don't know exactly what the reason for your problem is. Do you have it with Theme My Login in combination with s2Member only? Have you read this thread? viewtopic.php?f=4&t=251

Re: Password strength indicator not working...

PostPosted: September 26th, 2011, 1:47 am
by sserbanro
Cristián Lávaque wrote:Thanks for the kudos. :)

I don't know exactly what the reason for your problem is. Do you have it with Theme My Login in combination with s2Member only? Have you read this thread? viewtopic.php?f=4&t=251

Thanks, Cristián,
I did do my homework. I always read before asking anything.
It just seemed weird to me that the plugin worked -- exactely because of the posts in the thread --- and I thought that testing and giving feed-back would help. Might be required a minor change, but in the programming logic of the plugin.
However, I am using now an alternate solution, based on the S2M minimal options and it worked well enough.
I have poor PHP knowledge, so hacking for a solution might take me many months... But who understands the logic of the S2M AND Theme My Login, might improve the last.
I doubt that changing S2M would be a wise solution, due to its complexity. Code collisions might occur even for Jason himself. Only that he has "the big picture" in mind and chances to fix such "glitches" are higher; actually the highest I guess.
Still, IF there is a good PHP coder around, our feed-back wil help him improve both software and save development time. Afterall, S2M team makes available a fully functional kit on the site.