durangod Posted June 11, 2014 Share Posted June 11, 2014 includes/jscript/pwstrength.js version 5.3.7 issue: bar was not showing on registration or view cart and in the showStrengthBar function on your document.write you are using .name. which is the wrong syntax. found js error reported by FF console SyntaxError: missing name after . operator pwstrength.js:60 original code document.write('<table align="center"><tr><td>'.langPasswordStrength.':</td><td width="102"><div id="pwstrengthpos" style="position:relative;float:left;width:0px;background-color:#33CC00;border:1px solid #000;border-right:0px;"> </div><div id="pwstrengthneg" style="position:relative;float:right;width:100px;background-color:#efefef;border:1px solid #000;border-left:0px;"> </div></td><td><div id="pwstrength">'.langPasswordWeak.'</div></td></tr></table>'); corrected document.write with new code (tested and works) changed to: +langPasswordStrength+ and +langPasswordWeak+ function showStrengthBar() { if(typeof langPasswordStrength === 'undefined'){ var langPasswordStrength = "Password Strength"; } if(typeof langPasswordWeak === 'undefined'){ var langPasswordWeak = "Weak"; } document.write('<table align="center"><tr><td>'+langPasswordStrength+':</td><td width="102"><div id="pwstrengthpos" style="position:relative;float:left;width:0px;background-color:#33CC00;border:1px solid #000;border-right:0px;"> </div><div id="pwstrengthneg" style="position:relative;float:right;width:100px;background-color:#efefef;border:1px solid #000;border-left:0px;"> </div></td><td><div id="pwstrength">'+langPasswordWeak+'</div></td></tr></table>'); } thanks.. Link to comment Share on other sites More sharing options...
WHMCS Ryan Posted June 11, 2014 Share Posted June 11, 2014 durangod, I have confirmed this bug and your provided workaround. The internal case number is 4660. I will post any applicable updates as they happen. --Thanks Link to comment Share on other sites More sharing options...
WHMCS Ryan Posted June 12, 2014 Share Posted June 12, 2014 Hello Durango, It appears this was a known bug and the official workaround is to re-upload the pwstrength.tpl from version 5.3.6. This should resolve the problem in 5.3.7. Original internal case number was 4547. --Thanks Link to comment Share on other sites More sharing options...
Recommended Posts