رفتن به مطلب

bklink

عضو سایت
  • تعداد ارسال‌ها

    10
  • تاریخ عضویت

  • آخرین بازدید

نوشته‌ها ارسال شده توسط bklink

  1. سلام چطور داخل وردپرس این امکان رو که پسورد تصادفی به ایمیل ها ارسال می شه رو از بین ببریم تا هنگام ثبت نام کاربرها خودشون پسورد رو انتخاب کنند؟

    افزونه ای چیزی داره؟ لطفاً کمک کنید.

  2. سلام خسته نباشید. وردپرس بنده از امروز صبح بی دلیل از منابع زیادی استفاده می کنه. فقط اینو بگم یکی دو روز پیش افزونه pro-vip رو نصب کردم فقط. و طی 24 ساعت گذشته حدود 140 تا ایمیل هم از وردپرس برای اعلانیه ثبت نام کاربران برام ایمیل شده.

     روی سایت افزونه اضافی نصب نیست.
    حملات DDOS هم نشده.
    روی قالب هم فشار زیادی نیست!
    بازدید آنچنانی هم نیست سایت دان بشه، الان روزانه 5000 تا آی پی هستش، اما 20000 تا هم بوده مشکلی نبوده.

    این هم بعضی از ارور های فایل Erroe_Log

    [13-May-2016 09:50:20 UTC] PHP Fatal error:  Out of memory (allocated 81788928) (tried to allocate 72 bytes) in /home/hidiarie/public_html/wp-includes/wp-db.php on line 1780
    [13-May-2016 09:50:20 UTC] PHP Fatal error:  Out of memory (allocated 114819072) (tried to allocate 116 bytes) in /home/hidiarie/public_html/wp-includes/option.php on line 189
    [13-May-2016 09:50:20 UTC] PHP Fatal error:  Out of memory (allocated 104595456) (tried to allocate 71 bytes) in /home/hidiarie/public_html/wp-includes/option.php on line 188
    [13-May-2016 10:34:31 UTC] PHP Fatal error:  Out of memory (allocated 9437184) (tried to allocate 7680 bytes) in /home/hidiarie/public_html/wp-includes/class-wp-user-query.php on line 792
    [13-May-2016 13:19:35 UTC] PHP Parse error:  syntax error, unexpected '}' in /home/hidiarie/public_html/wp-content/themes/hidiaries/functions.php on line 46
    

    چکار باید کرد؟

  3. <?php
    add_theme_support( 'post-thumbnails' );
    add_action( 'wp_enqueue_scripts', 'onlinewebsite_script_enqueuer' );
    function onlinewebsite_script_enqueuer() {
       wp_enqueue_script( 'jquery' );
       wp_register_script( "wp_onlinewebsite_js", get_bloginfo('template_directory').'/js/plugins.js', array('jquery') );
       wp_enqueue_script('wp_onlinewebsite_js');
    }
    require_once get_template_directory() . '/onlinewebsite/theme.php';
    function twentyfifteen_widgets_init() {
    	register_sidebar( array(
    		'name'          => 'ابزارک کنار سایت',
    		'id'            => 'sidebar-1',
    		'description'   => 'ابزارک های مورد نظر را در این قسمت قرار دهید',
    		'before_widget' => '<section id="%1$s" class="widget aside collapse %2$s">',
    		'after_widget'  => '</section>',
    		'before_title'  => '<div class="title"><h3>',
    		'after_title'   => '</h3></div>',
    	) );
    }
    add_action( 'widgets_init', 'twentyfifteen_widgets_init' );
    function onlinewebsite_theme_comment($comment, $args, $depth) { // print_r($comment);
         ?>
        <div <?php comment_class( ( $depth==1 ) ? 'commentset' : 'comment-childs chalt' ) ?> id="comment-<?php comment_ID() ?>">
        <header>
         <h4><?php printf( __( '<div class="name">%s</div>' ), get_comment_author_link() ); ?>
         <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ); ?>">
         <?php printf( __('<span class="time"><time datetime=" %1$s"> %2$s at %3$s </time></span>'), get_comment_date(),  get_comment_date(),get_comment_time() ); ?></a>
            <?php edit_comment_link( __( '(Edit)' ), '  ', '' ); ?>
    <div class="clear"></div></h4>
    	</header>
            <?php if ( $comment->comment_approved == '0' ) : ?>
             <em class="comment-awaiting-moderation">نظر شما منتظر تایید مدیر سایت می باشد</em>
              <br />
        <?php endif; ?>
        <div class="comment-text"><?php comment_text(); ?>
    <p class="thdrpy"> <?php comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?></p>
    <div class="clear"></div></div>
    <?php if(empty( $args['has_children'])) echo ''; ?>
        <?php
        }
    add_action( 'post_submitbox_minor_actions', 'onlinewebsite_post_submitbox_minor_actions' );
    function onlinewebsite_post_submitbox_minor_actions(){ global $post;
        ?>  <div style="clear: both"></div>
        <script>
    jQuery( document ).on( 'click', '.ow_ajax_up', function() {
    jQuery('#action_up_status').html( 'در حال به روز رسانی' );
    jQuery.ajax({
    		url : ajaxurl,
    		type : 'post',
        	data : {
        	    updateid: <?php echo $post->ID;?>,
    			action : 'onlinewebsite_post_ajax_update',
    		},
    		success : function( response ) {
                jQuery('#action_up_status').html( response );
                setTimeout(function(){ jQuery('#action_status').html( '' ); }, 2000);
    		}
    	});
    	return false;
    })
        </script>
        <div style="text-align: center;"><br><a href="#"  class="button button-primary button-large ow_ajax_up">به روز رسانی تاریخ پست</a> </div>
        <div style="text-align: center;" id="action_up_status"></div>
        <?php
    }
    add_action( 'wp_ajax_onlinewebsite_post_ajax_update', 'onlinewebsite_post_ajax_update' );
    function onlinewebsite_post_ajax_update(){
      global $wpdb;
      $ow_updateid = $_POST['updateid'];
      $update = $wpdb->update(  $wpdb->prefix . 'posts', array( 'post_date' => current_time( 'mysql' )), array( 'ID' => $ow_updateid ) );
      if($update>0){
        $uppm = '<span style="color: #42A81A">پست مورد نظر به روز شد</span>';
      }else{
        $uppm = '<span style="color: #E0004B">خطا در اجرای عملیات</span>';
      }
       if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
          echo $uppm;
       }
       else {
         ob_start();
          header("Location: ".get_bloginfo('url'));
       }
       die();
    }
    add_filter( 'post_row_actions', 'wp_onlinewebsite_row_actions', 10, 2 );
    function wp_onlinewebsite_row_actions( $actions, WP_Post $post ) {
        $actions['wpse8170-pdf'] = '<a href="#" upid="'.$post->ID.'" class="ow_ajax_up">به روز سانی</a>';
        return $actions;
    }
    add_action( 'admin_footer-edit.php', 'ow_ajax_post_edit_page_footer' );
    
    function ow_ajax_post_edit_page_footer(){
     ?>
    <script>
    jQuery( document ).on( 'click', '.ow_ajax_up', function() {
    jQuery('#action_up_status').html( 'در حال به روز رسانی' );
    jQuery.ajax({
    		url : ajaxurl,
    		type : 'post',
        	data : {
        	    updateid: jQuery(this).attr('upid'),
    			action : 'onlinewebsite_post_ajax_update',
    		},
    		success : function( response ) {
                alert( jQuery(response).text() );
            }
    	});
    	return false;
    })
        </script>
     <?php
    }
    ?>

     

  4. سلام یهو بدون هیچ دلیلی قست آپلود عکس وردپرس داخل پست ها از بین رفته و قسمتی برای آپلود عکس وجود نداره میدونم از بخش رسانه میشه عکس اضافه کرد اما چی کار کنم قسمت آپلود تصاویر شاخص به داخل پست ها اضافه بشه؟
    قتی روی اضافه کردن تصویر شاخص می زنم توی پنجره جدید، قسمت بارگذاری تصویر از بین رفته! عکس رو پیوست کردم لطفاً کمک کنید
     

    MSHE1.jpg

  5. آقا بیچاره شدم کمککککککککککککک!!!!!!!!!!!!!!!!!!

    الان آدرس قبلی بنده فیلتر شد و از قبل 3 تا دامنه روی اون ریدایرکت بود .حالا چطور می تونم از گوگل وبمستر دامنه ای که تازه فیلتر شده و روش قبلاً 3 تا دامنه دیگه ریدایرکت بود رو به آدرس جدید ریدایرکپت 301 بکنم؟ دامنه های قبلی هم اکسپایر شدن، وقتی به Change of Addres دامنه تازیه فیلتر شده میرم میرم پیغامی رو میده که پیوست کردم و نمیزاره ریدایرکت 301 بکنم. چاره چیه؟
    واقعاً نیاز دارم به جواب این سوال دعا می کنم جواب بدید.

    ssdf.jpg

×
×
  • اضافه کردن...