nimait70 31 ارسال شده در مهر 92 گزارش بازنشر ارسال شده در مهر 92 سلام دوستان خسته نباشید...بنده یک مشکلی با فالبم دارم...اونم اینه که بخش کامنت ها در قالب یه جورایی درست کار نمیکنه...یعنی وقتی دیدگاه خودتو مینویسی هیچ پیغامی بهت نمیده که پیغام شما ارسال شد و منتظر بررسی مدیر هست و یا ... . البته برای مدیر کامنت هات میره ولی کاربری که کامنت میذاره از هیچ راهی نمیتونه بفهمه نظرش ارسال شد یا خیر؟!!پیش نمایش آنلاین :http://vcbt.ir/%D8%B3%D8%B1%DB%8C%D8%A7%D9%84-training-day-2001/ممنون میشم اگه کسی بتونه راهنماییم کنه تا این مشکل رو حل کنم... نقل قول لینک به ارسال
Morteza 34190 ارسال شده در مهر 92 گزارش بازنشر ارسال شده در مهر 92 شما از چه کدی استفاده می کنید؟ برای نمایش دیدگاه ها.تاپیک دوم بسته شد 1 نقل قول لینک به ارسال
nimait70 31 ارسال شده در مهر 92 مالک گزارش بازنشر ارسال شده در مهر 92 شما از چه کدی استفاده می کنید؟ برای نمایش دیدگاه ها.تاپیک دوم بسته شدفایل comments.php قالب :<?php/*The comments page for Bones*/// Do not delete these linesif (!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="alert help"> <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p></div><?phpreturn;}?><!-- You can start editing here. --><?php if ( have_comments() ) : ?><h3 id="comments" class="title"><?php echo get_comments_number(); ?> <?php _e('Comments','code125') ?><span class="arrow"></span></h3><nav id="comment-nav"><ul class="clearfix"> <li><?php previous_comments_link() ?></li> <li><?php next_comments_link() ?></li></ul></nav><ol class="commentlist"><?php wp_list_comments('type=comment&callback=bones_comments'); ?></ol><nav id="comment-nav"><ul class="clearfix"> <li><?php previous_comments_link() ?></li> <li><?php next_comments_link() ?></li></ul></nav><?php else : // this is displayed if there are no comments so far ?><?php if ( comments_open() ) : ?> <!-- If comments are open, but there are no comments. --><?php else : // comments are closed ?><!-- If comments are closed. --><p class="nocomments"><?php _e("Comments are closed.", "bonestheme"); ?></p><?php endif; ?><?php endif; ?>فایل functions.ph هم ضمیمه میکنم...functions.php نقل قول لینک به ارسال
Parsa 23463 ارسال شده در آبان 92 گزارش بازنشر ارسال شده در آبان 92 محتویات این تابع bones_comments را قرار دهید 1 نقل قول لینک به ارسال
nimait70 31 ارسال شده در آبان 92 مالک گزارش بازنشر ارسال شده در آبان 92 محتویات این تابع bones_comments را قرار دهیدبر گفته از فایل functions.php :// Comment Layoutfunction bones_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?><li <?php comment_class(); ?>> <article id="comment-<?php comment_ID(); ?>" class="clearfix"> <header class="comment-author vcard clearfix"> <?php /* this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call: echo get_avatar($comment,$size='32',$default='<path_to_url>' ); */ ?> <!-- custom gravatar call --> <?php echo get_avatar($comment,$size='64',$default= ot_get_option('avatar') ); ?> <!-- end custom gravatar call --> <?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?><br><time class="time_class" datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time('F jS, Y'); ?> </a></time> <?php edit_comment_link(__('(Edit)', 'code125'),' ','') ?> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </header> <?php if ($comment->comment_approved == '0') : ?> <div class="alert info"> <p><?php _e('Your comment is awaiting moderation.', 'code125') ?></p> </div> <?php endif; ?> <section class="comment_content clearfix"> <?php comment_text() ?> </section> </article> <!-- </li> is added by wordpress automatically --><?php} // don't remove this bracket! نقل قول لینک به ارسال
Parsa 23463 ارسال شده در آبان 92 گزارش بازنشر ارسال شده در آبان 92 با اوجه به این بخش:<?php if ($comment->comment_approved == '0') : ?> <div class="alert info"> <p><?php _e('Your comment is awaiting moderation.', 'code125') ?></p> </div> <?php endif; ?>پیامی به کاربر نمایش داده میشه برای اینکه نظر هنوز تایید نشده 1 نقل قول لینک به ارسال
nimait70 31 ارسال شده در آبان 92 مالک گزارش بازنشر ارسال شده در آبان 92 با اوجه به این بخش:<?php if ($comment->comment_approved == '0') : ?> <div class="alert info"> <p><?php _e('Your comment is awaiting moderation.', 'code125') ?></p> </div><?php endif; ?>پیامی به کاربر نمایش داده میشه برای اینکه نظر هنوز تایید نشدهاما شما خودتون تست بفرمایید، هیچ پیغامی به کاربر داده نمیشه...http://vcbt.ir/%D8%B3%D8%B1%DB%8C%D8%A7%D9%84-training-day-2001/ نقل قول لینک به ارسال
NESTED 4295 ارسال شده در آبان 92 گزارش بازنشر ارسال شده در آبان 92 دوست عزیز شما قسمت پاسخ دهی در سایت رو در تب اجکس قرار دادین خب در این حالت چیزی دیده نمیشهیکبار از داخل تب خارح کنید سپس بذارید تا بررسی بشهبعد اینکه چرا بخش نظرات رو این همه پیچیده کردین نقل قول لینک به ارسال
nimait70 31 ارسال شده در آبان 92 مالک گزارش بازنشر ارسال شده در آبان 92 الان تب رو درست کردم...فقط یه تب وجود داره...واقعیتش طراح قالب انقدر پیچیدش کرده بنده به چیزی دست نزدم...قالب به صورت پیشفرض این شکلیه...اگه میشه کاری کرد لطفا راهنمایی بفرمایید...یا اگه بشه ساده ترش هم کرد مشکلی نداره، فقط این مشکل برطرف بشه... نقل قول لینک به ارسال
Morteza 34190 ارسال شده در آبان 92 گزارش بازنشر ارسال شده در آبان 92 اون آدرسی که دادید برام باز نمیشه و 404 میده نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .