建议官方制作个帮助文档 6kbbs官方使用的门户首页模板。
- <!--<?php
- print <<<EOT
- -->
- <div class="portal_1">
- <div class="portal_1_1"><ul class="commonul">{$portal->getTopics(0,0,19,3,0,1)}</ul></div>
- <div class="portal_1_2">{portal_main_slideshow}<span class="portal_title1" style="margin:5px 0px;">热门主题</span><ul class="commonul">{$portal->getTopics(0,1,10,0,0)}</ul></div>
- <div class="portal_1_3"><span class="portal_title1">头条资讯</span><ul class="block_ul">{$portal->getArticles(0,1,0,2,2,60)}</ul>
- <div class="div_clear" style="height:8px;"></div>
- <span class="portal_title1">活跃用户</span><div class="portal_1_3_user"><ul>{$portal->getUsers(2,8)}</ul></div></div>
- <div class="div_clear"></div>
- </div>{portal_middle}
- <div class="portal_2">
- <div class="portal_2_1">
- <div class="portal_news_block">
- <span class="portal_title2">程序发布</span>
- <div class="div_clear" style="height:8px;"></div>
- <ul class="commonul">{$portal->getTopics(7,0,11,0,2)}</ul>
- </div>
- </div>
- <div class="portal_2_2">
- <div class="portal_news_block">
- <span class="portal_title2">使用问题</span>
- <div class="div_clear" style="height:8px;"></div>
- <ul class="commonul">{$portal->getTopics(8,0,11,0,2)}</ul>
- </div>
- </div>
- <div class="portal_2_3">
- <div class="portal_news_block">
- <span class="portal_title2">站长交流</span>
- <div class="div_clear" style="height:8px;"></div>
- <ul class="commonul">{$portal->getTopics(12,0,11,0,2)}</ul>
- </div>
- </div>
- <div class="div_clear"></div>
- </div>
- <div class="portal_2">
- <div class="portal_2_1">
- <div class="portal_news_block">
- <span class="portal_title2">站长频道</span>
- <div class="div_clear" style="height:8px;"></div>
- <ul class="block_ul">{$portal->getArticles(1,0,0,10,1,120)}</ul>
- </div>
- </div>
- <div class="portal_2_2">
- <div class="portal_news_block">
- <span class="portal_title2">网站运营</span>
- <div class="div_clear" style="height:8px;"></div>
- <ul class="block_ul">{$portal->getArticles(2,0,0,10,1,120)}</ul>
- </div>
- </div>
- <div class="portal_2_3">
- <div class="portal_news_block">
- <span class="portal_title2">业界新闻</span>
- <div class="div_clear" style="height:8px;"></div>
- <ul class="block_ul">{$portal->getArticles(3,0,0,14,0,0)}</ul>
- </div>
- </div>
- <div class="div_clear"></div>
- </div>
- <!--
- EOT;
- ?>
- -->
具体的代码说明:
/* getTopics(版块ID, 帖子属性,数目,加粗显示的数目,显示图片的数目,是否显示版块名称)
* 帖子属性:0:新帖;1:热门;2:精华
*
*/
/* getUsers(类型,数目)
* 类型:0:最新注册; 1:活跃用户; 2:最受欢迎(fans最多)
*/
/* getArticles(栏目ID,文章属性, 排序, 数目,图文数目,图文字符数量,是否显示栏目名称)
* 文章属性:0:普通;1:头条;2:推荐;3:高亮;4:滚动;5:加粗;6:跳转
* 排序:0:发布时间;1:人气
*/
这个文章,我找了至少3个小时才找到,希望顶置!
所在版块: 使用问题 - 发表时间: 2010-12-23 09:31
|