رفتن به مطلب

مشکل در ارسال پاسخ قسمت نظرات


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

سلام به همه ی دوستان گل

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

35726623752496024352.png

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

کد قسمت کامنت تو استایل هم آماده کردم که دوستان لطف کنن بگن کجاشو تغییر بدم این مشکل حل بشه . پیشاپیش ممنون از کمکتون !


/* ------------------------------------------------------------------------- *
* COMMENTS *
* ------------------------------------------------------------------------- */
#comments { background: #effbfd; margin-top: -6px; padding-top: 6px; padding-bottom: 20px; width: 620px; -moz-box-shadow: 0 0 6px rgba(0,0,0,0.25); -webkit-box-shadow: 0 0 6px rgba(0,0,0,0.25); box-shadow: 0 0 6px rgba(0,0,0,0.25); }
#comments-title { background: url(img/v-sprite.png) no-repeat -200px 0; padding-left: 46px; color: #333; font-family:Mj_Tye; font-size: 25px; letter-spacing: -0.7px; font-weight: bold; line-height: 32px; margin: 30px 30px 20px 30px; text-shadow: 0 1px 0 #fff; }
#comments-title span { color: #888; font-family:Mj_Typographer; font-weight: normal; padding-left: 10px; }
ol.commentlist { margin: 0 25px; }
/* ---- COMMENTS : BASE ---- */
ol.commentlist li { }
ol.commentlist li .comment-body { background: #fff; border: 1px solid #dfdfdf; clear: both; overflow: auto; padding: 20px 90px 20px 20px; margin: 0 0 10px 0; position: relative; font: 100%/1.5 Arial,sans-serif; text-rendering: optimizeLegibility; }
ol.commentlist li .comment-body .comment-author { float: right; margin-bottom: 6px; }
ol.commentlist li .comment-body cite.fn { color: #444; font-weight: bold; font-size: 16px; font-style: normal; line-height: 22px; }
ol.commentlist li .comment-body cite.fn a { color: #227793; }
ol.commentlist li .comment-body cite.fn a:hover { color: #444; }
ol.commentlist li .comment-body span.says { display: none; }
ol.commentlist li .comment-body em.comment-awaiting-moderation { font-size: 12px; margin-right: 10px; color: #227793; font-family:Mj_Dalal; font-style: normal; }
ol.commentlist li .comment-body img.avatar { position: absolute; right: 20px; top: 20px; width: 50px; height: 50px; }
ol.commentlist li .comment-body .comment-meta { float: left; margin-bottom: 6px; margin-left: 10px; font-family:Mj_Sayeh-1; font-size: 12px; line-height: 24px; }
ol.commentlist li .comment-body .comment-meta a { color: #666; }
ol.commentlist li .comment-body .comment-meta a.comment-edit-link { text-decoration: none; }
ol.commentlist li .comment-body .comment-meta a.comment-edit-link:hover { color: #3992cb; }
ol.commentlist li .comment-body p { font-family:Mj_Aref; font-size: 14px; margin-bottom: 1.5em; color: #666; clear: both; }
ol.commentlist li .comment-body .reply { position: absolute; bottom: 0; right: 0; }
ol.commentlist li .comment-body .reply a { background: #f9f9f9; border-top: 1px solid #1f97a9; border-left: 1px solid #e8e8e8; display: block; font-size: 11px; color: #227793; line-height: 22px; padding: 0 8px; -moz-border-radius: 0 4px 0 0; -webkit-border-radius: 0 4px 0 0; border-radius: 0 4px 0 0; }
ol.commentlist li .comment-body .reply a:hover { color: #444; border-color: #ddd; }
ol.commentlist li.bypostauthor .comment-body { background-image: url(img/postauthor.png); background-repeat: no-repeat; background-position: top left; }
ol.commentlist li.bypostauthor li .comment-body { background-image: none; }
ol.commentlist li.bypostauthor ul.children li.bypostauthor .comment-body { background-image: url(img/postauthor.png); }
/* pingback difference */
ol.commentlist li.pingback .comment-body { padding: 20px; }
ol.commentlist li.pingback .comment-body .comment-author { margin-bottom: 0; display: block; float: none; }
ol.commentlist li.pingback .comment-body .comment-meta { margin-left: 0; display: block; float: none; }
ol.commentlist li.pingback .comment-body p { margin: 0; }
ol.commentlist li.pingback span.says { display: none; }
ol.commentlist li.pingback .reply { display: none; }
ol.commentlist li.pingback .comment-body p { font-style: italic; }
/* ---- comments : nesting ---- */
ol.commentlist li.comment ul.children { margin: 0 0 10px 0; }
ol.commentlist li.comment ul.children li.comment { border-left: 1px solid #ddd; padding: 0 0 10px 30px; }
ol.commentlist li.comment ul.children li .comment-body { margin: 0; padding: 15px 15px 10px 70px; }
ol.commentlist li.comment ul.children li .comment-body cite.fn { font-size: 14px; }
ol.commentlist li.comment ul.children li .comment-body img.avatar { width: 40px; height: 40px; left: 15px; top: 15px; }
ol.commentlist li.comment ul.children ul.children { margin: 10px 0 0 0; }
ol.commentlist li:last-child,
ol.commentlist li li:last-child,
ol.commentlist li li li:last-child,
ol.commentlist li li li li:last-child { padding-bottom: 0!important; }
/* ---- COMMENTS : NAV ---- */
#comments .navigation { margin: 10px 25px 0 25px; padding: 10px; border: 1px dotted #ccc; box-shadow: inset 0 1px 0 #fff; }
#comments .navigation a { font-weight: bold; font-size: 14px; color: #227793; }
#comments .navigation a:hover { color: #444; }
#comments .navigation .nav-previous { float: left; }
#comments .navigation .nav-next { float: left; }
/* ---- COMMENTS : FORM ---- */
#respond { }
#respond h2 { color: #333; font-family:"Mj_Dalal Text"; font-size: 26px; font-weight: bold; line-height: 32px; margin: 30px 20px 0 20px; text-shadow: 0 1px 0 #fff; }
#respond h2 a { color: #333; }
#respond h2 a:hover { text-decoration: underline; }
#respond a#cancel-comment-reply-link { background: #ddd; display: block; padding: 7px 10px; font-size: 14px; color: #333; font-weight: bold; text-decoration: underline; position: absolute; top: 0; left: 20px; }
#respond a#cancel-comment-reply-link:hover { text-decoration: none; }
#respond p.user { color: #888; padding: 0 20px; font-size: 14px; }
#respond p.user a { color: #227793; }
#respond p.user a:hover { color: #444; }
#respond p.allowed-tags { background: #ddd; font-size: 11px; color: #888; text-shadow: 0 1px 0 rgba(255,255,255,0.8); border: 1px solid #ccc; padding: 10px; margin: 10px 20px; }
#respond #form-wrap { background: #fff; border: 1px solid #ccc; margin: 20px 25px 25px 25px; padding: 15px; -moz-box-shadow: 0 0 6px rgba(0,0,0,0.1); -webkit-box-shadow: 0 0 6px rgba(0,0,0,0.1); box-shadow: 0 0 6px rgba(0,0,0,0.1); }
/* reply */
li.comment #respond { margin-bottom: 10px; }
li.comment #respond #form-wrap { margin: 0; }
li.comment #respond li { padding-left: 1%; border: 0; }
li.comment li #respond { margin: 10px 0 0 30px; }
li.comment #respond header { position: relative; border: 0; margin: 0; padding-bottom: 0; }
li.comment #respond header h2,
li.comment #respond header div,
li.comment #respond header p.allowed-tags,
li.comment #respond header p.user { display: none; }
li.comment #respond header #cancel-comment-reply-link { display: block; position: absolute; top: 10px; left: 20px; z-index: 2; padding: 10px 0 0 0; background: none; font-size: 14px; font-weight: normal; }[/right]

[/size][/color]
[color=#282828][size=4]

[right].bandit-form label { font-weight: bold; color: #444; }
.bandit-form li input,
.bandit-form li textarea { background: #eee; font-family:Mj_Aref; font-size: 14px; color: #030519; -moz-box-shadow: inset 0 1px 0 #ddd; -webkit-box-shadow: inset 0 1px 0 #ddd; box-shadow: inset 0 1px 0 #ddd; }
.bandit-form li.focused { }
.bandit-form .submit { background: #227793; border: 1px solid #0e3a48; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.3); font-weight: bold; font-size: 14px; padding: 4px 12px; cursor: pointer; -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.1); -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.1); box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.bandit-form .submit:focus, .bandit-form .submit:hover { }

لینک به ارسال

اینو به انتهای قسمت کامنت در فایل css اضافه کنید


ol.commentlist li.comment ul.children li .comment-body cite.fn {
margin-right: 60px;
}
ol.commentlist li.comment ul.children li .comment-body p {
margin-right: 60px;
}

لینک به ارسال
  • 1 سال بعد...

سلام دوستان

اخیرا کاربران گزارش کردند که نمی توانند نظر ارسال کنند

وقتی خودم اقدام به ارسال نظر کردم این پیغام را دریافت کردم :

خطا: لطفا دیدگاهتان را بنویسید.

در حالی که یک متن نوشتم بعنوان نظر و ارسال کردم مشکل از چیست یاد آور می شوم قبلا نظرات بدون مشکل ارسال می شد

لینک به ارسال

اگر برای بخش نظرات از ادیتور خاصی هم استفاده می کنید یکبار غیر فعالش کنید و تست بگیرید

لینک به ارسال

ممنون از راهنمائیتان

پوسته را پیش فرض گذاشتم نظر ارسال شد ولی پوسته ای که الان استفاده می کنم izidreams است چطوری مشکل نظراتش را حل کنم ؟

لینک به ارسال

ممنون از راهنمائیتان

پوسته را پیش فرض گذاشتم نظر ارسال شد ولی پوسته ای که الان استفاده می کنم izidreams است چطوری مشکل نظراتش را حل کنم ؟

بررسی کنید نام textarea برابر comment باشد

در کل فرم ارسال دیدگاه را چک کنید

لینک به ارسال

بخش کامنت این هاست

<?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() ) { ?>

<div class="art-Post">

<div class="art-Post-tl"></div>

<div class="art-Post-tr"></div>

<div class="art-Post-bl"></div>

<div class="art-Post-br"></div>

<div class="art-Post-tc"></div>

<div class="art-Post-bc"></div>

<div class="art-Post-cl"></div>

<div class="art-Post-cr"></div>

<div class="art-Post-cc"></div>

<div class="art-Post-body">

<div class="art-Post-inner art-article">

<div class="art-PostContent">

<p class="بدون نظر"><?php _e('This post is password protected. Enter the password to view comments.', 'kubrick'); ?></p>

</div>

<div class="cleared"></div>

</div>

<div class="cleared"></div>

</div>

</div>

<?php

return;

}

?>

<!-- You can start editing here. -->

<?php if ( have_comments() ) : ?>

<div class="art-Post">

<div class="art-Post-tl"></div>

<div class="art-Post-tr"></div>

<div class="art-Post-bl"></div>

<div class="art-Post-br"></div>

<div class="art-Post-tc"></div>

<div class="art-Post-bc"></div>

<div class="art-Post-cl"></div>

<div class="art-Post-cr"></div>

<div class="art-Post-cc"></div>

<div class="art-Post-body">

<div class="art-Post-inner art-article">

<div class="art-PostContent">

<h3 id="نظر"><?php comments_number(__('No Responses', 'kubrick'), __('One Response', 'kubrick'), __('% Responses', 'kubrick'));?> <?php printf(__('to “%s”', 'kubrick'), the_title('', '', false)); ?></h3>

<?php

ob_start();

previous_comments_link(__('Newer Entries »', 'kubrick'));

$prev_comment_link = ob_get_clean();

ob_start();

next_comments_link(__('« Older Entries', 'kubrick'));

$next_comment_link = ob_get_clean();

?>

<?php if ($prev_comment_link || $next_comment_link): ?>

<div class="navigation">

<div class="alignleft">

<?php echo $next_comment_link; ?>

</div>

<div class="alignright">

<?php echo $prev_comment_link; ?>

</div>

</div>

<?php endif; ?>

</div>

<div class="cleared"></div>

</div>

<div class="cleared"></div>

</div>

</div>

<ul class="commentlist">

<?php wp_list_comments('type=all&callback=art_comment'); ?>

</ul>

<?php if ($prev_comment_link || $next_comment_link): ?>

<div class="art-Post">

<div class="art-Post-tl"></div>

<div class="art-Post-tr"></div>

<div class="art-Post-bl"></div>

<div class="art-Post-br"></div>

<div class="art-Post-tc"></div>

<div class="art-Post-bc"></div>

<div class="art-Post-cl"></div>

<div class="art-Post-cr"></div>

<div class="art-Post-cc"></div>

<div class="art-Post-body">

<div class="art-Post-inner art-article">

<div class="art-PostContent">

<div class="navigation">

<div class="alignleft">

<?php echo $next_comment_link; ?>

</div>

<div class="alignright">

<?php echo $prev_comment_link; ?>

</div>

</div>

</div>

<div class="cleared"></div>

</div>

<div class="cleared"></div>

</div>

</div>

<?php endif; ?>

<?php else : // this is displayed if there are no comments so far ?>

<?php if ('open' == $post->comment_status) : ?>

<!-- If comments are open, but there are no comments. -->

<?php else : // comments are closed ?>

<!-- If comments are closed. -->

<div class="art-Post">

<div class="art-Post-tl"></div>

<div class="art-Post-tr"></div>

<div class="art-Post-bl"></div>

<div class="art-Post-br"></div>

<div class="art-Post-tc"></div>

<div class="art-Post-bc"></div>

<div class="art-Post-cl"></div>

<div class="art-Post-cr"></div>

<div class="art-Post-cc"></div>

<div class="art-Post-body">

<div class="art-Post-inner art-article">

<div class="art-PostContent">

<p class="nocomments"><?php _e('Comments are closed.', 'kubrick'); ?></p>

</div>

<div class="cleared"></div>

</div>

<div class="cleared"></div>

</div>

</div>

<?php endif; ?>

<?php endif; ?>

<?php if ('open' == $post->comment_status) : ?>

<div class="art-Post">

<div class="art-Post-tl"></div>

<div class="art-Post-tr"></div>

<div class="art-Post-bl"></div>

<div class="art-Post-br"></div>

<div class="art-Post-tc"></div>

<div class="art-Post-bc"></div>

<div class="art-Post-cl"></div>

<div class="art-Post-cr"></div>

<div class="art-Post-cc"></div>

<div class="art-Post-body">

<div class="art-Post-inner art-article">

<div class="art-PostContent">

<div id="respond">

<h3><?php comment_form_title( __('Leave a Reply', 'kubrick'), __('Leave a Reply for %s', 'kubrick') ); ?></h3>

<div class="cancel-comment-reply">

<small><?php cancel_comment_reply_link(); ?></small>

</div>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>

<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p>

<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'kubrick'); ?>"><?php _e('Log out »', 'kubrick'); ?></a></p>

<?php else : ?>

<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />

<label for="author"><small><?php _e('Name', 'kubrick'); ?> <?php if ($req) _e("(required)", "kubrick"); ?></small></label></p>

<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />

<label for="email"><small><?php _e('Mail (will not be published)', 'kubrick'); ?> <?php if ($req) _e("(required)", "kubrick"); ?></small></label></p>

<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />

<label for="url"><small><?php _e('Website', 'kubrick'); ?></small></label></p>

<?php endif; ?>

<!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'kubrick'), allowed_tags()); ?></small></p>-->

<p><textarea name="نظر" id="نظر" cols="100%" rows="10" tabindex="4"></textarea></p>

<p>

<span class="art-button-wrapper">

<span class="l"> </span>

<span class="r"> </span>

<input class="art-button" type="submit" name="submit" tabindex="5" value="<?php _e('Submit Comment', 'kubrick'); ?>"/>

</span>

<?php comment_id_fields(); ?>

</p>

<?php do_action('comment_form', $post->ID); ?>

</form>

<?php endif; // If registration required and not logged in ?>

</div>

</div>

<div class="cleared"></div>

</div>

<div class="cleared"></div>

</div>

</div>

<?php endif; // if you delete this the sky will fall on your head ?>

لینک به ارسال

همان طور که گفتم نام فیلد نظر مشکل داشت

<textarea name="نظر" id="نظر" cols="100%" rows="10" tabindex="4"></textarea>

جایگزین:

<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>

لینک به ارسال

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

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

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

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

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

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

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

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

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