Validation Rules 1.2.1

14 years 10 months ago #101611 by viper_iii
Replied by viper_iii on topic Re:Validation Rules 1.2.1
User-Editing

Fields Shot

Field Parameters


Config - Admin Require Validation > No


Something is caught up... almost guaranteed...

There has to be a file that got jacked up in the upgrade but the comprofiler.html.php / admin.comprofiler.html.php files are exact matches to the download files.

Post edited by: viper_iii, at: 2009/06/09 22:55

Post edited by: viper_iii, at: 2009/06/09 22:56

Post edited by: viper_iii, at: 2009/06/09 23:02

Please Log in to join the conversation.

14 years 10 months ago #101612 by viper_iii
Replied by viper_iii on topic Re:Validation Rules 1.2.1
Not hardcoded? This an old file?

Line 2120 it seems...
admin.comprofiler.html.php

[code:1]
if ((me.value) && (me.value.length < 6)) {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', sprintf( unhtmlentities(_VALID_AZ09), unhtmlentities(_REGISTER_PASS), 6 ) );?>\n";
me.style.backgroundColor = "red";
[/code:1]

Please Log in to join the conversation.

14 years 10 months ago #101613 by viper_iii
Replied by viper_iii on topic Re:Validation Rules 1.2.1
yup that was the issue... line 2120 hard coded minimum chars..

changed to 4 chars and it was fine... also changed the error message to 4 chars just for fun... all on that argument in the php...

the Fields variable for length isn't a variable it seems..

Username coded to 3 ... are least on ours... not sure about the download version... checking now...

yup hardcoded values for those... not linked to the fields variables for those it seems... or its not seeing out value correctly...

Original file posted below
[code:1]<?php echo $tabs->fieldJS; ?>
if (me.value == ""«») {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', unhtmlentities( _REGWARN_UNAME ) ); ?>\n";
me.style.backgroundColor = "red";
iserror=1;
} else if (r.exec(me.value) || (me.value.length < 3)) {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', sprintf( unhtmlentities(_VALID_AZ09), unhtmlentities( _PROMPT_UNAME ), 2 ) );?>\n";
me.style.backgroundColor = "red";
iserror=1;
} else if (me.style.backgroundColor.slice(0,3)=="red"«») {
me.style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if ((me.value) && (me.value.length < 6)) {
errorMSG += "<?php echo str_replace( array( "\n", "\r" ), ' ', sprintf( unhtmlentities(_VALID_AZ09), unhtmlentities(_REGISTER_PASS), 6 ) );?>\n";
me.style.backgroundColor = "red";
iserror=1;
} else if ((me.value != ""«») && (me.value != me.value)){
errorMSG += "<?php echo unhtmlentities(_REGWARN_VPASS2);?>\n";
me.style.backgroundColor = "red"; me.style.backgroundColor = "red";
iserror=1;
} else {
if (me.style.backgroundColor.slice(0,3)=="red"«») me.style.backgroundColor = cbDefaultFieldbackgroundColor;
if (me.style.backgroundColor.slice(0,3)=="red"«») me.style.backgroundColor = cbDefaultFieldbackgroundColor;
}
if (me.value == ""«») {
errorMSG += "You must assign user to a group.\n";
iserror=1;
}[/code:1]

Post edited by: viper_iii, at: 2009/06/09 23:15

Please Log in to join the conversation.

14 years 10 months ago #101662 by krileon
Replied by krileon on topic Re:Validation Rules 1.2.1
Confirmed, will require further investigation.

#1049


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.206 seconds

Facebook Twitter LinkedIn