رفتن به مطلب

درخواست افزونه ارسال نظرات کاربران


پست های پیشنهاد شده

سلام

بعضی قالب ها امکان ارسال دیدگاه در بعضی از جاها مثل نمونه کار ها رو ندارند

افزونه هست برای این کار که اضافه بشه ؟ مثل شورتکات ها ؟

سلام

میتونید قالبتون ویرایش کنید :

کد نظرات در قسمت های دیگه قالبتون که امکان نظر دادن داره پیدا کنید و در جایی که میخواهید استفاده کنید قرار بدید.

لینک به ارسال

لطفا قبل از ارسال ایپیک ابتدا کمی جستجو کنید قببلا به خیلی سوالات پاسخ داده شده


http://forum.wp-parsi.com/topic/86-%d8%a7%d8%b6%d8%a7%d9%81%d9%87-%da%a9%d8%b1%d8%af%d9%86-%d8%a8%d8%ae%d8%b4-%d9%86%d8%b8%d8%b1%d8%a7%d8%aa-%d8%a8%d9%87-%d9%82%d8%a7%d9%84%d8%a8/page__st__10#entry29681

این یک آموزش برای افزودن قسمت نظرات به قالب وردپرس

http://forum.wp-pars...ردپرس-قسمت-سوم/

لینک به ارسال

لطفا قبل از ارسال ایپیک ابتدا کمی جستجو کنید قببلا به خیلی سوالات پاسخ داده شده


http://forum.wp-parsi.com/topic/86-%d8%a7%d8%b6%d8%a7%d9%81%d9%87-%da%a9%d8%b1%d8%af%d9%86-%d8%a8%d8%ae%d8%b4-%d9%86%d8%b8%d8%b1%d8%a7%d8%aa-%d8%a8%d9%87-%d9%82%d8%a7%d9%84%d8%a8/page__st__10#entry29681

این یک آموزش برای افزودن قسمت نظرات به قالب وردپرس

http://forum.wp-pars...ردپرس-قسمت-سوم/

فرهاد جان آموزش ها یکم پیچیده بود برای من مبتدی

کسی در قبال هزینه برام انجام میده ؟

لینک به ارسال

شما باید یک فایل بنام کامنت بسازید و همون کدهایی لازمه رو داخلش قرار بدین و بعد تابع کامنت رو در هر کجا که بزارین نمایش داده میشه

تابع :


<?php comments_template(); ?>

همین

کار پیچیده اینیست

فایل کامنت هم قرار دادم دانلود کنید و داخل قالبتون بزاریدش

comments.php

لینک به ارسال

سلام

بعضی قالب ها امکان ارسال دیدگاه در بعضی از جاها مثل نمونه کار ها رو ندارند

افزونه هست برای این کار که اضافه بشه ؟ مثل شورتکات ها ؟

موقع ارسال پست میتونید تنظیم کنید.

پذیرفتن دیدگاه.

پذیرفتن بازتاب برای این برگه.

لینک به ارسال

شما باید یک فایل بنام کامنت بسازید و همون کدهایی لازمه رو داخلش قرار بدین و بعد تابع کامنت رو در هر کجا که بزارین نمایش داده میشه

تابع :


<?php comments_template(); ?>

همین

کار پیچیده اینیست

فایل کامنت هم قرار دادم دانلود کنید و داخل قالبتون بزاریدش

یه فایل comment.php داره که اینا توشه ، جایگزین کنم مال شمارو ؟



<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback which is
* located in the functions.php file.
*
* @package circles
* @since circles 1.0
*/

/*
* 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;
?>


<?php // You can start editing here -- including this comment! ?>

<?php if ( have_comments() ) : ?>
<section class='comments'>
<div class='comments-header'>
<h1><?php __('Comments','circles');?></h1>
<span class='number-of-comments'><?php _e('COMMENTS','circles');?> (<span><?php echo number_format_i18n(get_comments_number()); ?></span>)</span>
</div>
<div class='separator'>
<div></div>
</div>

<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use theme_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define theme_comment() and that will be used instead.
* See theme_comment() in inc/template-tags.php for more.
*/
wp_list_comments( array( 'callback' => 'ts_theme_comment' ) );
?>

<?php
$args = array(
'prev_text' => __('Previous','circles'),
'next_text' => __('Next','circles'),
);
paginate_comments_links($args);
?>
</section>
<?php endif; // have_comments() ?>

<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<section class='comments'>
<div class='comments-header'>
<h1><?php _e('Comments are closed.','circles');?></h1>
<span class='number-of-comments'><?php _e('COMMENTS','circles');?> (<span><?php echo number_format_i18n(get_comments_number()); ?></span>)</span>
</div>
<div class='separator'>
<div></div>
</div>
</section>
<?php endif; ?>

<section class='leave-comment'>
<?php
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );

$args = array(
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => __( 'Leave a Comment' ,'circles'),
'title_reply_to' => __( 'Leave a Comment to %s' ,'circles'),
'cancel_reply_link' => __( 'Cancel Comment' ,'circles'),
'label_submit' => __( 'SENT' ,'circles'),
'comment_field' => '
<div class="input-field text-area">
<div>
' . __( 'Comment', 'circles') . '
<span>('.__( 'required', 'circles' ).')</span>
</div>
<div class="input-style dlight-grey sc-input">
<textarea aria-required="true" rows="1" cols="1" name="comment" id="comment" ' . $aria_req . '></textarea>
</div>
</div>',
'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ,'circles' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>',
'logged_in_as' => '<div class="separator"><div></div></div><p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ,'circles'), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>',
'comment_notes_before' => '<div class="separator"><div></div></div>',
'comment_notes_after' => '<div><p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s', 'circles'), ' <code>' . allowed_tags() . '</code>' ) . '</p></div>',
'fields' => apply_filters( 'comment_form_default_fields',
array(
'author' => '
<div class="input-field">
<div>
' . __( 'Name', 'circles' ) . ' ' . ( $req ? '<span>('.__( 'required', 'circles' ).')</span>' : '' ) . '
</div>
<div class="input-style dlight-grey sc-input">
<input id="author" type="text" ' . $aria_req . ' size="20" value="' . esc_attr( $commenter['comment_author'] ) . '" name="author">
</div>
</div>',
'email' => '
<div class="input-field">
<div>
' . __( 'Email', 'circles' ) . ' ' . ( $req ? '<span>('.__( 'required', 'circles' ).')</span>' : '' ) . '
</div>
<div class="input-style dlight-grey sc-input">
<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="20"' . $aria_req . ' />
</div>
</div>'
)
)
);
comment_form($args); ?>
</section>

موقع ارسال پست میتونید تنظیم کنید.

پذیرفتن دیدگاه.

پذیرفتن بازتاب برای این برگه.

تو این قسمت نداره

ویرایش شده توسط aspirin
لینک به ارسال

اگر فایل کامنت داره نیاز به جایگزین نداره

فایل های کامنت فرق چندانی ندارند شما میتونین هر دو رو یک بار امتحان کنید و از هر کدوم که خوشتان امد از همون استفاده کنید

یک فایل کامنت داخل قالب داشته باشید و سپس تابع بالا را در هر جا که خواستین قرار بدین تا قسمت نظرات در همان محل به نمایش درآید

لینک به ارسال

در ضمن قوانین رو هم بخونید قالبتون رایگان نیست و بحث در موردش در انجمن ممنوعه

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

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