Kodlamadan anlayan 2dk bakabilir mi?

'Soru Cevap' forumunda elegan tarafından 29 Aralık 2014 tarihinde açılan konu

  1. elegan

    elegan Kayıtlı Kullanıcı

    Selam arkadaşlar aşağıda kare ile gösterdiğim kısma bir buton eklemek istiyorumda aynı ''üyelik bilgilerini sil'' yazısı gibi onu bir sayfaya yönlendireceğim nasıl yapabilirim?

    [​IMG]
     
    Son düzenleme: 30 Aralık 2014
  2. okursan

    okursan Kayıtlı Kullanıcı

    resmi eklemediniz sanırım
     
  3. elegan

    elegan Kayıtlı Kullanıcı

    aww evet :D
     
  4. elegan

    elegan Kayıtlı Kullanıcı

    yardımcı olabilecek var mı?
     
  5. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    wordpress mi blogger mı
     
  6. elegan

    elegan Kayıtlı Kullanıcı

    wordpress abi
     
  7. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    bu gösterdiğin hangi sayfa kodları verebilmen mümkünse iyi olur
     
  8. elegan

    elegan Kayıtlı Kullanıcı

    usta bu userpro eklentisinin üyelik bilgileri sayfası muhtemelen bu olsa gerek;

    Kod:
    <div class="userpro userpro-<?php echo $i; ?> userpro-id-<?php echo $user_id; ?> userpro-<?php echo $layout; ?>" <?php userpro_args_to_data( $args ); ?>>
    
        <a href="#" class="userpro-close-popup"><?php _e('Close','userpro'); ?></a>
       
        <div class="userpro-centered <?php if (isset($header_only)) { echo 'userpro-centered-header-only'; } ?>">
       
            <?php if ( userpro_get_option('lightbox') && userpro_get_option('profile_lightbox') ) { ?>
            <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->profile_photo_url($user_id); ?>" class="userpro-tip-fade lightview" data-lightview-caption="<?php echo $userpro->profile_photo_title( $user_id ); ?>" title="<?php _e('View member photo','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
            <?php } else { ?>
            <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->permalink($user_id); ?>" title="<?php _e('View Profile','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
            <?php } ?>
            <div class="userpro-profile-img-after">
                <div class="userpro-profile-name">
                    <a href="<?php echo $userpro->permalink($user_id); ?>"><?php echo userpro_profile_data('display_name', $user_id); ?></a><?php echo userpro_show_badges( $user_id ); ?>
                </div>
                <?php do_action('userpro_after_profile_img' , $user_id); ?>
                <?php if ( userpro_can_edit_user( $user_id ) ) { ?>
                <div class="userpro-profile-img-btn">
                    <?php if (isset($header_only)){ ?>
                    <a href="<?php echo $userpro->permalink($user_id, 'edit'); ?>" class="userpro-button secondary"><?php _e('Edit Profile','userpro') ?></a>
                    <?php } else { ?>
                    <a href="#" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" data-template="edit" class="userpro-button secondary"><?php _e('Edit Profile','userpro'); ?></a>
                    <?php } ?>
                    <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
                </div>
                <?php } ?>
            </div>
           
            <div class="userpro-profile-icons top">
                <?php if (isset($args['permalink'])) {
                    userpro_logout_link( $user_id, $args['permalink'], $args['logout_redirect'] );
                } else {
                    userpro_logout_link( $user_id );
                } ?>
            </div>
               
            <?php echo $userpro->show_social_bar( $args, $user_id, 'userpro-centered-icons' ); ?>
    
            <div class="userpro-clear"></div>
               
        </div>
       
        <?php if (!isset($header_only)) { ?>
       
        <?php
        // action hook after user header
        if (!isset($args['disable_head_hooks'])){
            if (!isset($user_id)) $user_id = 0;
            $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
            do_action('userpro_after_profile_head', $hook_args);
        }
        ?>
       
        <div class="userpro-body">
       
            <?php do_action('userpro_pre_form_message'); ?>
    
            <form action="" method="post" data-action="<?php echo $template; ?>">
           
                <input type="hidden" name="user_id-<?php echo $i; ?>" id="user_id-<?php echo $i; ?>" value="<?php echo $user_id; ?>" />
               
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_before_fields', $hook_args);
                ?>
               
                <?php foreach( userpro_fields_group_by_template( $template, $args["{$template}_group"] ) as $key => $array ) { ?>
                   
                    <?php  if ($array) echo userpro_show_field( $key, $array, $i, $args, $user_id ) ?>
                   
                <?php } ?>
               
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_after_fields', $hook_args);
                ?>
               
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_before_form_submit', $hook_args);
                ?>
               
                <?php if ( userpro_can_delete_user($user_id) || $userpro->request_verification($user_id) || isset( $args["{$template}_button_primary"] ) || isset( $args["{$template}_button_secondary"] ) ) { ?>
                <div class="userpro-field userpro-submit userpro-column">
                   
                    <?php if ( $userpro->request_verification($user_id) ) { ?>
                    <input type="button" value="<?php _e('Request Verification','userpro'); ?>" class="popup-request_verify userpro-button secondary" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
                    <?php } ?>
                   
                    <?php if ( userpro_can_delete_user($user_id) ) { ?>
                    <input type="button" value="<?php _e('Delete Profile','userpro'); ?>" class="userpro-button red" data-template="delete" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
                    <?php } ?>
                   
                    <?php if (isset($args["{$template}_button_primary"]) ) { ?>
                    <input type="submit" value="<?php echo $args["{$template}_button_primary"]; ?>" class="userpro-button" />
                    <?php } ?>
                   
                    <?php if (isset( $args["{$template}_button_secondary"] )) { ?>
                    <input type="button" value="<?php echo $args["{$template}_button_secondary"]; ?>" class="userpro-button secondary" data-template="<?php echo $args["{$template}_button_action"]; ?>" />
                    <?php } ?>
    
                    <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
                    <div class="userpro-clear"></div>
                   
                </div>
                <?php } ?>
           
            </form>
       
        </div>
       
        <?php } ?>
    
     
  9. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    şöyle bir şey yapman mümkün mü "Üye Bilgilerini Sil" yazan butonu üstünde sağ tuş ögeyi denetle de çıkan pencereden butonun içinde olduğu divin adını yazarmısın
     
  10. elegan

    elegan Kayıtlı Kullanıcı

    şöyle abi;

    [​IMG]
     
  11. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    Kodları düzenledim. <!-- Buraya diğer buton eklendi--> diye yazı yazdım kodları içine oraya bakabilirsin. Yedek aldıktan sonra dene bakalım

    Kod:
    <div class="userpro userpro-<?php echo $i; ?> userpro-id-<?php echo $user_id; ?> userpro-<?php echo $layout; ?>" <?php userpro_args_to_data( $args ); ?>>
    
        <a href="#" class="userpro-close-popup"><?php _e('Close','userpro'); ?></a>
      
        <div class="userpro-centered <?php if (isset($header_only)) { echo 'userpro-centered-header-only'; } ?>">
      
            <?php if ( userpro_get_option('lightbox') && userpro_get_option('profile_lightbox') ) { ?>
            <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->profile_photo_url($user_id); ?>" class="userpro-tip-fade lightview" data-lightview-caption="<?php echo $userpro->profile_photo_title( $user_id ); ?>" title="<?php _e('View member photo','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
            <?php } else { ?>
            <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->permalink($user_id); ?>" title="<?php _e('View Profile','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
            <?php } ?>
            <div class="userpro-profile-img-after">
                <div class="userpro-profile-name">
                    <a href="<?php echo $userpro->permalink($user_id); ?>"><?php echo userpro_profile_data('display_name', $user_id); ?></a><?php echo userpro_show_badges( $user_id ); ?>
                </div>
                <?php do_action('userpro_after_profile_img' , $user_id); ?>
                <?php if ( userpro_can_edit_user( $user_id ) ) { ?>
                <div class="userpro-profile-img-btn">
                    <?php if (isset($header_only)){ ?>
                    <a href="<?php echo $userpro->permalink($user_id, 'edit'); ?>" class="userpro-button secondary"><?php _e('Edit Profile','userpro') ?></a>
                    <?php } else { ?>
                    <a href="#" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" data-template="edit" class="userpro-button secondary"><?php _e('Edit Profile','userpro'); ?></a>
                    <?php } ?>
                    <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
                </div>
                <?php } ?>
            </div>
          
            <div class="userpro-profile-icons top">
                <?php if (isset($args['permalink'])) {
                    userpro_logout_link( $user_id, $args['permalink'], $args['logout_redirect'] );
                } else {
                    userpro_logout_link( $user_id );
                } ?>
            </div>
              
            <?php echo $userpro->show_social_bar( $args, $user_id, 'userpro-centered-icons' ); ?>
    
            <div class="userpro-clear"></div>
              
        </div>
      
        <?php if (!isset($header_only)) { ?>
      
        <?php
        // action hook after user header
        if (!isset($args['disable_head_hooks'])){
            if (!isset($user_id)) $user_id = 0;
            $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
            do_action('userpro_after_profile_head', $hook_args);
        }
        ?>
      
        <div class="userpro-body">
      
            <?php do_action('userpro_pre_form_message'); ?>
    
            <form action="" method="post" data-action="<?php echo $template; ?>">
          
                <input type="hidden" name="user_id-<?php echo $i; ?>" id="user_id-<?php echo $i; ?>" value="<?php echo $user_id; ?>" />
              
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_before_fields', $hook_args);
                ?>
              
                <?php foreach( userpro_fields_group_by_template( $template, $args["{$template}_group"] ) as $key => $array ) { ?>
                  
                    <?php  if ($array) echo userpro_show_field( $key, $array, $i, $args, $user_id ) ?>
                  
                <?php } ?>
              
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_after_fields', $hook_args);
                ?>
              
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_before_form_submit', $hook_args);
                ?>
              
                <?php if ( userpro_can_delete_user($user_id) || $userpro->request_verification($user_id) || isset( $args["{$template}_button_primary"] ) || isset( $args["{$template}_button_secondary"] ) ) { ?>
                <div class="userpro-field userpro-submit userpro-column">
                  
                    <?php if ( $userpro->request_verification($user_id) ) { ?>
                    <input type="button" value="<?php _e('Request Verification','userpro'); ?>" class="popup-request_verify userpro-button secondary" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
                    <?php } ?>
                  
                    <?php if ( userpro_can_delete_user($user_id) ) { ?>
                    <input type="button" value="<?php _e('Delete Profile','userpro'); ?>" class="userpro-button red" data-template="delete" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
                    <?php } ?>
                   
                    <!-- Buraya diğer buton eklendi-->
                    <input type="button" value="Diğer buton" class="userpro-button red" style="float:right;"/>
                    <div style="clear:both;width:100%;height:1px"></div>
                    <!-- Buraya diğer buton eklendi-->
                   
                    <?php if (isset($args["{$template}_button_primary"]) ) { ?>
                    <input type="submit" value="<?php echo $args["{$template}_button_primary"]; ?>" class="userpro-button" />
                    <?php } ?>
                  
                    <?php if (isset( $args["{$template}_button_secondary"] )) { ?>
                    <input type="button" value="<?php echo $args["{$template}_button_secondary"]; ?>" class="userpro-button secondary" data-template="<?php echo $args["{$template}_button_action"]; ?>" />
                    <?php } ?>
    
                    <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
                    <div class="userpro-clear"></div>
                  
                </div>
                <?php } ?>
          
            </form>
      
        </div>
      
        <?php } ?>
    
     
  12. elegan

    elegan Kayıtlı Kullanıcı

    @Sanalgezgin57 abi buton oldu fakat sayfada aşağıdaki gibi kayama-bozulma var.

    [​IMG]
     
  13. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    <div style="clear:both;width:100%;height:1px"></div> şu kodu silebilirmisin
     
  14. elegan

    elegan Kayıtlı Kullanıcı

    hala aynı bir değişiklik oladı
     
  15. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    Kod:
        <!-- Buraya diğer buton eklendi-->
                    <input type="button" value="Diğer buton" class="userpro-button red" style="margin-left:200px;"/>
                    <!-- Buraya diğer buton eklendi-->
    bu kodu eski kod ile değiştirmisin
     
  16. elegan

    elegan Kayıtlı Kullanıcı

    yalnızca aşağıdaki gibi yakınlaştı diğer butona;

    [​IMG]
     
    Son düzenleme: 30 Aralık 2014
  17. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    kodları orjinal haline çevirip teamviewer bağlantısı verirmisin istersen böyle olmayacak sanırım
     
  18. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    pardon görmedim bilgileri
     
  19. elegan

    elegan Kayıtlı Kullanıcı

    kodları tekrar yedek ile değiştirdim, eğer meşgulseniz sizi daha fazla oyalamiyim
     
  20. Sanalgezgin57

    Sanalgezgin57 Kayıtlı Kullanıcı

    sorun değil tekrar düzenledim deneyebilirmisin.
    Kod:
    <div class="userpro userpro-<?php echo $i; ?> userpro-id-<?php echo $user_id; ?> userpro-<?php echo $layout; ?>" <?php userpro_args_to_data( $args ); ?>>
    
        <a href="#" class="userpro-close-popup"><?php _e('Close','userpro'); ?></a>
     
        <div class="userpro-centered <?php if (isset($header_only)) { echo 'userpro-centered-header-only'; } ?>">
     
            <?php if ( userpro_get_option('lightbox') && userpro_get_option('profile_lightbox') ) { ?>
            <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->profile_photo_url($user_id); ?>" class="userpro-tip-fade lightview" data-lightview-caption="<?php echo $userpro->profile_photo_title( $user_id ); ?>" title="<?php _e('View member photo','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
            <?php } else { ?>
            <div class="userpro-profile-img" data-key="profilepicture"><a href="<?php echo $userpro->permalink($user_id); ?>" title="<?php _e('View Profile','userpro'); ?>"><?php echo get_avatar( $user_id, $profile_thumb_size ); ?></a></div>
            <?php } ?>
            <div class="userpro-profile-img-after">
                <div class="userpro-profile-name">
                    <a href="<?php echo $userpro->permalink($user_id); ?>"><?php echo userpro_profile_data('display_name', $user_id); ?></a><?php echo userpro_show_badges( $user_id ); ?>
                </div>
                <?php do_action('userpro_after_profile_img' , $user_id); ?>
                <?php if ( userpro_can_edit_user( $user_id ) ) { ?>
                <div class="userpro-profile-img-btn">
                    <?php if (isset($header_only)){ ?>
                    <a href="<?php echo $userpro->permalink($user_id, 'edit'); ?>" class="userpro-button secondary"><?php _e('Edit Profile','userpro') ?></a>
                    <?php } else { ?>
                    <a href="#" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" data-template="edit" class="userpro-button secondary"><?php _e('Edit Profile','userpro'); ?></a>
                    <?php } ?>
                    <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
                </div>
                <?php } ?>
            </div>
         
            <div class="userpro-profile-icons top">
                <?php if (isset($args['permalink'])) {
                    userpro_logout_link( $user_id, $args['permalink'], $args['logout_redirect'] );
                } else {
                    userpro_logout_link( $user_id );
                } ?>
            </div>
             
            <?php echo $userpro->show_social_bar( $args, $user_id, 'userpro-centered-icons' ); ?>
    
            <div class="userpro-clear"></div>
             
        </div>
     
        <?php if (!isset($header_only)) { ?>
     
        <?php
        // action hook after user header
        if (!isset($args['disable_head_hooks'])){
            if (!isset($user_id)) $user_id = 0;
            $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
            do_action('userpro_after_profile_head', $hook_args);
        }
        ?>
     
        <div class="userpro-body">
     
            <?php do_action('userpro_pre_form_message'); ?>
    
            <form action="" method="post" data-action="<?php echo $template; ?>">
         
                <input type="hidden" name="user_id-<?php echo $i; ?>" id="user_id-<?php echo $i; ?>" value="<?php echo $user_id; ?>" />
             
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_before_fields', $hook_args);
                ?>
             
                <?php foreach( userpro_fields_group_by_template( $template, $args["{$template}_group"] ) as $key => $array ) { ?>
                 
                    <?php  if ($array) echo userpro_show_field( $key, $array, $i, $args, $user_id ) ?>
                 
                <?php } ?>
             
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_after_fields', $hook_args);
                ?>
             
                <?php // Hook into fields $args, $user_id
                if (!isset($user_id)) $user_id = 0;
                $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
                do_action('userpro_before_form_submit', $hook_args);
                ?>
             
                <?php if ( userpro_can_delete_user($user_id) || $userpro->request_verification($user_id) || isset( $args["{$template}_button_primary"] ) || isset( $args["{$template}_button_secondary"] ) ) { ?>
                <div class="userpro-field userpro-submit userpro-column">
                 
                    <?php if ( $userpro->request_verification($user_id) ) { ?>
                    <input type="button" value="<?php _e('Request Verification','userpro'); ?>" class="popup-request_verify userpro-button secondary" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
                    <?php } ?>
                 
                    <?php if ( userpro_can_delete_user($user_id) ) { ?>
                    <input type="button" value="<?php _e('Delete Profile','userpro'); ?>" class="userpro-button red" data-template="delete" data-up_username="<?php echo $userpro->id_to_member($user_id); ?>" />
                    <?php } ?>
                  
                    <input type="button" value="Diğer buton" class="userpro-button red" style="float:right">
                  
                    <?php if (isset($args["{$template}_button_primary"]) ) { ?>
                    <input type="submit" value="<?php echo $args["{$template}_button_primary"]; ?>" class="userpro-button" />
                    <?php } ?>
                 
                    <?php if (isset( $args["{$template}_button_secondary"] )) { ?>
                    <input type="button" value="<?php echo $args["{$template}_button_secondary"]; ?>" class="userpro-button secondary" data-template="<?php echo $args["{$template}_button_action"]; ?>" />
                    <?php } ?>
    
                    <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
                    <div class="userpro-clear"></div>
                 
                </div>
                <?php } ?>
         
            </form>
     
        </div>
     
        <?php } ?>
    
     

Bu Sayfayı Paylaş