View difference between Paste ID: 0xHqv5tW and yBL8R3NK
SHOW: | | - or go back to the newest paste.
1
//remember to check for syntax errors before copy-paste-ing!
2-
add_filter ( 'wppb_register_redirect_after_creation1', 'prolong_redirect');
2+
//this only adds the 7 char-restriction to the register page
3-
function ($old){
3+
add_filter ( 'wppb_register_content_about_yourself3', 'add_char_length', 10, 7);
4
function add_char_length ($old_pass, $localVar1, $localVar2, $errorVar, $errorMark, $errorVar2, $errorMark2 ){
5-
 return '<font id="messageTextColor">' . sprintf(__( 'You will soon be redirected automatically. If you see this page for more than 10 seconds, please click %1$s.%2$s', 'profilebuilder'), '<a href="'.$redirectLink.'">'.__('here', 'profilebuilder').'</a>', '<meta http-equiv="Refresh" content="10;url='.$redirectLink.'" />') . '</font><br/><br/>';
5+
6
 return '
7
<p class="form-password'.$errorVar.'">
8
<label for="pass1">'. __('Password', 'profilebuilder') .$errorMark.'</label>
9
<input class="text-input" name="passw1" maxlength="7" type="password" id="pass1" value="'.trim($localVar1).'" />
10
</p><!-- .form-password -->
11
				 
12
<p class="form-password'.$errorVar2.'">
13
<label for="pass2">'. __('Repeat Password', 'profilebuilder') .$errorMark2.'</label>
14
<input class="text-input" name="passw2" maxlength="7" type="password" id="pass2" value="'.trim($localVar2).'" />
15
</p><!-- .form-password -->';
16
}