China
|
本帖最后由 vincent 于 2013-8-11 19:37 编辑
NAME:sitemap.php
ADD The following content- <?php
- define('APPTYPEID', 4);
- define('CURSCRIPT', 'sitemap');
- require './source/class/class_core.php';
- $discuz = & discuz_core::instance();$discuz->cachelist = $cachelist;$discuz->init();$navtitle='Luckt Tail Sitemap';
- $metakeywords=$_G['seokeywords']['forum'];
- $metadescription=$_G['bbname'].$_G['seodescription']['forum'];
- include template('common/header');
- echo '<style type="text/css">.newtid{width:100%;float:left}.newtid li{padding-left:2%;font-size: 14px;width:48%;float:left;line-height: 25px;}.newtid li a{color: #036;}.newtit strong a{position: absolute;bottom: 98765px;}.newtid h2{font-size: 16px;line-height: 45px;}</style><a href="'.$_G['siteurl'].'">'.$_G['setting']['bbname'].'</a> New Post</h2><ul class="newtid">';$querys = DB::query("SELECT a.tid,a.subject,a.fid,b.name FROM ".DB::table('forum_thread')." a inner join ".DB::table('forum_forum')." b on a.fid=b.fid ORDER BY a.tid DESC LIMIT 0,1000");$i=1;while($threadfid = DB::fetch($querys)){echo '<li><em>[<a href="forum.php?mod=forumdisplay&fid='.$threadfid['fid'].'">'.$threadfid['name'].'</a>]</em> <a href="forum.php?mod=viewthread&tid='.$threadfid['tid'].'" target="_blank">'.$threadfid['subject'].'</a></li>';$i++;}echo '</ul>';
- include template('common/footer');
- ?>
Copy the Code DEMO:
|
This post contains more resources
You have to Login for download or view attachment(s). No Account? Register
x
Related collections:
- · Tricks|Threads: 23, Subscribe: 3
|