Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ben kendi sitemde yaptigim login formunu göndereyim ,sen düzenlersin..
- 1-temanin functions.php sine asagidaki kodu ekliyorsun...
- <?php
- function home_page_login_form() {
- global $current_user, $blog_id;
- if ( ! is_user_logged_in() ) {
- ?>
- <h2>Member login</h2><br />
- <form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post" class="login">
- <table>
- <tr>
- <th><label for="email"> <?php _e('Username:') ?> </label></th>
- <td><input type="text" name="log" id="email" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" /></td>
- </tr>
- <tr>
- <th><label for="password"><?php _e('Password:') ?></label></th>
- <td><input type="password" name="pwd" id="password" value="" /></td>
- </tr><?php do_action('login_form'); ?>
- <tr>
- <td><!-- --></td>
- <td>
- <input type="checkbox" id="remember" name="rememberme" value="forever" /> <label for="remember"><?php _e('Remember me'); ?></label>
- <a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
- <p class="buttons">
- <input type="image" src="/wp-content/themes/levent/images/button-login.gif" alt="" class="button" style="border:0px;" name="wp-submit" id="wp-submit" value="<?php _e('Log In'); ?>" /><input type="image" src="/wp-content/themes/levent/images/button-signup.gif" alt="" class="button" style="border:0px;" value="" />
- </p>
- </td>
- </tr>
- </table><input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
- </form><?php
- } else {
- $username = $current_user->user_login;
- $siteurl= get_settings('siteurl');
- ?>
- <div>
- BURAYA ÜYELER GIRIS YAPTIKDAN SONRA LOGIN FORM YERINE NE GÖRÜNMESINI ISTIYORSAN EKLEYEBILIRSIN..
- <br />
- </div><?php
- }
- }
- ?>
- 2-daha sonra temanda login formu kurmak istedigin yere asagidaki kodu ekliyorsun..
- <?php home_page_login_form() ; ?>
- 3-temanin style.css ini istedigin gibi düzenleyebilirsin,ben kendi style.css ime sunu ekledim
- .login p{margin: 5px 0 !important; font-weight: bold;}
- .login table{width: 290px; margin-left: 3px; table-layout: fixed;}
- .login th, .login td{font-weight: normal; padding-bottom: 7px; text-align: left;font-size: 11px;}
- .login th{width: 59px;}
- #email, #password{border: 1px solid #C2C2C2; width: 229px; height: 22px; line-height: 22px; font-size: 12px; position: relative;}
- p.buttons{text-align: right;}
- .login .button{margin-left: 6px; font-weight: normal !important;}
- umarim isine yarar...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement