没有合适的资源?快使用搜索试试~ 我知道了~
Discuz3.2网站sitemap.php地图优化版源码分享.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 44 浏览量
2021-11-11
21:01:26
上传
评论
收藏 18KB PDF 举报
温馨提示
试读
2页
Discuz3.2网站sitemap.php地图优化版源码分享.pdf
资源推荐
资源详情
资源评论
Discuz 3.2 网站 sitemap.php 地图优化版源码分享
每页显示 100 个最新帖子,自动罗列所有贴
注意:如果网站是 UTF-8 的,修改下面“无界投融”的时候需要转码
转码: http://www.wjtrw.com/UTF-8.html
预览: http://www.ptuso.com/sitemap.php
代码:(保存为 sitemap.php ,传到网站根目录)
1. <?php
2. define('APPTYPEID', 4);
3. define('CURSCRIPT', 'sitemap');
4. require './source/class/class_core.php';
5. $discuz = & discuz_core::instance();
6. $discuz->cachelist = $cachelist;
7. $discuz->init();
8. $navtitle=' 无界投融网站地图 ';
9. $metakeywords=' 无界投融 ';
10. $metadescription=' 无界投融 ';
11. include template('common/header');echo '
12. <style type="text/css">
13. a:link {color: #333; text-decoration: none;}
14. a:visited {text-decoration: none; color: #666;}
15. a:hover {text-decoration: none; color: #F90;}
16. a:active {text-decoration: none; color: #F90;}
17. .newtid{width:99.7%;float:left; margin-top:10px; border: 1px dotted #F90;
margin-bottom:10px; }
18. .newtid li{padding-left:2%;font-size: 12px;width:48%; float:left;line-height:
25px;}
19. .newtid li a{color: #333;}
20. .newtit strong a{position: absolute;bottom: 98765px;}
21. .newtid h2{font-size: 16px;line-height: 45px;}
22. </style>
23. <ul class="newtid">';
24. $site_num = DB::result(DB::query("SELECT COUNT(`tid`) FROM
".DB::table('forum_thread')." as a inner join ".DB::table('forum_forum')." as
b on a.fid=b.fid where a.displayorder=0 ORDER BY a.tid DESC"));
25. $site_num = $site_num ? $site_num :0;
26. $site_listnum = 100;
27. $site_page = intval($_G['gp_page']) ? intval($_G['gp_page']) :1;
28. $site_max = $site_page > 0 ? $site_listnum * ($site_page-1) : 0;
29. $site_max2 = $site_max2 + 100;
30. $querys = DB::query("SELECT a.tid,a.subject,a.fid,b.name FROM
".DB::table('forum_thread')." as a inner join ".DB::table('forum_forum')." as
资源评论
筱筱笎琞
- 粉丝: 9
- 资源: 15万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功