pstockley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Images not displaying in Safari 9 after CSS fixsite cache cleared, fixed
Forum: Fixing WordPress
In reply to: Subdomain/Domain mapped site redirecting to main siteI’ve never used nginx, but your sites-available file keeps referring to elpmaxe.moc – is everything after line 49 in it’s own conf file?
In Apache each site requires its own conf file.
Also I don’t understand why you have this CNAME in both your DNS records:
CNAME_______________elpmaxe_____________example.com._________AutoAnd I only use CNAME records for sites with subdomains.
Maybe I’m still too pleb to get it fully, but just my thoughts…good luck!
- This reply was modified 8 years, 2 months ago by pstockley.
Forum: Plugins
In reply to: [Theme My Login] Locked Out!13 hours later… Is it working yet?
It sounds like it’s another plugin like Better WP Security or Wordfence causing this issue.
To my knowledge, TML does not have the functionality to lock out users built in.
Do you have any active security plugins? You may have to use FTP to deactivate/remove them.
Forum: Plugins
In reply to: [Theme My Login] reset password formHi Jeff,
Could you please be a bit more specific as to what you mean by that or provide a link to the documentation?
I can’t seem to find anything relevant on the wp core site.
Also had a go at running through wp-login.php to remove the code for the additional boxes/change them to appear as hidden which didn’t seem to do anything…
Forum: Plugins
In reply to: [Theme My Login] reset password formyour problem is even worse…you can’t even reset passwords on your site without doing it manually.
I had the issue where it says “Invalid key” upon resetting password but it went away after the latest update for TML.
The three fields issue is still a problem tho
Forum: Plugins
In reply to: [Theme My Login] reset password formI did the same as franckeg above, downloaded the plugin again and both resetpass-form.php are identical.
I’m also getting this error:
/wp-admin/js/password-strength-meter.min.js?ver=3557c55b6483aa6940c0b9b26d9da6ce:1 Uncaught ReferenceError: zxcvbn is not defined
Forum: Plugins
In reply to: [Theme My Login] Which file to cssWhere might I find the action?
This seems to be pulling the form:
<?php do_action( 'register_form' ); ?>
Which appeared in my functions:
add_action( 'register_form', 'ra_extra_reg_fields', 1 );
But when I removed the whole block in functions, both password fields were still on the forms so it must be somewhere else..
Rest of the form code in functions is here: https://pastebin.com/Ev6gV1MS
I’ve searched all my file contents for ‘register_form’ and nothing new resulted…I’m not sure where else to look!
Forum: Plugins
In reply to: [Theme My Login] reset password formI am having the same issue, on password reset form there is a password (hidden chars) + password text (visible chars) but no password confirmation field.
I’m also experiencing something similar with the profile-form but with 3 inputs; password, password text and a third password which can only enter 1 character and displays directly affects the password field..
This is the pw code in my profile-form:
<h3><?php _e( 'Change Password', 'theme-my-login' ); ?></h3> <?php $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ); if ( $show_password_fields ) : ?> <tr id="password"> <th><label for="pass1"><?php _e( 'New Password', 'theme-my-login' ); ?></label></th> <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'theme-my-login' ); ?></span><br /> <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e( 'Type your new password again.', 'theme-my-login' ); ?></span><br /> <div id="pass-strength-result"><?php _e( 'Strength indicator', 'theme-my-login' ); ?></div> <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).', 'theme-my-login' ); ?></p> </td> </tr> <?php endif; ?> </table>
The password reset in profile-form only works when the new pw is entered in the password text field, using any other field it displays “Please enter the same password…”
pass2 appears to be the broken pw field that I can only enter 1 character, removing it breaks the password change function resulting in the same error “Please enter the same…etc”
Not sure what’s going on!
Forum: Plugins
In reply to: [Theme My Login] Multiple registration forms for different parts of the siteI’ve scrapped the alternate form and am now just working on making one form to fit all sizes.
Thanks for trying though!
Forum: Plugins
In reply to: [Theme My Login] Which file to cssHi Jeff,
I’m trying to change the labels to placeholder text on the password input fields but I can’t seem to locate the classes.
I’ve been able to locate every field except for the passwords…
Could you please advise how I can do this?
Thanks in advance!
Forum: Plugins
In reply to: [Theme My Login] Multiple registration forms for different parts of the siteThis is the code for the form in functions.php:
// Registration & Login Forms // --------------------------- add_action( 'register_form', 'ra_extra_reg_fields', 1 ); function ra_extra_reg_fields() { ?> <p> <label>First Name<br/> <input type="text" name="first_name" id="first_name" class="input" value="<?php echo esc_attr( $_POST['first_name'] ); ?>" size="25"/> </label> </p> <p> <label>Last Name<br/> <input type="text" name="last_name" id="last_name" class="input" value="<?php echo esc_attr( $_POST['last_name'] ); ?>" size="25" /> </label> </p> <p> <label>School/Library Name<br/> <input type="text" name="organisation" id="organisation" class="input" value="<?php echo esc_attr( $_POST['organisation'] ); ?>" size="25" /> </label> </p> <p> <label>State<br/> <select id="state" name="state"> <option value=""></option> <option <?php if ( $_POST['state'] == 'ACT' ) echo 'selected'; ?>>ACT</option> <option <?php if ( $_POST['state'] == 'NSW' ) echo 'selected'; ?>>NSW</option> <option <?php if ( $_POST['state'] == 'NT' ) echo 'selected'; ?>>NT</option> <option <?php if ( $_POST['state'] == 'QLD' ) echo 'selected'; ?>>QLD</option> <option <?php if ( $_POST['state'] == 'SA' ) echo 'selected'; ?>>SA</option> <option <?php if ( $_POST['state'] == 'TAS' ) echo 'selected'; ?>>TAS</option> <option <?php if ( $_POST['state'] == 'WA' ) echo 'selected'; ?>>WA</option> <option <?php if ( $_POST['state'] == 'VIC' ) echo 'selected'; ?>>VIC</option> <option <?php if ( $_POST['state'] == 'Other' ) echo 'selected'; ?>>Other</option> </select> </label> </p> <p> <label>About You<br/> <select id="aboutyou" name="aboutyou"> <option value=""></option> <option <?php if ( $_POST['aboutyou'] == 'Teacher - Primary' ) echo 'selected'; ?>>Teacher - Primary</option> <option <?php if ( $_POST['aboutyou'] == 'Teacher - Secondary' ) echo 'selected'; ?>>Teacher - Secondary</option> <option <?php if ( $_POST['aboutyou'] == 'Teacher - Tertiary' ) echo 'selected'; ?>>Teacher - Tertiary</option> <option <?php if ( $_POST['aboutyou'] == 'Librarian' ) echo 'selected'; ?>>Librarian</option> <option <?php if ( $_POST['aboutyou'] == 'Academic' ) echo 'selected'; ?>>Academic</option> <option <?php if ( $_POST['aboutyou'] == 'Avid reade' ) echo 'selected'; ?>>Avid reader</option> </select> </label> </p> <tr> <th><label for="email_updates"><?php _e( 'Email Updates', 'theme-my-login' ); ?></label></th> <td><input type="checkbox" name="email_updates" id="email_updates" value="true" <?php if (get_user_meta($profileuser->ID, 'email_updates', true)) echo "email_updates='checked'"; ?> class="regular-text" /></td> </tr> <?php } add_filter( 'registration_errors', 'ra_extra_reg_errors', 10, 3 ); function ra_extra_reg_errors( $errors, $sanitized_user_login, $user_email ) { if ( empty( $_POST['first_name'] ) || ! empty( $_POST['first_name'] ) && trim( $_POST['first_name'] ) == '' ) { $errors->add( 'first_name_error', __( '<strong>ERROR</strong>: You must include a first name.', 'readingaustralia' ) ); } if ( empty( $_POST['last_name'] ) || ! empty( $_POST['last_name'] ) && trim( $_POST['last_name'] ) == '' ) { $errors->add( 'first_name_error', __( '<strong>ERROR</strong>: You must include a first name.', 'readingaustralia' ) ); } return $errors; } add_action( 'user_register', 'ra_user_register' ); add_action( 'profile_update', 'ra_user_register', 10, 2 ); function ra_user_register( $user_id ) { if ( ! empty( $_POST['first_name'] ) ) { update_user_meta( $user_id, 'first_name', trim( $_POST['first_name'] ) ); } if ( ! empty( $_POST['last_name'] ) ) { update_user_meta( $user_id, 'last_name', trim( $_POST['last_name'] ) ); } if ( ! empty( $_POST['organisation'] ) ) { update_user_meta( $user_id, 'organisation', trim( $_POST['organisation'] ) ); } if ( ! empty( $_POST['aboutyou'] ) ) { update_user_meta( $user_id, 'aboutyou', trim( $_POST['aboutyou'] ) ); } if ( ! empty( $_POST['state'] ) ) { update_user_meta( $user_id, 'state', trim( $_POST['state'] ) ); } if ( ! empty( $_POST['email_updates'] ) ) { update_user_meta( $user_id, 'email_updates', trim( $_POST['email_updates'] ) ); } else { delete_user_meta( $user_id, 'email_updates'); } do_action('readingaus_register'); } function tml_new_user_registered( $user_id ) { // do_action('readingaus_register'); wp_set_auth_cookie( $user_id, false, is_ssl() ); if (!empty($_POST['return'])) { wp_redirect($_POST['return']); } else { wp_redirect(home_url() . '/welcome'); } exit; } add_action( 'tml_new_user_registered', 'tml_new_user_registered' );
I’ve now managed to get the form in the theme directory to work when I remove the code from functions.php however it isn’t saving to the database properly (only email and password are saving).
I think the easiest thing to do may be to just redesign the form in funcitons.php to fit in both the registration page and the footer.
Is is possible to adjust the size and style for different screens by using @media or something similar?
Thanks again for your support.
Forum: Plugins
In reply to: [Theme My Login] Multiple registration forms for different parts of the site^why
Forum: Plugins
In reply to: [Theme My Login] 404 page not found if using variable on custom emailWith all due respect, patience is key.
I hope you fix your issue, but please don’t post in other threads because you’re too impatient!
Forum: Plugins
In reply to: [Theme My Login] Multiple registration forms for different parts of the siteThanks for your suggestion, Jeff.
But it appears that it still won’t call the file and that it is still calling the form from the functions.php file.
I tried removing the form from functions.php entirely and calling register-form.php instead and it still won’t work – it says ‘Register’ on the page but the form is not appearing below it.
I’m running out of ideas quickly here – unless there is an issue with my code (although it’s a duplicate form from the one in functions.php which was working fine).
What is your opinion about using functions.php instead of adding the form to the directory? Is there any advantage?
Thanks again
Forum: Plugins
In reply to: [Theme My Login] Multiple registration forms for different parts of the siteAlso I thought I might add that I’ve tried adding the form to pages using shortcodes too:
[theme-my-login default_action=”register” register_template=”register-form-f”]