رفتن به مطلب

casni

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

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

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

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

  1. افزونه های نصب شده من ایناست :

    wp-jalali نگارش 4.4

    WP-PageNavi نگارش 2.82

    WP-PostViews نگارش 1.60

    پخش کننده JW نسخه 6 برای وردپرس نگارش 2.1.1

    WP-Parsi Iran weather نگارش 1.6

    ولی بازم افزونه به صورت کلمه " بابل " نشون میده. قابل حل شدنه؟ چطوری..

    آدرس سایت : www.salamfariman.ir

    ممنون

  2. این تغییراتی که شما میگید رو روی کدهای خودم چطوری اعمال کنم.

    این کدهای منه..


    <ul id="tabs" class="tabs" style="margin:15px 0 0 0">
    <li><a href="#" rel="viewed" class="selected">پر بیننده ترین</a></li>
    <li><a href="#" rel="discussed">پر بحث ترین</a></li>
    <li><a href="#" rel="commented">پر مخاطبان</a></li>
    </ul>

    <div class="clear"></div>

    <div id="viewed" class="tabcontent">
    <?php if (function_exists('get_most_viewed')): ?>
    <ol>
    <?php get_most_viewed('post', $mytheme['viewed']); ?>
    </ol>
    <?php endif; ?>
    </div>

    <div id="discussed" class="tabcontent">
    <ol>
    <?php
    $now = gmdate("Y-m-d H:i:s",time());
    $ap = $mytheme['commented'];
    $popularposts = "SELECT ID, post_title, post_date, comment_count, COUNT($wpdb->comments.comment_post_ID) AS 'popular' FROM $wpdb->posts, $wpdb->comments WHERE comment_approved = '1' AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status = 'publish' AND post_date < '$now' AND comment_status = 'open' GROUP BY $wpdb->comments.comment_post_ID ORDER BY popular DESC LIMIT $ap";
    $posts = $wpdb->get_results($popularposts);
    $popular = '';
    if($posts){
    foreach($posts as $post){
    $post_title = stripslashes($post->post_title);
    $post_date = stripslashes($post->post_date);
    $comments = stripslashes($post->comment_count);
    $guid = get_permalink($post->ID);
    $popular .= '<li><a href="'.$guid.'" title="'.$post_title.'">'.$post_title.'</a>
    <span><a href="'.$guid.'#commenting" class="icomment">'.$comments.' نظر</a></span></li>';
    }
    }echo $popular;
    ?>
    </ol>
    </div>

    <div id="commented" class="tabcontent"><?php if (function_exists('src_simple_recent_comments')) { src_simple_recent_comments($mytheme['comments'], 30, '', ''); } ?></div>

    <div id="tags" class="tabcontent"><?php wp_tag_cloud('smallest=8&largest=22'); ?></div>

    <script type="text/javascript">
    var tabs=new ddtabcontent("tabs")
    tabs.setpersist(false)
    tabs.setselectedClassTarget("link")
    tabs.init()
    </script>

  3. فایل functions.php سایت مشکل پیدا کرده. سایت بالا میاد و ولی به قسمت مدیریت سایت وارد نمیشه و این خطا رو میده:

    [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home3/salamfar/public_html/wp-content/themes/salam fariman/functions.php:660) in [b]/home3/salamfar/public_html/wp-includes/pluggable.php[/b] on line [b]876[/b]

    مشکل از کجاست؟

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