Saabana
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: "This web page has a redirect loop" errorTry to include www. in your domain
Forum: Plugins
In reply to: [Camera slideshow] [Plugin: Camera slideshow] Align the tumbs leftchange this in camera_front.css line 212
to.camera_wrap .camera_pag .camera_pag_ul { list-style: none; margin: 0; padding: 0; text-align: left; }
in step 2/ go to services turn on google maps API v3 only.
remember to 3/go to API Access and delete all key in there.
4/ Create new Browser key…copy and paste your new API key
and wait like 2 minutes, now map should loadcopy and paste your new API key
and now map should loadSolved
hello
I add some extra fields ` <p>
<label for=”first_name”><?php _e( ‘First name’, ‘theme-my-login’ ) ?></label>
<input type=”text” name=”first_name” id=”first_name<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘user_first_name’ ); ?>” size=”20″ maxlength=”255″ alt=”First Name” />
</p>
<p><label for=”last_name”><?php _e( ‘Last name’, ‘theme-my-login’ ) ?></label>
<input type=”text” name=”last_name” id=”last_name<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘user_last_name’ ); ?>” size=”20″ maxlength=”255″ alt=”Last Name” />
</p>
<p>
<label for=”user_phone<?php $template->the_instance(); ?>”><?php _e( ‘Phone’, ‘theme-my-login’ ) ?></label>
<input type=”text” name=”user_phone” id=”user_phone<?php $template->the_instance(); ?>” class=”input” value=”<?php $template->the_posted_value( ‘user_phone’ ); ?>” size=”20″ />
</p>and also I Create /wp-content/plugins/theme-my-login-custom.php and add some code to it.
<?php
function registration_errors( $errors ) {
if ( empty( $_POST[‘user_phone’] ) )
$errors->add( ’empty_phone’, ‘<strong>ERROR</strong>: Please enter your phone number.’ );
return $errors;
}
add_action( ‘registration_errors’, ‘registration_errors’ );function tml_new_user_registered( $user_id ) {
update_user_meta( $user_id, ‘user_phone’, $_POST[‘user_phone’] );
}
add_action( ‘tml_new_user_registered’, ‘tml_new_user_registered’ );?>`
and still didn’t get the field working for store data in profile form and error when left my phone empty
and thanks for this plugin