Arkadaşlar herkese merhabalar. Öncelikle konuya (php) daha yeni başladığımı belirterek başlayayım. Sonrasında ise bir wordpress site denemesi yapmak istedim. TML isimli plugging ile siteye giriş yaptırıcam kullanıcılara. Lakin bir de site kullanım koşulları eklemek istedim. bir check box koyup checked olmadan summit yapamasın kullanıcı istedim. Ama bir türlü olmadı. Kodu altta veriyorum.
Bu default gelen kod. Submit ten hemen önceki satıra checkbox ekleyip label a da kullanım koşulları yazdım. Sonrasında tiklenmiş ise submit çalışsın aksi takdirde label daki yazı değişip şartları kabul etmediniz falan gibi bir uyarı yazsın ve kaydı kabul etmesin istedim ama beceremedim. Yardımcı olabilecek var mı acaba şu kodları toparlamama?
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.
<div class="tml tml-register" id="theme-my-login<?php $template->the_instance(); ?>">
<?php $template->the_action_template_message( 'register' ); ?>
<?php $template->the_errors(); ?>
<form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register', 'login_post' ); ?>" method="post">
<?php if ( 'email' != $theme_my_login->get_option( 'login_type' ) ) : ?>
<p class="tml-user-login-wrap">
<label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ); ?></label>
<input type="text" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_login' ); ?>" size="20" />
</p>
<?php endif; ?>
<p class="tml-user-email-wrap">
<label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'E-mail', 'theme-my-login' ); ?></label>
<input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="20" />
</p>
<p>
<label for="first_name<?php $template->the_instance(); ?>"><?php _e( 'Adı', '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( 'first_name' ); ?>" size="20" tabindex="20" />
</p>
<p>
<label for="last_name<?php $template->the_instance(); ?>"><?php _e( 'Soyadı', '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( 'last_name' ); ?>" size="20" tabindex="20" />
</p>
<?php do_action( 'register_form' ); ?>
<p class="tml-registration-confirmation" id="reg_passmail<?php $template->the_instance(); ?>"><?php echo apply_filters( 'tml_register_passmail_template_message', __( 'Registration confirmation will be e-mailed to you.', 'theme-my-login' ) ); ?></p>
<p class="tml-submit-wrap">
<input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php esc_attr_e( 'Register', 'theme-my-login' ); ?>" />
<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'register' ); ?>" />
<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
<input type="hidden" name="action" value="register" />
</p>
</form>
<?php $template->the_action_links( array( 'register' => false ) ); ?>
</div>
Bu default gelen kod. Submit ten hemen önceki satıra checkbox ekleyip label a da kullanım koşulları yazdım.
Sonrasında tiklenmiş ise submit çalışsın aksi takdirde label daki yazı değişip şartları kabul etmediniz falan gibi bir uyarı yazsın ve kaydı kabul etmesin istedim ama beceremedim. Yardımcı olabilecek var mı acaba şu kodları toparlamama?
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.