رفتن به مطلب

مشکل قسمت نظرات قالب با بسته پارسی ساز!


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

سلام به همگی

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

هرکی کامنت میده بجای اینکه متن کامنتشو توی قسمت نظرات بنویسه،اینو مینویسه :

Fatal error: Call to undefined function comment_parsidate() in /home/fullalbum1/public_html/wp-content/themes/remix/comments.php on line 49

اینم کد خط 49 :


<div class="date"><?php comment_parsidate('l j F Y'); ?></div>

بجای parsidate ، کلمه jdate بود که الان با وجود اینکه به parsidate تغییرش دادم بازم درست نشده!!

لینک به ارسال

ما تابعی به نام comment_parsidate نداریم

این تاریخ هر دیدگاه هست؟

لینک به ارسال

ما تابعی به نام comment_parsidate نداریم

این تاریخ هر دیدگاه هست؟

ببینید وقتی یک نفر زیر یه پست کامنت میذاره،من وقتی کامنتشو تایید میکنم باید اون کامنت زیر اون پست نمایش داده بشه دیگه درسته؟

حالا بجای اینکه اون کامنت نمایش داده بشه،این متن رو نمایش میده

یعنی درواقع بجای متن نظر کاربران این ارور رو میده!!!

لینک به ارسال

منظورم تابع comment_jdate تاریخ دیدگاه ها رو شمسی نمایش می داد؟

لینک به ارسال

منظورم تابع comment_jdate تاریخ دیدگاه ها رو شمسی نمایش می داد؟

نه عزیز کلا اون موقع که Jdate بود بازم همین ارور رو میداد

نمیدونم این تابع چی رو نمایش میده

این کد کامل فایل comments.php قالبم خدمت شما :


<?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 (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','kubrick'); ?></p>
<?php
return;
}
}
/* Support-wo.ir Create file Comment -> persianscript.ir */
/* This variable is for alternating comment background */
$oddcomment = ' ';
?>

<div class="block-full bg-color-main">
<div class="block-inner">
<br>
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>
<?php _e('Enter your password to view comments.'); ?>
</p>
<?php return; endif; ?>
<?php if ($comments) : ?>
<div style="font-family:BYekan;direction:rtl;"class="widget-header">دیدگاه کاربران</div>
<?php foreach ($comments as $comment) : ?>

<div class="discussion" id="comments"> <div class="comment" id="comment-32">
<div class="comment-inner depth-1" id="comment-inner-32">
<div class="comment-uber-inner">
<div class="info zero-mar">
<div class="pic">
<div class="pic-inner">
<?php echo get_avatar( $comment, $size = '40' ); ?> </div>
<div class="clear"></div>
</div>
<div class="name-date">
<div class="name"><cite class="fn">نويسنده ديدگاه : <?php comment_author() ?></cite></div>
<div class="date"><?php comment_parsidate('l j F Y'); ?></div>
</div>
</div>
<div class="frame">
<div class="frame-inner">
<div class="text">
<p><?php comment_text() ?></p>
</div>
</div>
</div>
</div> </div> </div> </div> <?php endforeach; ?><?php endif; ?>

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



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

<?php else : ?>
<div class="block-full bg-color-main" style="direction:rtl;">
<div class="block-inner">
<div style="font-family:BYekan;" class="widget-header">دیدگاه کاربران</div>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comments">
<?php if ( $user_ID ) : ?>
<p><?php printf(__('وارد شده با نام %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('خارج شدن از این نام کاربری') ?>">
<?php _e('خروج »'); ?>
</a></p>
<?php else : ?>
<p>
<input style="font-family:BYekan;" dir="rtl" type="text" name="url" id="url" value="وب سایت" size="25" tabindex="3" />

<input style="font-family:BYekan;" dir="rtl" type="text" name="email" id="email" value="ایمیل" size="25" tabindex="2" />
<input style="font-family:BYekan;" dir="rtl" type="text" name="author" id="author" value="نام" size="25" tabindex="1" />

<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> <?php printf(__('شما از این تگ ها میتوانید استفاده کنید %s'), allowed_tags()); ?></small></p>-->
<br /> <textarea dir="rtl" style="font-family:BKoodakBold;" name="comment" id="comment" cols="115" rows="10" tabindex="4"></textarea>
<br /> <input style="font-family:BYekan;" name="submit" type="submit" id="submit" tabindex="5" value="فرستادن دیدگاه" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p>
<?php _e('متاسفانه دیدگاه این پست بسته شده است'); ?>
</p>
<?php endif; ?>
</div></div></div></div></div>

لینک به ارسال

این کدهارو جایگزین کنید ببینید درست میشه :


<?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 (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','kubrick'); ?></p>
<?php
return;
}
}
/* Support-wo.ir Create file Comment -> persianscript.ir */
/* This variable is for alternating comment background */
$oddcomment = ' ';
?>
<div class="block-full bg-color-main">
<div class="block-inner">
<br>
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>
<?php _e('Enter your password to view comments.'); ?>
</p>
<?php return; endif; ?>
<?php if ($comments) : ?>
<div style="font-family:BYekan;direction:rtl;"class="widget-header">دیدگاه کاربران</div>
<?php foreach ($comments as $comment) : ?>
<div class="discussion" id="comments"> <div class="comment" id="comment-32">
<div class="comment-inner depth-1" id="comment-inner-32">
<div class="comment-uber-inner">
<div class="info zero-mar">
<div class="pic">
<div class="pic-inner">
<?php echo get_avatar( $comment, $size = '40' ); ?> </div>
<div class="clear"></div>
</div>
<div class="name-date">
<div class="name"><cite class="fn">نويسنده ديدگاه : <?php comment_author() ?></cite></div>
<div class="date"><?php date('l j F Y'); ?></div>
</div>
</div>
<div class="frame">
<div class="frame-inner">
<div class="text">
<p><?php comment_text() ?></p>
</div>
</div>
</div>
</div> </div> </div> </div> <?php endforeach; ?><?php endif; ?>
<?php if ( comments_open() ) : ?>


<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<?php else : ?>
<div class="block-full bg-color-main" style="direction:rtl;">
<div class="block-inner">
<div style="font-family:BYekan;" class="widget-header">دیدگاه کاربران</div>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comments">
<?php if ( $user_ID ) : ?>
<p><?php printf(__('وارد شده با نام %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('خارج شدن از این نام کاربری') ?>">
<?php _e('خروج »'); ?>
</a></p>
<?php else : ?>
<p>
<input style="font-family:BYekan;" dir="rtl" type="text" name="url" id="url" value="وب سایت" size="25" tabindex="3" />
<input style="font-family:BYekan;" dir="rtl" type="text" name="email" id="email" value="ایمیل" size="25" tabindex="2" />
<input style="font-family:BYekan;" dir="rtl" type="text" name="author" id="author" value="نام" size="25" tabindex="1" />
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> <?php printf(__('شما از این تگ ها میتوانید استفاده کنید %s'), allowed_tags()); ?></small></p>-->
<br /> <textarea dir="rtl" style="font-family:BKoodakBold;" name="comment" id="comment" cols="115" rows="10" tabindex="4"></textarea>
<br /> <input style="font-family:BYekan;" name="submit" type="submit" id="submit" tabindex="5" value="فرستادن دیدگاه" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p>
<?php _e('متاسفانه دیدگاه این پست بسته شده است'); ?>
</p>
<?php endif; ?>
</div></div></div></div></div>

لینک به ارسال

این کدهارو جایگزین کنید ببینید درست میشه :


<?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 (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','kubrick'); ?></p>
<?php
return;
}
}
/* Support-wo.ir Create file Comment -> persianscript.ir */
/* This variable is for alternating comment background */
$oddcomment = ' ';
?>
<div class="block-full bg-color-main">
<div class="block-inner">
<br>
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>
<?php _e('Enter your password to view comments.'); ?>
</p>
<?php return; endif; ?>
<?php if ($comments) : ?>
<div style="font-family:BYekan;direction:rtl;"class="widget-header">دیدگاه کاربران</div>
<?php foreach ($comments as $comment) : ?>
<div class="discussion" id="comments"> <div class="comment" id="comment-32">
<div class="comment-inner depth-1" id="comment-inner-32">
<div class="comment-uber-inner">
<div class="info zero-mar">
<div class="pic">
<div class="pic-inner">
<?php echo get_avatar( $comment, $size = '40' ); ?> </div>
<div class="clear"></div>
</div>
<div class="name-date">
<div class="name"><cite class="fn">نويسنده ديدگاه : <?php comment_author() ?></cite></div>
<div class="date"><?php date('l j F Y'); ?></div>
</div>
</div>
<div class="frame">
<div class="frame-inner">
<div class="text">
<p><?php comment_text() ?></p>
</div>
</div>
</div>
</div> </div> </div> </div> <?php endforeach; ?><?php endif; ?>
<?php if ( comments_open() ) : ?>


<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<?php else : ?>
<div class="block-full bg-color-main" style="direction:rtl;">
<div class="block-inner">
<div style="font-family:BYekan;" class="widget-header">دیدگاه کاربران</div>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="comments">
<?php if ( $user_ID ) : ?>
<p><?php printf(__('وارد شده با نام %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('خارج شدن از این نام کاربری') ?>">
<?php _e('خروج »'); ?>
</a></p>
<?php else : ?>
<p>
<input style="font-family:BYekan;" dir="rtl" type="text" name="url" id="url" value="وب سایت" size="25" tabindex="3" />
<input style="font-family:BYekan;" dir="rtl" type="text" name="email" id="email" value="ایمیل" size="25" tabindex="2" />
<input style="font-family:BYekan;" dir="rtl" type="text" name="author" id="author" value="نام" size="25" tabindex="1" />
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> <?php printf(__('شما از این تگ ها میتوانید استفاده کنید %s'), allowed_tags()); ?></small></p>-->
<br /> <textarea dir="rtl" style="font-family:BKoodakBold;" name="comment" id="comment" cols="115" rows="10" tabindex="4"></textarea>
<br /> <input style="font-family:BYekan;" name="submit" type="submit" id="submit" tabindex="5" value="فرستادن دیدگاه" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p>
<?php _e('متاسفانه دیدگاه این پست بسته شده است'); ?>
</p>
<?php endif; ?>
</div></div></div></div></div>

درست شد خیلی ممنون

لینک به ارسال
  • 2 هفته بعد...

سلام

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

و وقتی تعداد کامنتای یه پست زیاد میشه کلاَ همه چی بهم میریزه فرم ارسال کامنت میاد جای سایدبار سمت راست،سایدبارم میره میفته زیر فوتر!! :huh:

مشکلش چی میتونه باشه؟!!

ویرایش شده توسط Milad123
لینک به ارسال
  • 2 هفته بعد...

سلام

یکی از پست های بهم ریخته رو ادرس بدید

داخل سایت پیدا نکردم

لینک به ارسال

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

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

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

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

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

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

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

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

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