رفتن به مطلب

toska256

عضو سایت
  • تعداد ارسال‌ها

    2
  • تاریخ عضویت

  • آخرین بازدید

نوشته‌ها ارسال شده توسط toska256

  1. من چند وقت دنبال همچین کدی هستم که بعد ارسال نظر اعلام کنه نظر ثبت شد

    این کد رو هر جای صفحه کامنت که مشد گذاشتم اما پیغامی نمیاد بعد ثبت نظر !!

    این کد صفحه نظراته کجاش بزارم

    <?php

    /* Don't remove these lines. */

    add_filter('comment_text', 'popuplinks');

    foreach ($posts as $post) { start_wp();

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <title><?php echo get_settings('blogname'); ?> - نظرات براي <?php the_title(); ?></title>

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>;

    charset=<?php echo get_settings('blog_charset'); ?>" />

    <style type="text/css" media="screen">

    @import url( <?php bloginfo('stylesheet_url'); ?> );

    </style>

    </head>

    <div id="comments">

    <div id="comments-header"><div id="comments-header-inner">

    <?php } ?>

    <?php

    // this line is WordPress' motor, do not delete it.

    $comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';

    $comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';

    $comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';

    $comments = get_approved_comments($id);

    $post = get_post($id);

    if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie

    echo(get_the_password_form());

    } else { ?>

    <?php if ($comments) { ?>

    <?php foreach ($comments as $comment) { ?>

    <div class="comment-main" id="comment-<?php comment_ID() ?>">

    <div class="gravatar"><?php echo get_avatar( $comment, 35); ?></div>

    <div class="comment-meta">

    <span class="comment-meta-author"><?php comment_author_link(); ?></span>

    <?php comment_date('M jS, Y') ?> در <?php comment_time() ?>

    </div>

    <div class="comment-body">

    <?php comment_text() ?>

    </div>

    </div>

    <?php } // end for each comment ?>

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

    <p></p>

    <?php } ?>

    <div id="comment-form"><div id="comment-form-inner">

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

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

    <p>

    <label for="author">نام</label>

    <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />

    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

    <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />

    </p>

    <p>

    <label for="email">ايميل</label>

    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />

    </p>

    <p>

    <label for="url">وب سايت</label>

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

    </p>

    <p>

    <label for="comment">پيام</label>

    <textarea name="comment" id="comment" cols="40" rows="4" tabindex="4"></textarea>

    </p>

    <p>

    <p><input name="submit" type="submit" id="submit" tabindex="5" value="ارسال پيام" />

    <?php comment_id_fields(); ?>

    </p>

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

    </form>

    <?php } else { // comments are closed ?>

    <p>نظرات غير فعال است</p>

    <?php }

    } // end password check

    ?>

    <div id="comments-info">

    <p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"></a></p>

    <?php if ('open' == $post->ping_status) { ?>

    <p class="trackback"><br /><em></em></p>

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

    }

    ?>

    <!-- // this is just the end of the motor - don't touch that line either :) -->

    <?php //} ?>

    </div>

    </body>

    </html>

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

    اسمشnishita

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

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

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

    http://upload7.ir?p=action&q=downloa...JruCTPBBaOMBAD

  2. من میخواستم پیغامی پس از ثبت نظر در وردپرس بیاد و به کاربر بگه که نظر ثبت شد.

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

    میخواستم ببینم چکار کنم

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

    کسی متونه کد رو طوری اصلاح کنه که پیغام " نظر ثبت شد " پس از ثبت نظر بیاد

    ترجیحا مثلا با رنگ سبز

    <?php

    /* Don't remove these lines. */

    add_filter('comment_text', 'popuplinks');

    foreach ($posts as $post) { start_wp();

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <title><?php echo get_settings('blogname'); ?> - نظرات براي <?php the_title(); ?></title>

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>;

    charset=<?php echo get_settings('blog_charset'); ?>" />

    <style type="text/css" media="screen">

    @import url( <?php bloginfo('stylesheet_url'); ?> );

    </style>

    </head>

    <div id="comments">

    <div id="comments-header"><div id="comments-header-inner">

    <?php } ?>

    <?php

    // this line is WordPress' motor, do not delete it.

    $comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';

    $comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';

    $comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';

    $comments = get_approved_comments($id);

    $post = get_post($id);

    if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie

    echo(get_the_password_form());

    } else { ?>

    <?php if ($comments) { ?>

    <?php foreach ($comments as $comment) { ?>

    <div class="comment-main" id="comment-<?php comment_ID() ?>">

    <div class="gravatar"><?php echo get_avatar( $comment, 35); ?></div>

    <div class="comment-meta">

    <span class="comment-meta-author"><?php comment_author_link(); ?></span>

    <?php comment_date('M jS, Y') ?> در <?php comment_time() ?>

    </div>

    <div class="comment-body">

    <?php comment_text() ?>

    </div>

    </div>

    <?php } // end for each comment ?>

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

    <p></p>

    <?php } ?>

    <div id="comment-form"><div id="comment-form-inner">

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

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

    <p>

    <label for="author">نام</label>

    <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />

    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

    <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />

    </p>

    <p>

    <label for="email">ايميل</label>

    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />

    </p>

    <p>

    <label for="url">وب سايت</label>

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

    </p>

    <p>

    <label for="comment">پيام</label>

    <textarea name="comment" id="comment" cols="40" rows="4" tabindex="4"></textarea>

    </p>

    <p>

    <p><input name="submit" type="submit" id="submit" tabindex="5" value="ارسال پيام" />

    <?php comment_id_fields(); ?>

    </p>

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

    </form>

    <?php } else { // comments are closed ?>

    <p>نظرات غير فعال است</p>

    <?php }

    } // end password check

    ?>

    <div id="comments-info">

    <p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"></a></p>

    <?php if ('open' == $post->ping_status) { ?>

    <p class="trackback"><br /><em></em></p>

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

    }

    ?>

    <!-- // this is just the end of the motor - don't touch that line either :) -->

    <?php //} ?>

    </div>

    </body>

    </html>

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