刀客征途

关注高校改革 聚焦校园生活

刀客征途 header image 2

怪哉!popular content和Cutline Theme

01月 25th, 2008 · 248 views· 1 Comment

菜鸟博客糗事多,前几天,刀客碰到的难题是,无法在博客里用中文wordpress工具箱在侧边栏添加热评网友及评论内容,最后找到傻瓜式插件Fresh comments才得以在侧边栏成功添加评论内容。今天,刀客碰到的难题是,无法利用popular content在侧边栏任一位置(?因为我已成功在侧边栏最下端添加了热门日志,可以换位置就不行了,原因未知)添加热门日志,热门分类日志,和某一时间段热门日志(插件popular content功能非常强大,可以在文章下面显示流行度,可以在文章页或侧边栏添加不同类型的热门日志)。我的主题是Cutline 1.1,侧边栏PHP文件为:

(<div id="sidebar">
 <ul class="sidebar_list">
  <?php if (!function_exists(’dynamic_sidebar’) || !dynamic_sidebar()) : ?>

 
  <li class="widget">
   <h2>Search It!</h2>
   <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
  </li>
           <li class="widget">
   <h2>Recent Entries</h2>
   <ul>
    <?php query_posts(’showposts=10′); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><?php the_title() ?></a><span class="recent_date"><?php the_time(’n.j’) ?></span></li>
    <?php endwhile; endif; ?>
    <li><a href="<?php bloginfo(’url’); ?>/archives" title="Visit the archives!">Visit the archives for more!</a></li>
   </ul>
  </li>
  <?php if (function_exists(’get_flickrrss’)) { ?>
  <li class="widget">
   <h2><span class="flickr_blue">Flick</span><span class="flickr_pink">r</span></h2>
   <ul class="flickr_stream">
    <?php get_flickrrss(); ?>
   </ul>
           </li>
                 <?php } ?>
                       <?php get_links_list(’id’); ?>  
                          </li>
                       <?php endif; ?>
     
              
<li class="widget">
   <h2>热门日志</h2>
                        <ul>
                        <?php akpc_most_popular(); ?>
                        </ul>
                 </li>
我已在该位置添加了popular content建议的代码,能在侧边栏正常显示,移到其它地方,要么不显示,要么显示不正常)
</div> )

那个高手能为我指点一下呢?菜鸟刀客将不甚感激!

Popularity: 9%

本文标题:怪哉!popular content和Cutline Theme

本文链接:http://chenjinghua.net/popular-content-and-cutline-theme-67.html

分享、收藏这篇文章               

Tags: 挨踢网事

关于  "怪哉!popular content和Cutline Theme" 有 1 篇评论 ↓

  • 1 刀河 // Jan 28, 2008 at 10:47 am

    你的侧边栏支持widget吧?呵呵,可能是你在后台主题用了widget,然后哦怎么改都不显示自定义的代码。你可以在widget加上自己想加的代码。

发表评论