babak50 1 ارسال شده در شهریور 92 گزارش بازنشر ارسال شده در شهریور 92 سلام. چطور می توانم متنی که در زیر فرم ارسال دیدگاه هست رو حذف کنم؟دنبال این عبارت در فایل comments.php هم گشتم نبود// This will occur when the comment is postedfunction plc_comment_post( $incoming_comment ) {// convert everything in a comment to display literally$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);// the one exception is single quotes, which cannot be #039; because WordPress marks it as spam$incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );return( $incoming_comment );}// This will occur before a comment is displayedfunction plc_comment_display( $comment_to_display ) {// Put the single quotes back in$comment_to_display = str_replace( ''', "'", $comment_to_display );دنبال اینم گشتم نبود<?php comment_form(); ?>اینم کدcomments.phpاگه میتونید کمکم کنیدممنون میشم<?phpif ( !empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) {die( __('Please do not load this page directly. Thanks!', 'arras') );}if ( post_password_required() ) {?> <h4 class="module-title"><?php _e('Password Required', 'arras') ?></h4> <?php_e('<p class="nocomments">This post is password protected. Enter the password to view comments.</p>', 'arras');return;}$comments_by_type = &separate_comments($comments); if ( have_comments() ) : ?><?php if ( !empty($comments_by_type['comment']) ) : ?> <h4 class="module-title"><?php comments_number( __('No Comments', 'arras'), __('1 Comment', 'arras'), _n('% ديدگاه', '% ديدگاه', get_comments_number(), 'arras') ); ?></h4> <ol id="commentlist" class="clearfix"> <?php wp_list_comments('type=comment&callback=arras_list_comments'); ?> </ol><?php endif; ?><div class="comments-navigation clearfix"> <?php paginate_comments_links() ?></div><?php if ( !empty($comments_by_type['pings']) ) : ?><h4 class="module-title"><?php _e('Trackbacks / Pings', 'arras') ?></h4><ol class="pingbacks"><?php wp_list_comments('type=pings&callback=arras_list_trackbacks'); ?></ol><?php endif; ?><?php else: ?> <?php if ('open' == $post->comment_status) : ?> <h4 class="module-title"><?php _e('No Comments', 'arras') ?></h4> <p class="nocomments"><?php _e('Start the ball rolling by posting a comment on this article!', 'arras') ?></p> <?php endif ?><?php endif; ?><?php if ('closed' == $post->comment_status) : if (!is_page()) : ?><h4 class="module-title"><?php _e('Comments Closed', 'arras') ?></h4><p class="nocomments"><?php _e('Comments are closed. You will not be able to post a comment in this post.', 'arras') ?></p><?php endif; else: ?><?php$req = get_option('require_name_email');$aria_req = ( $req ? ' aria-required="true"' : '' );$commenter = wp_get_current_commenter();comment_form( array( 'fields' => array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" class="required" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" class="required email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' . '<input id="url" class="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>' ), 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" class="required"></textarea></p>' ));?><?php endif ?>اینم یه پوسته دیگه است<?phpif ( !empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) { die( __('Please do not load this page directly. Thanks!', 'arras') );}if ( post_password_required() ) { ?> <h4 class="module-title"><?php _e('Password Required', 'arras') ?></h4> <?php _e('<p class="nocomments">This post is password protected. Enter the password to view comments.</p>', 'arras'); return;}$comments_by_type = &separate_comments($comments); if ( have_comments() ) : ?> <?php if ( !empty($comments_by_type['comment']) ) : ?> <h4 class="module-title"><?php comments_number( __('No Comments', 'arras'), __('1 Comment', 'arras'), _n('% ديدگاه', '% ديدگاه', get_comments_number(), 'arras') ); ?></h4> <ol id="commentlist" class="clearfix"> <?php wp_list_comments('type=comment&callback=arras_list_comments'); ?> </ol> <?php endif; ?> <div class="comments-navigation clearfix"> <?php paginate_comments_links() ?> </div> <?php if ( !empty($comments_by_type['pings']) ) : ?> <h4 class="module-title"><?php _e('Trackbacks / Pings', 'arras') ?></h4> <ol class="pingbacks"><?php wp_list_comments('type=pings&callback=arras_list_trackbacks'); ?></ol> <?php endif; ?><?php else: ?> <?php if ('open' == $post->comment_status) : ?> <h4 class="module-title"><?php _e('No Comments', 'arras') ?></h4> <p class="nocomments"><?php _e('Start the ball rolling by posting a comment on this article!', 'arras') ?></p> <?php endif ?><?php endif; ?><?php if ('closed' == $post->comment_status) : if (!is_page()) : ?> <h4 class="module-title"><?php _e('Comments Closed', 'arras') ?></h4> <p class="nocomments"><?php _e('Comments are closed. You will not be able to post a comment in this post.', 'arras') ?></p><?php endif; else: ?> <?php $req = get_option('require_name_email'); $aria_req = ( $req ? ' aria-required="true"' : '' ); $commenter = wp_get_current_commenter(); comment_form( array( 'fields' => array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" class="required" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" class="required email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' . '<input id="url" class="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>' ), 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" class="required"></textarea></p>' ) ); ?><?php endif ?>comments.php نقل قول لینک به ارسال
Farid 2281 ارسال شده در شهریور 92 گزارش بازنشر ارسال شده در شهریور 92 سلامنیاز به پیوست این همه کد نبود !شما این تکه کد رو در فایل functions.php بذارید .... اگر میخوایید می تونید متن دلخواهتون رو جاش بنویسید یا اینکه خالی بذارید تا اون متن پاک شهfunction comment_text_after($arg) { $arg['comment_notes_after'] = "متني که بعد از فرم ارسال ديدگاه مي آيد"; return $arg;}add_filter('comment_form_defaults', 'comment_text_after'); 3 نقل قول لینک به ارسال
TATAR 267 ارسال شده در شهریور 92 گزارش بازنشر ارسال شده در شهریور 92 اگه منظورتون همون که نوشته می تونید از html استفاده کنید هست، کافیه به استایل display:none اضافه کنید.همین 1 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .