mojtaba72 0 ارسال شده در اردیبهشت 95 گزارش بازنشر ارسال شده در اردیبهشت 95 سلام خسته نباشید یه مشکل من اینه که وقتی کاربر وارد سایت میشه و کامنت میگذاره بعد از ارسال کامنتش اون پیغامی که میگه کامنت در انتظار بررسیه رو نشون نمیده! یعنی طرف کامنت گذاشته و کامنتش ثبت شده و از پنل میشه دید اما خودش چیزی نمیبینه و فکر میکنه که کامنتش ثبت نشده تا وقتی که تایید بشه همه پلاگینها رو هم غیرفعال کردم بازم مشکل حل نشد! این کدهای کامنت <?php /** * The template for displaying Comments */ /* * If the current post is protected by a password and the visitor has not yet * entered the password we will return early without loading the comments. */ if ( post_password_required() ) { return; } ?> <!-- start:article-comments --> <section id="comments"> <?php if ( have_comments() ) : ?> <header> <h2><?php printf( _n( '1 Comment', '%1$s Comments', get_comments_number(), THEMENAME ), number_format_i18n( get_comments_number() ) ); ?></h2> <span class="borderline"></span> </header> <ol id="comments-list"> <?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 75, 'callback' => 'miptheme_comments_callback', 'walker' => new MipTheme_Walker_Comment ) ); ?> </ol><!-- .comment-list --> <div class="comment-pagination"> <?php paginate_comments_links(); ?> </div> <?php endif; // have_comments() ?> </section> <!-- end:article-comments --> <!-- start:article-comments-form --> <section id="article-comments-form"> <?php $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $fields = array( 'author' => '<div class="row bottom-margin"> <div class="col-sm-4"> <span class="comment-req-wrap needsclick"><input class="form-control" id="author" name="author" placeholder="' . __('Name:', THEMENAME) . '" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />' . ( $req ? '</span>' : '' ) . ' </div>', 'email' => ' <div class="col-sm-4"> <span class="comment-req-wrap needsclick"><input class="form-control" id="email" name="email" placeholder="' . __('Email:', THEMENAME) . '" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />' . ( $req ? '</span>' : '' ) . ' </div>', 'url' => ' <div class="col-sm-4"> <input class="form-control" id="url" name="url" placeholder="' . __('Website:', THEMENAME) . '" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" />' . ' </div> </div>', ); $defaults = array( 'fields' => apply_filters('comment_form_default_fields', $fields ), ); $defaults['comment_field'] = '<div class="row bottom-margin"> <div class="col-md-12"> <textarea class="form-control needsclick" placeholder="' . __('Comment:', THEMENAME) . '" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea> </div> </div>'; $defaults['comment_notes_before'] = ''; $defaults['comment_notes_after'] = ''; $defaults['title_reply'] = __('Leave a Reply', THEMENAME); $defaults['label_submit'] = __('Post Comment', THEMENAME); $defaults['cancel_reply_link'] = __('Cancel reply', THEMENAME); comment_form($defaults); ?> </section> <!-- end:article-comments-form --> <?php /** * Custom callback for outputting comments */ function miptheme_comments_callback( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; if ( $comment->comment_approved == '1' ) { ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <div class="comment" id="comment-<?php comment_ID(); ?>"> <?php echo get_avatar( $comment->comment_author_email, 75 ); ?> <div class="comment-text"> <header> <h5 class="pull-left"><?php comment_author_link() ?></h5> <span class="time-stamp"><?php comment_date() ?> <?php _e('at', THEMENAME) ?> <?php comment_time() ?></span> <?php comment_reply_link(array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __('Reply <span>↓</span>', THEMENAME), 'login_text' => __('Log in to leave a comment <span>↓</span>', THEMENAME), 'before' => '<span class="reply pull-right">', 'after' => '</span>' ))) ?> </header> <?php comment_text(); ?> </div> </div> </li> <?php } } ?> فقط اگه این خط 'callback' => 'miptheme_comments_callback', (که آخر کامنت تعریف میشه) رو حذف کنم نشون میده که دیدگاه در انتظار بررسیه اما استایلش کلا بهم میریزه و دیگه نمیشه بهش استایل داد نقل قول لینک به ارسال
Mehdi7000 1 ارسال شده در اردیبهشت 95 گزارش بازنشر ارسال شده در اردیبهشت 95 سلام و احترام و تبریک خدمت شما بخاطر وقت گذاردن برای کابران بله ما هم همین مشکل رو داریم اگر راهنمایی بفرمایید سپاسگذاریم به ما حتما سری بزنید http://Agahi90.ir 1 نقل قول لینک به ارسال
mojtaba72 0 ارسال شده در اردیبهشت 95 مالک گزارش بازنشر ارسال شده در اردیبهشت 95 UP نقل قول لینک به ارسال
mojtaba72 0 ارسال شده در اردیبهشت 95 مالک گزارش بازنشر ارسال شده در اردیبهشت 95 (ویرایش شده) بچه ها کسی نمیتونه مشکل مارو حل کنه؟!! @imanfakhar ویرایش شده اردیبهشت 95 توسط mojtaba72 نقل قول لینک به ارسال
mojtaba72 0 ارسال شده در اردیبهشت 95 مالک گزارش بازنشر ارسال شده در اردیبهشت 95 Upppppp نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .