::AmiR:: 258 ارسال شده در شهریور 94 گزارش بازنشر ارسال شده در شهریور 94 سلام و خدا قوتعذرخواهی میکنم یه مدتی هست نمیدونم چرا وقتی کاربران برای مطالب دیدگاه منتشر می کنند پیغام " دیدگاه شما در دست بررسی است " براشون نشون داده نیمشه !!! اینجوری کاربر فکر میکنه چیزی دریافت نشده در صورتی که من توی بخش دیدگاه ها پیامش رو میبینم.کد بخش دیدگاه های من<div id="commentbox"><?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p></div><!-- #comments --><?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ return; endif;?><?php // You can start editing here -- including this comment! ?><?php if ( have_comments() ) : ?> <h5 id="comments-title"> <?php comments_number(); ?> </h5> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-above"> <h5 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h5> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> </nav> <?php endif; // check for comment navigation ?> <ol class="commentlist"> <?php /* Loop through and list the comments. Tell wp_list_comments() * to use twentyeleven_comment() to format the comments. * If you want to overload this in a child theme then you can * define twentyeleven_comment() and that will be used instead. * See twentyeleven_comment() in twentyeleven/functions.php for more. */ wp_list_comments( array( 'callback' => '' ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below"> <h5 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h5> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> </nav> <?php endif; // check for comment navigation ?><?php /* If there are no comments and comments are closed, let's leave a little note, shall we? * But we don't want the note on pages or post types that do not support comments. */ elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :?> <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyeleven' ); ?></p><?php endif; ?><form class="replyform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"><?php$commenter = wp_get_current_commenter();$fields = array( 'author' => '<div id="comment_input"><p><label for="author">نام *</label><br /><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />' . '</p>', 'email' => '<p><label for="email">ايميل *</label><br /> <input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />' . '</p>', '</p></div>',);$defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ),);comment_form($defaults);?></div><!-- #comments -->البته بنده با کد زیر فیلد ایمیل و سایت رو حذف کردمfunction remove_comment_fields($fields) { unset($fields['email']); unset($fields['url']); return $fields;}add_filter('comment_form_default_fields', 'remove_comment_fields');ممنون مشم در این خصوص کمکم کنید. نقل قول لینک به ارسال
::AmiR:: 258 ارسال شده در دی 94 مالک گزارش بازنشر ارسال شده در دی 94 ببخشید از اساتید کسی نمیتونه پیشنهادی بده که مشکل من رفع بشهه نقل قول لینک به ارسال
فرشاد گوهری 1681 ارسال شده در دی 94 گزارش بازنشر ارسال شده در دی 94 (ویرایش شده) سلام دوست عزیز من هم در سایتم وارد کردن ایمیل در نظرات رو به صورت دلخواه قرار دادم و متوجه شدم کاربرانی که ایمیلشون رو وارد میکنن هنگام ارسال نظر پیغام ( دیدگاه شما در انتظار بررسی است ) براشون به درستی نمایش داده میشه ولی کاربرانی که ایمیلشون رو وارد نمیکنن این پیغام رو بعد از ارسال نظر مشاهده نمیکنن. احتمالا مشکل شما هم به همین دلیله، چون وقتی فیلد ایمیل رو حذف کنید دیگه هنگام ارسال نظر ایمیلی درج نمیشه و در نتیجه پیغام در انتظار بررسی هم نمایش داده نمیشه ! یکبار اون کد رو حذف کنید و ایمیل رو درج کنید و یک نظر به صورت تست بفرستید، ببینید مشکل حل میشه ؟ ویرایش شده دی 94 توسط فرشاد 1 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .