【插件名称】:【超级美化】AL8 首页六格显示 for Discuz 5.5.0
【适合版本】:Discuz 5.5
【原作者】: alan888
【 出处 】:http://www.alan888.com/Discuz/viewth...47&highlight=al8DZ 5.0补增益版:By djkevin (在AL8首页4格的个人资料加入个人图像 For 5.0)
DZ 5.5修改整理:By 范伦铁诺(修正5.5与5.0不同处并整理)
DZ 5.5超级美化:By 范伦铁诺(2007.04.02完成)演示:
http://www.k-song....ex.php数据库升级:无
修改模板:1个
修改PHP:8个
加入文件: foruminfo.htm 及图片(附件1&2)
修改文件:
/index.php
/logging.php
/topicadmin.php
/register.php
/include/newthread.inc.php
/include/newreply.inc.php
/include/counter.inc.php
/include/cache.func.php
/templates/default/discuz.htm
解说:
花了很长的时间,再不会增加数据库的情况下
再度完成美化部份,内容大致都是以原来的内容再更改出来的
融合美化flash,原来的最新主题跟回覆外也再增加热门精华的查询
感觉首页虽然变重了,但是论坛人员普遍都喜欢,也是一样的原因
,由AL8衍生的六格,而且只会分享在AL8,希望各位会喜欢这插件。
By 【K歌党】管理顾问@范伦铁诺
注意:
『1』此版安装程繁杂,安装前请记得备份,初学者需再详细确认步骤。
『2』此版于之前alan888站长的教学缺少了 include/editpost.inc.php的修改,
因为此部份修改,会造成编辑帖子时严重错误,在对四格影响不大的情况
下,小弟省略此步骤,若有需此修改者,请再自行研究。
『3』因5.5.0会对原5.0版本上的今日到访人数(forumdata/cache/cache_todayvisit.php)
有数据库的处理错误,故此行已于下列教学中修正为今日发帖总数,若有需要原修改
者,请再自行研究。
『4』此版本小弟自我测试无错误,若有因为过程上造成使用者的问题或其它损害,小弟并不负责任何责任
『5』原来已安装小弟小的AL8四格者,仅须
重新上传附件及补充
绿字修改部份即可,
说明:
1. 修改 include/cache.func.php
修改完成此文件后请即时到后台→更新缓存找
复制程式
'medals' => array('medals')
更换为
复制程式
'medals' => array('medals'),
'newtopic' => array('newtopic'),
'newreply' => array('newreply'),
'topdigest' => array('topdigest'),
再找
复制程式
case 'medals':
$table = 'medals'
$cols = 'medalid, name, image'
$conditions = "WHERE available=Ƈ'";
break;
在下面加上
(注意填妥"填上不需要显示回帖区域的 fid 编号, 以逗号作分格, 最后一个不用加上逗号")填上不需要显示帖子区域由于使用快取档型式, 故某些私密区不能判断会员权限来显示发帖及回帖, 所以要先修改及取代下红字部份 "填上
不需要显示帖子区域的 fid 编号, 以逗号作分格, 最后一个不用加上逗号" 部份, 例如希望不显示 fid 1,3,5 便填上 "$fids="1,3,5";"
如果希望全部显示者, 请将下两段的
NOT IN ($fids) (蓝色字显示部份)删除, 否则会出现数据错误的显示
复制程式
case newtopic:
$table = 'threads t'
$cols = "t.tid, t.typeid, t.subject, t.author,t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight,f.name, tt.name AS idname";
$fids="填上不需要显示回帖区域的 fid 编号, 以逗号作分格, 最后一个不用加上逗号";
$conditions = "LEFT JOIN {$tablepre}threadtypestt ON (tt.typeid=t.typeid) LEFT JOIN {$tablepre}forums f ON(f.fid=t.fid) WHERE t.fid<>'$fid' AND f.fid NOT IN ($fids) ORDERBY t.dateline DESC LIMIT 0, 14";
break;
case newreply:
$table = 'threads t'
$cols = "t.tid, t.typeid, t.subject, t.author,t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight,f.name, tt.name AS idname";
$fids="填上不需要显示回帖区域的 fid 编号, 以逗号作分格, 最后一个不用加上逗号";
$conditions = "LEFT JOIN {$tablepre}threadtypestt ON (tt.typeid=t.typeid) LEFT JOIN {$tablepre}forums f ON(f.fid=t.fid) WHERE t.fid<>'$fid' AND f.fid NOT IN ($fids)AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 14";
break;
case topdigest:
$table = 'threads t'
$cols = "t.tid, t.typeid, t.subject, t.author,t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight,f.name, tt.name AS idname";
$fids="填上不需要显示回帖区域的 fid 编号, 以逗号作分格, 最后一个不用加上逗号";
$conditions = "LEFT JOIN {$tablepre}threadtypestt ON (tt.typeid=t.typeid) LEFT JOIN {$tablepre}forums f ON(f.fid=t.fid) WHERE t.fid<>'$fid' AND f.fid NOT IN ($fids) ANDdigest>0 ORDER BY rand() LIMIT 0, 14";
break;
case todayvisit:
$table = 'members'
$cols = "COUNT(*)";
$datecut = time() - (3600 * 24);
$conditions = "WHERE lastactivity>='$datecut' ORDER BY lastvisit DESC";
break;
找
复制程式
$GLOBALS['totlamembers'] = $data['totalmembers'] = $db->result($query, 0);
在下面加上
复制程式
$datecut = time() - (3600 * 24);
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}members WHERE regdate>='$datecut'");
$GLOBALS['todaynewmems'] = $data['todaynewmems'] = $db->result($query, 0);
找
[/code] case 'forumlinks':
global $forumlinkstatus;
上面加上
复制程式
case 'newreply':
$hack_cut_str = 36;
$new_reply_threadlist = array();
$rthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
while($rthread = $db->fetch_array($query)){
$rthread['forumname'] = $rthread['name'];
$rthread['view_subject'] = $rthread[idname] ? cutstr("$rthread[idname] $rthread[subject]",$hack_cut_str) :cutstr($rthread['subject'],$hack_cut_str);
$rthread['subject'] = cutstr($rthread['subject'],46);
$rthread['date']= gmdate('Y-n-j G:i', $rthread['dateline'] + 8 * 3600);
$rthread['lastreplytime']= gmdate('Y-n-j G:i', $rthread['lastpost'] + 8 * 3600);
if($rthread['highlight']) {
$string = sprintf('%02d', $rthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$rthread['highlight'] = 'style="'
$rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : ''
$rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : ''
$rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : ''
$rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : ''
$rthread['highlight'] .= '"'
} else {
$rthread['highlight'] = ''
}
$new_reply_threadlist = "<ahref=\"redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost\"title=\"论坛: $rthread[forumname]\r\n标题: $rthread[subject]\r\n作者:$rthread[author]\r\n发表时间: $rthread[date]\r\n浏览次数: $rthread[views]次\r\n回覆: $rthread[replies] 次\r\n最后回覆: $rthread[lastreplytime]\r\n最后发表:$rthread[lastposter]\"$rthread[highlight]>$rthread[view_subject]</a><br>";
$data[] = array('content' => $new_reply_threadlist);
}
break;
case 'newtopic':
$hack_cut_str = 36;
$new_post_threadlist = array();
$nthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
while($nthread = $db->fetch_array($query)){
$nthread['forumname'] = $nthread['name'];
$nthread['view_subject'] = $nthread[idname] ? cutstr("$nthread[idname] $nthread[subject]",$hack_cut_str) :cutstr($nthread['subject'],$hack_cut_str);
$nthread['subject'] = cutstr($nthread['subject'],46);
$nthread['date']= gmdate('Y-n-j G:i', $nthread['dateline'] + 8 * 3600);
$nthread['lastreplytime']= gmdate('Y-n-j G:i', $nthread[lastpost] + 8 * 3600);
if($nthread['highlight']) {
$string = sprintf('%02d', $nthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$nthread['highlight'] = 'style="'
$nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : ''
$nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : ''
$nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : ''
$nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : ''
$nthread['highlight'] .= '"'
} else {
$nthread['highlight'] = ''
}
$new_post_threadlist = $nthread[replies] ? "<ahref=\"redirect.php?tid=$nthread[tid]&goto=lastpost#lastpost\"title=\"论坛: $nthread[forumname]\r\n标题: $nthread[subject]\r\n作者:$nthread[author]\r\n发表时间: $nthread[date]\r\n浏览次数: $nthread[views] 次\r\n回覆: $nthread[replies] 次\r\n最后回覆: $nthread[lastreplytime]\r\n最后发表:$nthread[lastposter]\" $nthread[highlight]>$nthread[view_subject]</a><br>" : "<ahref=\"redirect.php?tid=$nthread[tid]&goto=lastpost#lastpost\"title=\"论坛: $nthread[forumname]\r\n标题: $nthread[subject]\r\n作者:$nthread[author]\r\n发表时间: $nthread[date]\r\n浏览次数: $nthread[views]次\r\n回覆: 暂时没有回覆\" $nthread[highlight]>$nthread[view_subject]</a><br>";
$data[] = array('content' => $new_post_threadlist);
}
break;
case 'topdigest':
$hack_cut_str = 39;
$top_digest_threadlist = array();
$rthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
while($rthread = $db->fetch_array($query)){
$rthread['forumname'] = $rthread['name'];
$rthread['view_subject'] = $rthread[idname] ? cutstr("$rthread[idname] $rthread[subject]",$hack_cut_str) :cutstr($rthread['subject'],$hack_cut_str);
$rthread['subject'] = cutstr($rthread['subject'],46);
$rthread['date']= gmdate('Y-n-j G:i', $rthread['dateline'] + 8 * 3600);
$rthread['lastreplytime']= gmdate('Y-n-j G:i', $rthread['lastpost'] + 8 * 3600);
if($rthread['highlight']) {
$string = sprintf('%02d', $rthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$rthread['highlight'] = 'style="'
$rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : ''
$rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : ''
$rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : ''
$rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : ''
$rthread['highlight'] .= '"'
} else {
$rthread['highlight'] = ''
}
$top_digest_threadlist = "<ahref=\"redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost\"title=\"论坛: $rthread[forumname]\r\n标题: $rthread[subject]\r\n作者:$rthread[author]\r\n发表时间: $rthread[date]\r\n浏览次数: $rthread[views]次\r\n回覆: $rthread[replies] 次\r\n最后回覆: $rthread[lastreplytime]\r\n最后发表:$rthread[lastposter]\"$rthread[highlight]>$rthread[view_subject]</a><br>";
$data[] = array('content' => $top_digest_threadlist);
}
break;
2. 修改 include/newthread.inc.php
找
复制程式
showmessage('post_newthread_succeed', "viewthread.php?tid=$tid&extra=$extra");
在上面加上
复制程式
require DISCUZ_ROOT.'./include/cache.func.php'
updatecache('newtopic');
3. 修改 include/newreply.inc.php
找
复制程式
showmessage('post_reply_succeed',"viewthread.php?tid=$tid&pid=$pid&page=".(@ceil(($thread['replies']+ 2) / $ppp))."&extra=$extra#pid$pid");
在上面加上
复制程式
require DISCUZ_ROOT.'./include/cache.func.php'
updatecache('newreply');
updatecache('newtopic');
4. 修改 include/counter.inc.php
找
复制程式
if(!$sessionexists) {
if(strpos($visitor['agent'], 'Netscape')) {
$visitor['browser'] = 'Netscape'
} elseif(strpos($visitor['agent'], 'Lynx')) {
$visitor['browser'] = 'Lynx'
} elseif(strpos($visitor['agent'], 'Opera')) {
$visitor['browser'] = 'Opera'
} elseif(strpos($visitor['agent'], 'Konqueror')) {
$visitor['browser'] = 'Konqueror'
} elseif(strpos($visitor['agent'], 'MSIE')) {
$visitor['browser'] = 'MSIE'
} elseif(substr($visitor['agent'], 0, 7) == 'Mozilla') {
$visitor['browser'] = 'Mozilla'
} else {
$visitor['browser'] = 'Other'
}
if(strpos($visitor['agent'], 'Win')) {
$visitor['os'] = 'Windows'
} elseif(strpos($visitor['agent'], 'Mac')) {
$visitor['os'] = 'Mac'
} elseif(strpos($visitor['agent'], 'Linux')) {
$visitor['os'] = 'Linux'
} elseif(strpos($visitor['agent'], 'FreeBSD')) {
$visitor['os'] = 'FreeBSD'
} elseif(strpos($visitor['agent'], 'SunOS')) {
$visitor['os'] = 'SunOS'
} elseif(strpos($visitor['agent'], 'OS/2')) {
$visitor['os'] = 'OS/2'
} elseif(strpos($visitor['agent'], 'AIX')) {
$visitor['os'] = 'AIX'
} elseif(preg_match("/(Bot|Crawl|Spider)/i", $visitor['agent'])) {
$visitor['os'] = 'Spiders'
} else {
$visitor['os'] = 'Other'
}
更换为
复制程式
if(!$sessionexists || $discuz_uid) {
if(strpos($visitor['agent'], "MSIE 7.0")) {
$visitor_browser = "Internet Explorer 7.0";
$visitor['browser'] = 'MSIE'
} elseif(strpos($visitor['agent'], "MSIE 6.0")) {
$visitor_browser = "Internet Explorer 6.0";
$visitor['browser'] = 'MSIE'
} elseif(strpos($visitor['agent'], "MSIE 5.5")) {
$visitor_browser = "Internet Explorer 5.5";
$visitor['browser'] = 'MSIE'
} elseif(strpos($visitor['agent'], "MSIE 5.0")) {
$visitor_browser = "Internet Explorer 5.0";
$visitor['browser'] = 'MSIE'
} elseif(strpos($visitor['agent'], "MSIE 4.01")) {
$visitor_browser = "Internet Explorer 4.01";
$visitor['browser'] = 'MSIE'
} elseif(strpos($visitor['agent'], "Netscape")) {
$visitor_browser = "Netscape";
$visitor['browser'] = 'Netscape'
} elseif(strpos($visitor['agent'], "Lynx")) {
$visitor_browser = "Lynx";
$visitor['browser'] = 'Lynx'
} elseif(strpos($visitor['agent'], "Opera")) {
$visitor_browser = "Opera";
$visitor['browser'] = 'Opera'
} elseif(strpos($visitor['agent'], "Konqueror")) {
$visitor_browser = "Konqueror";
$visitor['browser'] = 'Konqueror'
} elseif(strpos($visitor['agent'], "Firefox")) {
$visitor_browser = "Firefox";
$visitor['browser'] = 'Mozilla'
} elseif(strpos($visitor['agent'], "Mozilla/5.0")) {
$visitor_browser = "Mozilla";
$visitor['browser'] = 'Mozilla'
} else {
$visitor_browser = "其它";
$visitor['browser'] = 'Other'
}
if(strpos($visitor['agent'], "NT 5.1")) {
if(strpos($visitor['agent'], "SV1")){
$visitor_os = "Windows XP SP2";
$visitor['os'] = 'Windows'
}else{
$visitor_os = "Windows XP";
$visitor['os'] = 'Windows'
}
}elseif(strpos($visitor['agent'], "NT 6.0")) {
$visitor_os = "Win Vista";
$visitor['os'] = 'Windows'
}elseif(strpos($visitor['agent'], "NT 5.2")) {
$visitor_os = "Windows Server 2003";
$visitor['os'] = 'Windows'
}elseif(strpos($visitor['agent'], "NT 5")) {
$visitor_os = "Windows 2000";
$visitor['os'] = 'Windows'
} elseif(strpos($visitor['agent'], "4.9")) {
$visitor_os = "Windows ME";
$visitor['os'] = 'Windows'
} elseif(strpos($visitor['agent'], "NT 4")) {
$visitor_os = "Windows NT 4.0";
$visitor['os'] = 'Windows'
} elseif(strpos($visitor['agent'], "98")) {
$visitor_os = "Windows 98";
$visitor['os'] = 'Windows'
} elseif(strpos($visitor['agent'], "95")) {
$visitor_os = "Windows 95";
$visitor['os'] = 'Windows'
} elseif(strpos($visitor['agent'], "Mac")) {
$visitor_os = "Mac";
$visitor['os'] = 'Mac'
} elseif(strpos($visitor['agent'], "Linux")) {
$visitor_os = "Linux";
$visitor['os'] = 'Linux'
} elseif(strpos($visitor['agent'], "Unix")) {
$visitor_os = "Unix";
$visitor['os'] = 'Other'
} elseif(strpos($visitor['agent'], "FreeBSD")) {
$visitor_os = "FreeBSD";
$visitor['os'] = 'FreeBSD'
} elseif(strpos($visitor['agent'], "SunOS")) {
$visitor_os = "SunOS";
$visitor['os'] = 'SunOS'
} elseif(strpos($visitor['agent'], "OS/2")) {
$visitor_os = "OS/2";
$visitor['os'] = 'OS/2'
}elseif(strpos($visitor['agent'], "AIX")) {
$visitor_os = "AIX";
$visitor['os'] = 'AIX'
} elseif(preg_match("/(Bot|Crawl|Spider)/i", $visitor['agent'])) {
$visitor_os = "Spiders";
$visitor['os'] = 'Spiders'
} else {
$visitor_os = "其他";
$visitor['os'] = 'Other'
}
5. 修改 topicadmin.php
找
(第一段约第 15 行那句)复制程式
require_once DISCUZ_ROOT.'./include/misc.func.php'
在下面加上
复制程式
require_once DISCUZ_ROOT.'./include/cache.func.php'
找
复制程式
showmessage((isset($resultarray['message']) ? $resultarray['message'] : 'admin_succeed'), $resultarray['redirect']);
在上面加上
复制程式
updatecache('newreply');
updatecache('newtopic');
6. 修改 logging.php
找
复制程式
在下面加上
复制程式
require_once DISCUZ_ROOT.'./include/cache.func.php'
updatecache('todayvisit');
7. 修改 index.php
找
复制程式
$searchboxstatus = substr(sprintf('%03b', $qihoo_searchbox), -1, 1);
上方加入
复制程式
//------------图像 by keven
$member_query = $db->query("SELECT * FROM {$tablepre}members m, {$tablepre}memberfields mf
WHERE m.uid='$discuz_uid' AND mf.uid='$discuz_uid'");
$member = $db->fetch_array($member_query);
$member['lastvisit'] = gmdate("$dateformat $timeformat", $member['lastvisit'] + ($timeoffset * 3600));
$member['usernameenc'] = rawurlencode($member['username']);
$allowfriendcheck = array($member['allowfriend'] => 'checked');
$avatypecheck = array($member['avatype'] => 'checked');
if(!$member[avatar]){
$member[avatar]="images/avatars/noavatar.gif";
}
//-------------图像 END
找
复制程式
$catlist = $forumlist = $sublist = $pmlist = array();
在上面加上
绿字部份为增加的美化部份//-----------hack AL8 Info
if(!$statstatus && $discuz_uid){
require_once DISCUZ_ROOT.'./include/counter.inc.php'
}
require_once DISCUZ_ROOT.'./include/misc.func.php'
$mem_home = convertip($onlineip, $datadir = "./");
@include './forumdata/cache/cache_newtopic.php'
@include './forumdata/cache/cache_newreply.php'
@include './forumdata/cache/cache_topdigest.php'
//-----------hack AL8 Info End
找
复制程式
'forumlinks', 'birthdays', 'supe_updateusers'
在后面插入
复制程式
9. 修改 register.php
找
复制程式
$styleid = $styleid ? $styleid : $_DCACHE['settings']['styleid'];
在下面加上
复制程式
$datecut = time() - (3600 * 24);
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}members WHERE regdate>='$datecut'");
$todaynewmems = $db->result($query, 0);
找
复制程式
在上面加上
复制程式
$_DCACHE['settings']['todaynewmems'] = $todaynewmems;
8. 修改 discuz 模板
找到及删除
复制程式
<div title="menu" class="popupmenu_popup" id="creditlist_menu" style="display: none">
<div class="popupmenu_option" style="text-align: left">
{lang credits}: $credits<br>
<!--{loop $extcredits $id $credit}-->
$credit[title]: $GLOBALS['extcredits'.$id] $credit[unit]<br>
<!--{/loop}-->
</div></div>
找
[code]<br>
<br>
{lang credits}: <span class="bold smalltxt">$credits</span><span id="creditlist" onmouseover="showMenu(this.id)">{langcredits_detail}</span> / {lang index_status}:
<!--{if $validdays}-->
<a href="member.php?action=groupexpiry"><span class="bold">$grouptitle</span>($validdays)</a>
<!--{else}-->
<span class="bold">$grouptitle</span>
<!--{/if}-->
<!--{if $allowinvisible && $discuz_uid}-->{lang online_status}:
<!--{if !empty($invisible)}-->
<a href="member.php?action=switchstatus"title="{lang login_switch_normal_mode}" id="ajax_switchstatus"onclick="ajaxmenu(event, this.id, 2000, 'changestatus', 0)">{langlogin_invisible_mode}</a>
<!--{else}-->
<a href="member.php?action=switchstatus"title="{lang login_switch_invisible_mode}" id="ajax_switchstatus"onclick="ajaxmenu(event, this.id, 2000, 'changestatus', 0)">{langlogin_normal_mode}</a>
<!--{/if}-->
<!--{/if}--><br>
{lang your_lastvisit} <span class="smalltxt">$lastvisittime</span><br>
</div>
<div class="right" style="line-height: 18px;">
<a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a> |
<a href="digest.php">{lang digest}</a> |
<a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)">{lang mark_read}</a>
<!--{if $rssstatus}--><a href="rss.php?auth=$rssauth"target="_blank"><img src="images/common/xml.gif" border="0"class="absmiddle" alt="{lang rss_subscribe_all}"/></a><!--{/if}-->
<br>
{lang total} <span class="smalltxt">$threads</span> {langindex_threads} / <span class="smalltxt">$posts</span> {langindex_posts} / {lang index_today} <spanclass="smalltxt">$todayposts</span> {langindex_posts}<br>
{lang total} <span class="smalltxt">$totalmembers</span>{lang index_members} / {lang welcome_newmember} <ahref="space.php?username=$memberenc"><spanclass="bold">$lastmember</span></a>
</div>
</div><br>
<!--{if empty($gid)}-->
<!--{if !empty($announcements)}-->
<divid="announcement">$announcements</div><scripttype="text/javascript">announcement();</script>
<!--{/if}-->
更换为
[code]</div>
<div class="right" style="line-height: 18px;">
<!--{if !empty($stylejumpstatus)}-->
<select onchange="if(this.options[this.selectedIndex].value != '') {
<!--{if $rewritestatus && in_array(CURSCRIPT, array('forumdisplay', 'viewthread', 'viewpro'))}-->
<!--{echo "var thisurl ='".substr($_SERVER[SCRIPT_FILENAME], strrpos($_SERVER[SCRIPT_FILENAME],'/')+1).'?'.$_SERVER[QUERY_STRING]."'";}-->
<!--{else}-->
var thisurl = document.URL.replace(/[&?]styleid=.+?&sid=.+?$/i, '');
<!--{/if}-->
window.location=(thisurl.replace(/\#.+$/,'')+(thisurl.match(/\?/) ? '&' :'?')+'styleid='+this.options[this.selectedIndex].value+'&sid=$sid')}">
<option value="">{lang style}</option>
<option value="">----------</option>
<!--{loop $stylejump $id $name}-->
<option value="$id">$name</option>
<!--{/loop}-->
</select>
<!--{/if}-->
<!--{if $rssstatus}--> <a href="rss.php?auth=$rssauth"target="_blank"><img src="images/common/xml.gif" border="0"class="absmiddle" alt="{lang rss_subscribe_all}"/></a><!--{/if}-->
</div>
</div>
<!--{if empty($gid)}-->
{template foruminfo}<br>
<!--{/if}-->
<!--{if empty($gid)}-->
接2楼