رفتن به مطلب

استاد اعظم

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

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

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

  • روز های برد

    11

نوشته‌ها ارسال شده توسط استاد اعظم

  1. در 2 ساعت قبل، chem گفته است :

     

    سلام

    ممنونم از شما الان یه سری تغییر دادم بدون اون افزونه ای که معرفی فرمودید ارسال میشه منتهی به پوشه اسپم ایمیل ها وارد میشه! راه حل وارد نشدن ایمیل ها در پوشه اسپم چیه؟

    سرویس دهنده های ایمیل که شما براشون ایمیل ارسال میکنید اینطور تصور دارند که ایمیلی که براشون ارسال میکنید تبلیغاتی هست !

    راهی که به ذهن من میرسه استفاده از همون افزونه ای هست که معرفی کردم ، چون تعداد دفعات ارسال ایمیل بیشتر هست و از طریق سرور های گوگل ارسال میشه

    • امتیاز 1
  2. استفاده کردن از پرتکل SMTP باعث فشار به سرور میشه ، برای همین در پیکربندی سرور تعداد دفعات استفاده از این پرتکل محدود میشه !

    توصیه میشه برای ارسال ایمیل از پرتکل smtp جیمیل استفاده کنید که فکر میکنم تعداد دفعات استفاده در روز به 2000 برسه که برای این مورد میتونید افزونه زیر را نصب و استفاده کنید :

    http://wordpress.org/plugins/wp-mail-smtp

    • امتیاز 2
  3. سلام

    انتقال وردپرس وظیفه هر هاستینگی هست و باید بصورت رایگان انجام بده !

    اما اگه خواستید خودتون دستی انتقال بدید چند راه وجود داره که یکیش بصورت زیره :

    1- اکسپورت گرفتن از دیتابیس و ایمپورت کردنش در دیتابیس هاست جدید

    2- انتقال تمامی فایل ها و فلودر های هاست قبلی به هاست جدید

    3- جاگزین کردن اطلاعات اتصال به دیتابیس جدید در فایل wp-config.php

    • امتیاز 1
  4. عذر خواهی میکنم ، این یکی رو استفاده کنید :


    <?php
    // Do not delete these lines
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    if ( post_password_required() ) { ?>
    <p class="nocomments" ><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
    <?php
    return;
    }
    ?>
    <?php if ( have_comments() ) : ?>
    <h3 id="comments"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
    number_format_i18n( get_comments_number() ), '“' . get_the_title() . '”' ); ?></h3>
    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <ol class="commentlist">
    <?php wp_list_comments('avatar_size=50'); ?>
    </ol>
    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ( comments_open() ) : ?>
    <!-- If comments are open, but there are no comments. -->
    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments"><?php _e('Comments are closed.'); ?></p>
    <?php endif; ?>
    <?php endif; ?>
    <?php if ( comments_open() ) : ?>
    <div id="respond">
    <h3><?php comment_form_title( __('Leave a Reply'), __('Leave a Reply to %s' ) ); ?></h3>
    <div id="cancel-comment-reply">
    <small><?php cancel_comment_reply_link() ?></small>
    </div>
    <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p>
    <?php else : ?>
    <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( is_user_logged_in() ) : ?>
    <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>">
    <?php _e('Log out »'); ?></a></p>
    <?php else : ?>
    <p><input type="text" name="author" class="comment-field" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true' required"; ?> />
    <label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    <p><input type="email" class="comment-field" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true' required"; ?> />
    <label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    <p><input type="url" class="comment-field" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    <label for="url"><small><?php _e('Website'); ?></small></label></p>
    <?php endif; ?>
    <p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>
    <p><textarea name="comment" class="comment-field textarea" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    <p><input name="submit" type="submit" id="submit" tabindex="5" class="submit-button" value="<?php esc_attr_e('Submit Comment'); ?>" />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    <?php endif; // If registration required and not logged in ?>
    </div>
    <?php endif; // if you delete this the sky will fall on your head ?>

    • امتیاز 1
  5. خواهش میکنم ، لطف دارین

    برای سوالات جدید تاپیک جدید ایجاد کنید !

    شما باید یک فایل comments.php آماده را را استفاده کنید و کلاس های بوت استرپ را درش پیاده کنید ، نمونه فایل comments.php را در زیر میتونید استفاده کنید :


    <?php
    // Do not delete these lines
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    if ( post_password_required() ) { ?>
    <p class="nocomments" ><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
    <?php
    return;
    }
    ?>
    <?php if ( have_comments() ) : ?>
    <h3 id="comments"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
    number_format_i18n( get_comments_number() ), '“' . get_the_title() . '”' ); ?></h3>
    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <ol class="commentlist">
    <?php wp_list_comments(//"callback=CALLBACK_FUNCTION");?>
    </ol>
    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ( comments_open() ) : ?>
    <!-- If comments are open, but there are no comments. -->

    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments"><?php _e('Comments are closed.'); ?></p>
    <?php endif; ?>
    <?php endif; ?>
    <?php if ( comments_open() ) : ?>
    <div id="respond">
    <h3><?php comment_form_title( __('Leave a Reply'), __('Leave a Reply to %s' ) ); ?></h3>
    <div id="cancel-comment-reply">
    <small><?php cancel_comment_reply_link() ?></small>
    </div>
    <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p>
    <?php else : ?>
    <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( is_user_logged_in() ) : ?>
    <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>">
    <?php _e('Log out »'); ?></a></p>
    <?php else : ?>
    <p><input type="text" name="author" class="comment-field" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true' required"; ?> />
    <label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    <p><input type="email" class="comment-field" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true' required"; ?> />
    <label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    <p><input type="url" class="comment-field" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    <label for="url"><small><?php _e('Website'); ?></small></label></p>
    <?php endif; ?>
    <p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>
    <p><textarea name="comment" class="comment-field textarea" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    <p><input name="submit" type="submit" id="submit" tabindex="5" class="submit-button" value="<?php esc_attr_e('Submit Comment'); ?>" />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    <?php endif; // If registration required and not logged in ?>
    </div>
    <?php endif; // if you delete this the sky will fall on your head ?>

    • امتیاز 2
  6. این کد رو تو فایل functions.php بزارید :


    //page navi
    function wpbeginner_numeric_posts_nav() {
    if( is_singular() )
    return;
    global $wp_query;
    /** Stop execution if there's only 1 page */
    if( $wp_query->max_num_pages <= 1 )
    return;
    $paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1;
    $max = intval( $wp_query->max_num_pages );
    /** Add current page to the array */
    if ( $paged >= 1 )
    $links[] = $paged;
    /** Add the pages around the current page to the array */
    if ( $paged >= 3 ) {
    $links[] = $paged - 1;
    $links[] = $paged - 2;
    }
    if ( ( $paged + 2 ) <= $max ) {
    $links[] = $paged + 2;
    $links[] = $paged + 1;
    }
    echo '<nav><ul class="pagination">' . "\n";
    /** Previous Post Link */
    if ( get_previous_posts_link() )
    printf( '<li>%s</li>' . "\n", get_previous_posts_link() );
    /** Link to first page, plus ellipses if necessary */
    if ( ! in_array( 1, $links ) ) {
    $class = 1 == $paged ? ' class="active"' : '';
    printf( '<li%s><a href="%s">%s</a></li>' . "\n", $class, esc_url( get_pagenum_link( 1 ) ), '1' );
    if ( ! in_array( 2, $links ) )
    echo '<li><a>…</a></li>';
    }
    /** Link to current page, plus 2 pages in either direction if necessary */
    sort( $links );
    foreach ( (array) $links as $link ) {
    $class = $paged == $link ? ' class="active"' : '';
    printf( '<li%s><a href="%s">%s</a></li>' . "\n", $class, esc_url( get_pagenum_link( $link ) ), $link );
    }
    /** Link to last page, plus ellipses if necessary */
    if ( ! in_array( $max, $links ) ) {
    if ( ! in_array( $max - 1, $links ) )
    echo '<li><a>…</a></li>' . "\n";
    $class = $paged == $max ? ' class="active"' : '';
    printf( '<li%s><a href="%s">%s</a></li>' . "\n", $class, esc_url( get_pagenum_link( $max ) ), $max );
    }
    /** Next Post Link */
    if ( get_next_posts_link() )
    printf( '<li>%s</li>' . "\n", get_next_posts_link() );
    echo '</ul></nav>' . "\n";
    }
    //end page navi

    کد زیر را در جایی که میخواهید شماره صفحات به نمایش در بیاد بزارید :


    <?php wpbeginner_numeric_posts_nav(); ?>

    • امتیاز 1
  7. درود... lamp همون xammp هستش...مگه توی سیستم ویندوزی شما نصب نیست؟

    من مدتیه از توزیع گنو استفاده میکنم و اصلا ویندوز تو سیستمم نصب نیست !

    تگ ها و کلاس ها رو درست بکار نبرده بودید ، فایل index.html را براتون اصلاح کردم :

    http://s6.picofile.c...index.html.html

    • امتیاز 1
×
×
  • اضافه کردن...