Advertisement
Guest User

Untitled

a guest
May 7th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.66 KB | None | 0 0
  1. ben kendi sitemde yaptigim login formunu göndereyim ,sen düzenlersin..
  2.  
  3.  
  4.  
  5. 1-temanin functions.php sine asagidaki kodu ekliyorsun...
  6.  
  7.  
  8. <?php
  9. function home_page_login_form() {
  10. global $current_user, $blog_id;
  11.  
  12. if ( ! is_user_logged_in() ) {
  13. ?>
  14.            
  15.  
  16.                 <h2>Member login</h2><br />
  17.                 <form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post" class="login">
  18.                     <table>
  19.                         <tr>
  20.                             <th><label for="email"> <?php _e('Username:') ?> </label></th>
  21.                             <td><input type="text" name="log" id="email" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" /></td>
  22.                         </tr>
  23.                         <tr>
  24.                             <th><label for="password"><?php _e('Password:') ?></label></th>
  25.                             <td><input type="password" name="pwd" id="password" value="" /></td>
  26.                         </tr><?php do_action('login_form'); ?>
  27.                         <tr>
  28.                             <td><!--  --></td>
  29.                             <td>
  30.                                 <input type="checkbox" id="remember" name="rememberme" value="forever" /> <label for="remember"><?php _e('Remember me'); ?></label>&nbsp;&nbsp;
  31.                                 <a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
  32.                                 <p class="buttons">
  33. <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="" />
  34.             </p>
  35.                             </td>
  36.                         </tr>
  37.                     </table><input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
  38.                 </form><?php
  39. } else {
  40. $username = $current_user->user_login;
  41. $siteurl= get_settings('siteurl');
  42. ?>
  43. <div>  
  44.  
  45. BURAYA ÜYELER GIRIS YAPTIKDAN SONRA LOGIN FORM YERINE NE GÖRÜNMESINI ISTIYORSAN EKLEYEBILIRSIN..
  46. <br />
  47. </div><?php
  48. }
  49. }
  50. ?>
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. 2-daha sonra temanda login formu kurmak istedigin yere asagidaki kodu ekliyorsun..
  58.  
  59.  
  60.  
  61. <?php home_page_login_form() ; ?>
  62.  
  63.  
  64.  
  65. 3-temanin style.css ini istedigin gibi düzenleyebilirsin,ben kendi style.css ime sunu ekledim
  66.  
  67. .login p{margin: 5px 0 !important; font-weight: bold;}
  68. .login table{width: 290px; margin-left: 3px; table-layout: fixed;}
  69.     .login th, .login td{font-weight: normal; padding-bottom: 7px; text-align: left;font-size: 11px;}
  70.     .login th{width: 59px;}
  71.         #email, #password{border: 1px solid #C2C2C2; width: 229px; height: 22px; line-height: 22px; font-size: 12px; position: relative;}
  72.     p.buttons{text-align: right;}
  73.     .login .button{margin-left: 6px; font-weight: normal !important;}
  74.  
  75.  
  76. umarim isine yarar...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement