رفتن به مطلب

ساخت قسمت نظرات قالب


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

بفرما

الان بیخودی اسپم بدم خوبه؟ :P

میدونم جاش اینجا نیست ولی

حالا نمیشه شما این کارو برای ما انجام بدید؟ + هزینه

mahjoobp@gmail.com

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

بفرما

الان بیخودی اسپم بدم خوبه؟ :P

میدونم جاش اینجا نیست ولی

حالا نمیشه شما این کارو برای ما انجام بدید؟ + هزینه

mahjoobp@gmail.com

دوست من لطفا به این آموزش که تازه دادم مراجع کن انشالله مشکل حل شه مجانی انجام دادم هزینش یه دعاس

برو حالشو ببر :wub:

اکه نشه قالبتو باس عوض کنی :D( پ خ بده )

لینک به ارسال

داداش ممنون واسه آموزش مفیدی که دادی

واقعا خوب توضیح دادی

ولی نشد!

دارم دنبال یه قالب جدید میگردم

بازم مشکلاتمو ازتون میپرسم :)

لینک به ارسال

آقایون این کد کامنت و استایل :

هیچ کس نمیتونه کاری کنه ؟

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() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'woothemes') ?></p>
<?php return; } ?>
<?php $comments_by_type = &separate_comments($comments); ?>
<!-- You can start editing here. -->
<div id="comments">
<?php if ( have_comments() ) : ?>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<h3><?php comments_number(__('No Responses', 'woothemes'), __('One Response', 'woothemes'), __('% Responses', 'woothemes') );?> <?php _e('to', 'woothemes') ?> “<?php the_title(); ?>”</h3>

<ol class="commentlist">

<?php wp_list_comments('avatar_size=70&callback=custom_comment&type=comment'); ?>

</ol>

<div class="navigation">
<div class="fl"><?php previous_comments_link() ?></div>
<div class="fr"><?php next_comments_link() ?></div>
<div class="fix"></div>
</div><!-- /.navigation -->
<?php endif; ?>

<?php if ( ! empty($comments_by_type['pings']) ) : ?>

<h3 id="pings"><?php _e('Trackbacks/Pingbacks', 'woothemes') ?></h3>

<ol class="pinglist">
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
</ol>

<?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. -->
<h3 class="nocomments"><?php _e('No comments yet... Be the first to leave a reply!', 'woothemes') ?></h3>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<h3 class="nocomments"><?php _e('Comments are closed.', 'woothemes') ?></h3>
<?php endif; ?>
<?php endif; ?>
</div> <!-- /#comments_wrap -->
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3><?php comment_form_title( __('Leave a Reply', 'woothemes'), __('Leave a Reply to %s', 'woothemes') ); ?></h3>

<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div><!-- /.cancel-comment-reply -->
<?php if ( get_option('comment_registration') && !$user_ID ) : //If registration required & not logged in. ?>
<p><?php _e('You must be', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>" rel="nofollow"><?php _e('logged in', 'woothemes') ?></a> <?php _e('to post a comment.', 'woothemes') ?></p>
<?php else : //No registration required ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" onsubmit="if (url.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {url.value = '';}">
<div class="left">
<?php if ( $user_ID ) : //If user is logged in ?>
<p><?php _e('Logged in as', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'woothemes') ?>"><?php _e('Logout', 'woothemes') ?> »</a></p>
<?php else : //If user is not logged in ?>
<p>
<input type="text" name="author" class="txt" id="commentauthor" tabindex="1" value="<?php if ( $comment_author ) echo esc_attr($comment_author); else _e('Name (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Name (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Name (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="email" class="txt" id="email" tabindex="2" value="<?php if ( $comment_author_email ) echo esc_attr($comment_author_email); else _e('Email (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Email (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Email (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="url" class="txt" id="url" tabindex="3" value="<?php if ( $comment_author_url ) echo esc_attr($comment_author_url); else _e('Website (optional)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Website (optional)', 'woothemes'); ?>';}" />
</p>
<?php endif; // End if logged in ?>

</div>
<div class="right">

<!--<p><strong>XHTML:</strong> <?php _e('You can use these tags', 'woothemes'); ?>: <?php echo allowed_tags(); ?></p>-->
<p><textarea name="comment" id="comment" rows="10" cols="50" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'woothemes') ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

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

</div>

</form><!-- /#commentform -->
<?php endif; // If registration required ?>
<div class="fix"></div>
</div><!-- /#respond -->
<?php endif; // if you delete this the sky will fall on your head ?>

استایل :


<?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() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'woothemes') ?></p>
<?php return; } ?>
<?php $comments_by_type = &separate_comments($comments); ?>
<!-- You can start editing here. -->
<div id="comments">
<?php if ( have_comments() ) : ?>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<h3><?php comments_number(__('No Responses', 'woothemes'), __('One Response', 'woothemes'), __('% Responses', 'woothemes') );?> <?php _e('to', 'woothemes') ?> “<?php the_title(); ?>”</h3>

<ol class="commentlist">

<?php wp_list_comments('avatar_size=70&callback=custom_comment&type=comment'); ?>

</ol>

<div class="navigation">
<div class="fl"><?php previous_comments_link() ?></div>
<div class="fr"><?php next_comments_link() ?></div>
<div class="fix"></div>
</div><!-- /.navigation -->
<?php endif; ?>

<?php if ( ! empty($comments_by_type['pings']) ) : ?>

<h3 id="pings"><?php _e('Trackbacks/Pingbacks', 'woothemes') ?></h3>

<ol class="pinglist">
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
</ol>

<?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. -->
<h3 class="nocomments"><?php _e('No comments yet... Be the first to leave a reply!', 'woothemes') ?></h3>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<h3 class="nocomments"><?php _e('Comments are closed.', 'woothemes') ?></h3>
<?php endif; ?>
<?php endif; ?>
</div> <!-- /#comments_wrap -->
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3><?php comment_form_title( __('Leave a Reply', 'woothemes'), __('Leave a Reply to %s', 'woothemes') ); ?></h3>

<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div><!-- /.cancel-comment-reply -->
<?php if ( get_option('comment_registration') && !$user_ID ) : //If registration required & not logged in. ?>
<p><?php _e('You must be', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>" rel="nofollow"><?php _e('logged in', 'woothemes') ?></a> <?php _e('to post a comment.', 'woothemes') ?></p>
<?php else : //No registration required ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" onsubmit="if (url.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {url.value = '';}">
<div class="left">
<?php if ( $user_ID ) : //If user is logged in ?>
<p><?php _e('Logged in as', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'woothemes') ?>"><?php _e('Logout', 'woothemes') ?> »</a></p>
<?php else : //If user is not logged in ?>
<p>
<input type="text" name="author" class="txt" id="commentauthor" tabindex="1" value="<?php if ( $comment_author ) echo esc_attr($comment_author); else _e('Name (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Name (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Name (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="email" class="txt" id="email" tabindex="2" value="<?php if ( $comment_author_email ) echo esc_attr($comment_author_email); else _e('Email (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Email (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Email (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="url" class="txt" id="url" tabindex="3" value="<?php if ( $comment_author_url ) echo esc_attr($comment_author_url); else _e('Website (optional)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Website (optional)', 'woothemes'); ?>';}" />
</p>
<?php endif; // End if logged in ?>

</div>
<div class="right">

<!--<p><strong>XHTML:</strong> <?php _e('You can use these tags', 'woothemes'); ?>: <?php echo allowed_tags(); ?></p>-->
<p><textarea name="comment" id="comment" rows="10" cols="50" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'woothemes') ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

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

</div>

</form><!-- /#commentform -->
<?php endif; // If registration required ?>
<div class="fix"></div>
</div><!-- /#respond -->
<?php endif; // if you delete this the sky will fall on your head ?>

لینک به ارسال

دوست من فایل کامنت ها کاملا سالم هستن

ببینید

شما احتمالا قالب رو از جایی دانلود کردی

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

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

این آدرس سایته

میتونید بفهمید مشکل از کجاست؟

هرچی گشتم دنبال قالب جدید نتونستم مناسب تر از این گیر بیارم

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

من آدرس اصلی این قالب که انگلیسی هم هست رو دارم . توی دموی انگلیسیش قسمت نظرات سالمه ولی ترجمه شدش خرابه.

این دمو میتونه کمکی کنه ؟ مثلا یه جوری کدش رو پیدا کنیم؟

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

rayagraph.com

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

من آدرس اصلی این قالب که انگلیسی هم هست رو دارم . توی دموی انگلیسیش قسمت نظرات سالمه ولی ترجمه شدش خرابه.

این دمو میتونه کمکی کنه ؟ مثلا یه جوری کدش رو پیدا کنیم؟

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

rayagraph.com

لطفا کمی صبر کن دوست من بیهوده پست نده

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

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

من میبینم امیدوارم بشه کمک کرد

لینک به ارسال

نمیخواد داداش :)

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

لینک به ارسال

فایل استایل پسوند css داره نه php

اینهمه نظر دادی یک جا درست و حسابی ننوشتی چی می خواهی

لینک به ارسال

فایل استایل پسوند css داره نه php

اینهمه نظر دادی یک جا درست و حسابی ننوشتی چی می خواهی

من کجا گفتم استایل پسوند php داره

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

اگه اجازه بدید مشکلای دیگمو تو انجمن مطرح کنم...

لینک به ارسال

آقایون این کد کامنت و استایل :

هیچ کس نمیتونه کاری کنه ؟

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() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'woothemes') ?></p>
<?php return; } ?>
<?php $comments_by_type = &separate_comments($comments); ?>
<!-- You can start editing here. -->
<div id="comments">
<?php if ( have_comments() ) : ?>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<h3><?php comments_number(__('No Responses', 'woothemes'), __('One Response', 'woothemes'), __('% Responses', 'woothemes') );?> <?php _e('to', 'woothemes') ?> “<?php the_title(); ?>”</h3>

<ol class="commentlist">

<?php wp_list_comments('avatar_size=70&callback=custom_comment&type=comment'); ?>

</ol>

<div class="navigation">
<div class="fl"><?php previous_comments_link() ?></div>
<div class="fr"><?php next_comments_link() ?></div>
<div class="fix"></div>
</div><!-- /.navigation -->
<?php endif; ?>

<?php if ( ! empty($comments_by_type['pings']) ) : ?>

<h3 id="pings"><?php _e('Trackbacks/Pingbacks', 'woothemes') ?></h3>

<ol class="pinglist">
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
</ol>

<?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. -->
<h3 class="nocomments"><?php _e('No comments yet... Be the first to leave a reply!', 'woothemes') ?></h3>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<h3 class="nocomments"><?php _e('Comments are closed.', 'woothemes') ?></h3>
<?php endif; ?>
<?php endif; ?>
</div> <!-- /#comments_wrap -->
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3><?php comment_form_title( __('Leave a Reply', 'woothemes'), __('Leave a Reply to %s', 'woothemes') ); ?></h3>

<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div><!-- /.cancel-comment-reply -->
<?php if ( get_option('comment_registration') && !$user_ID ) : //If registration required & not logged in. ?>
<p><?php _e('You must be', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>" rel="nofollow"><?php _e('logged in', 'woothemes') ?></a> <?php _e('to post a comment.', 'woothemes') ?></p>
<?php else : //No registration required ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" onsubmit="if (url.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {url.value = '';}">
<div class="left">
<?php if ( $user_ID ) : //If user is logged in ?>
<p><?php _e('Logged in as', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'woothemes') ?>"><?php _e('Logout', 'woothemes') ?> »</a></p>
<?php else : //If user is not logged in ?>
<p>
<input type="text" name="author" class="txt" id="commentauthor" tabindex="1" value="<?php if ( $comment_author ) echo esc_attr($comment_author); else _e('Name (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Name (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Name (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="email" class="txt" id="email" tabindex="2" value="<?php if ( $comment_author_email ) echo esc_attr($comment_author_email); else _e('Email (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Email (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Email (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="url" class="txt" id="url" tabindex="3" value="<?php if ( $comment_author_url ) echo esc_attr($comment_author_url); else _e('Website (optional)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Website (optional)', 'woothemes'); ?>';}" />
</p>
<?php endif; // End if logged in ?>

</div>
<div class="right">

<!--<p><strong>XHTML:</strong> <?php _e('You can use these tags', 'woothemes'); ?>: <?php echo allowed_tags(); ?></p>-->
<p><textarea name="comment" id="comment" rows="10" cols="50" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'woothemes') ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

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

</div>

</form><!-- /#commentform -->
<?php endif; // If registration required ?>
<div class="fix"></div>
</div><!-- /#respond -->
<?php endif; // if you delete this the sky will fall on your head ?>

استایل :


<?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() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'woothemes') ?></p>
<?php return; } ?>
<?php $comments_by_type = &separate_comments($comments); ?>
<!-- You can start editing here. -->
<div id="comments">
<?php if ( have_comments() ) : ?>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<h3><?php comments_number(__('No Responses', 'woothemes'), __('One Response', 'woothemes'), __('% Responses', 'woothemes') );?> <?php _e('to', 'woothemes') ?> “<?php the_title(); ?>”</h3>

<ol class="commentlist">

<?php wp_list_comments('avatar_size=70&callback=custom_comment&type=comment'); ?>

</ol>

<div class="navigation">
<div class="fl"><?php previous_comments_link() ?></div>
<div class="fr"><?php next_comments_link() ?></div>
<div class="fix"></div>
</div><!-- /.navigation -->
<?php endif; ?>

<?php if ( ! empty($comments_by_type['pings']) ) : ?>

<h3 id="pings"><?php _e('Trackbacks/Pingbacks', 'woothemes') ?></h3>

<ol class="pinglist">
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
</ol>

<?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. -->
<h3 class="nocomments"><?php _e('No comments yet... Be the first to leave a reply!', 'woothemes') ?></h3>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<h3 class="nocomments"><?php _e('Comments are closed.', 'woothemes') ?></h3>
<?php endif; ?>
<?php endif; ?>
</div> <!-- /#comments_wrap -->
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3><?php comment_form_title( __('Leave a Reply', 'woothemes'), __('Leave a Reply to %s', 'woothemes') ); ?></h3>

<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div><!-- /.cancel-comment-reply -->
<?php if ( get_option('comment_registration') && !$user_ID ) : //If registration required & not logged in. ?>
<p><?php _e('You must be', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>" rel="nofollow"><?php _e('logged in', 'woothemes') ?></a> <?php _e('to post a comment.', 'woothemes') ?></p>
<?php else : //No registration required ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" onsubmit="if (url.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {url.value = '';}">
<div class="left">
<?php if ( $user_ID ) : //If user is logged in ?>
<p><?php _e('Logged in as', 'woothemes') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'woothemes') ?>"><?php _e('Logout', 'woothemes') ?> »</a></p>
<?php else : //If user is not logged in ?>
<p>
<input type="text" name="author" class="txt" id="commentauthor" tabindex="1" value="<?php if ( $comment_author ) echo esc_attr($comment_author); else _e('Name (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Name (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Name (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="email" class="txt" id="email" tabindex="2" value="<?php if ( $comment_author_email ) echo esc_attr($comment_author_email); else _e('Email (required)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Email (required)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Email (required)', 'woothemes'); ?>';}" />
</p>
<p>
<input type="text" name="url" class="txt" id="url" tabindex="3" value="<?php if ( $comment_author_url ) echo esc_attr($comment_author_url); else _e('Website (optional)', 'woothemes'); ?>" onfocus="if (this.value == '<?php _e('Website (optional)', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Website (optional)', 'woothemes'); ?>';}" />
</p>
<?php endif; // End if logged in ?>

</div>
<div class="right">

<!--<p><strong>XHTML:</strong> <?php _e('You can use these tags', 'woothemes'); ?>: <?php echo allowed_tags(); ?></p>-->
<p><textarea name="comment" id="comment" rows="10" cols="50" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'woothemes') ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

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

</div>

</form><!-- /#commentform -->
<?php endif; // If registration required ?>
<div class="fix"></div>
</div><!-- /#respond -->
<?php endif; // if you delete this the sky will fall on your head ?>

لینک به ارسال

خب این پوشه style.css بود که گفتم اگه جایی اشکال داره زحمتشو بکشید...

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

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

عزیز تو فایل style.css کد های Css میاد نه Php

تو این آموزش دوستمون توضیح دادند و کد های سی اس اس را گذاشتند

کد های Css که به صورت نمونه گذاشتند را بزارید در فایل Style.css یا اگه توش کد هست اضافه کنید به آخرش

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

با سلام...تمام مطالب و نگاه کردم اما همش مربوط به خود قالب بود ...

....اما من قالبی دارم که برای برگه ها قسمت نظرات تعریف نشده...

میشه کد مربوط به نظرات و محلی که باید برای نمایش در برگه قرارش بدم رو در اختیارم بذارید؟؟ممنون

لینک به ارسال

فایل page.php را باز کنید و در محل مورد نظر کد (محل مورد نظر یعنی می تونی هرجایی بزاری ولی بهتره تو یک لایه بزاری و جای اون لایه را تنظیم کنی):


<?php comments_template(); ?>

را بزار

تموم

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

یه چند تا مشکل دارم...

اولین مشکل اینه که بعد از زدن دکمه ارسال منتقل می شه به صفحه ای با این آدرس...

mysite.com/wp/wp-comments-post.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 to twentytwelve_comment() which is
* located in the functions.php file.
*
* @package WordPress
* @by
* @name theme
*/
/*
* 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 if ($comment->comment_approved == '0') : ?>
پیام شما پس از تایید منتشر می شود
<?php endif; ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" id="comment" method="post">
<h1>Leave a comment</h1>
<label for="author">Name <?php if ($req) echo "(required)"; ?></label>
<input type="text" id="name" name="author" value="<?php echo $comment_author; ?>" <?php if ($req) echo "aria-required='true'"; ?>>
<label for="email">Mail <?php if ($req) echo "(required)"; ?></label>
<input type="text" id="email" name="email" value="<?php echo $comment_author_email; ?>" <?php if ($req) echo "aria-required='true'"; ?>>
<label for="url">Website Url</label>
<input type="text" id="url" name="url" value="<?php echo $comment_author_url; ?>" placeholder="http://example.com">
<textarea id="txt-area" name="comment" required aria-required="true" placeholder="Your comment!"></textarea>
<input type="submit" name="submit" id="submit" value="Submit">
</form>
<ul>
<li class="comm">
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">Link</a>
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
<time class="com-date"><?php comment_date('d'); ?></time>
<div class="com-title"><a title="author" href="<?php comment_author_link(); ?> "><?php comment_author(); ?> </a></div>
<p><?php comment_text(); ?></p>
</li>
</ul>
<!-- #comments .comments-area -->

مشکل رو متوجه نمی شم...

لینک به ارسال

شناسه پست در فرم ست نمیشود

جایگزین فرم کنید


<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" id="comment" method="post">
<h1>Leave a comment</h1>
<label for="author">Name <?php if ($req) echo "(required)"; ?></label>
<input type="text" id="name" name="author" value="<?php echo $comment_author; ?>" <?php if ($req) echo "aria-required='true'"; ?>>
<label for="email">Mail <?php if ($req) echo "(required)"; ?></label>
<input type="text" id="email" name="email" value="<?php echo $comment_author_email; ?>" <?php if ($req) echo "aria-required='true'"; ?>>
<label for="url">Website Url</label>
<input type="text" id="url" name="url" value="<?php echo $comment_author_url; ?>" placeholder="http://example.com">
<textarea id="txt-area" name="comment" required aria-required="true" placeholder="Your comment!"></textarea>
<input type="submit" name="submit" id="submit" value="Submit">
<?php comment_id_fields($post->ID); ?>
</form>

لینک به ارسال

مشکل بعدی اینه که کامنت ها رو نشون نمی ده...

و به این صورت نشون می ده...

که البته پیغام خطا مربوط به مد reply هست ظاهراً...

Link

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home3/mysite/public_html/wp/wp-content/themes/theme.v1.0.1/comments.php on line 46

Anonymous

و هیچ کامنتی رو نشون نمی ده...حتی نام نویسنده و تاریخ رو هم نشون نمی ده...

1- مشکل از کجاست با توجه به کد بالا؟...

2- اون پیغام خطا رو چطور رفع کنم؟...

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

پارامتر ابتدایی تعریف نشده و آرایه نیست

این خط رو تغییر دهید


<?php comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'])) ?>

لینک به ارسال

چه تغییری؟...

منظور از پارامتر ابتدایی و آرایه کدوم هاست؟...متوجه نشدم...

کد رو جایگزین خط comment_reply_link کنید

لینک به ارسال

ببخشید من هر وقت قالب طراحی میکنم و نصبش میکنم برای ورود به صفحه مدیریت این پیغامو میده

Warning: Cannot modify header information - headers already sent by (output started at /home3/itpir/public_html/wp-content/themes/homateb/functions.php:9) in/home3/itpir/public_html/wp-includes/pluggable.php on line 896

و کامنت هم میزارم میگه قبلا چنین پیامی گفته اید لطفا کمکم کنید

لینک به ارسال

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

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

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

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

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

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

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

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

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