原帖 https://discuz.dismall.com/thread-264703-1-7.html
安装开始
第一步 修改 discuz.htm 模板
开始部分找到
- <div style="width: {TABLEWIDTH}; clear: both; overflow: hidden;">
复制代码
在上面加入
再找
- <!--{if $qihoo_status && $searchboxstatus}-->
复制代码
在上面加
把//---------------首页登入开始 和 //---------------首页登入结束 中间的代码替换为以下代码
- <div class="maintable">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width=100% align="center" class="tableborder">
- <tr><td colspan="3" class="header"><a href="#" onclick="toggle_collapse('forumlinks');"><img src="{IMGDIR}/collapsed_no.gif" align="right" border="0"> </a>
- <span class="bold"></span></td>
- </tr>
- <tbody id="forumlinks" style="$collapse[forumlinks]">
- <tr class="category">
- <td colspan="3" align="center">
- <!--{if empty($announcements)}-->
- {lang index_noannouncement}
- <!--{else}-->
- <marquee direction="left" scrollamount="3" onMouseOver="this.stop();" onMouseOut="this.start();">
- $announcements
- </marquee>
- <!--{/if}--> </td></tr>
- <!-- aaaaaa -->
- <tr><td width="50%" class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
- <!--{if $discuz_uid}-->
- <TABLE width="98%" align=center border=0>
- <TBODY>
- <TR>
- <TD align=middle width=128 rowSpan=6><A href="memcp.php?action=profile" border="0" height="90" title="如果您想更新个性头像请点击这里" align="absmiddle">$avatar</A></TD>
- <TR>
- <TD width="144" height=22> <A
- href="memcp.php">
- 我的个人控制面板</A></TD>
- <TD width="157" colSpan=2> <A
- href="stats.php">我的论坛排名</A> </TD></TR>
- <TR>
- <TD bgColor="{INNERBORDERCOLOR}" colSpan=3 height=1></TD></TR>
- <TR>
- <TD> <A class=table
- href="search.php?authorid=3">我发表的主题</A> </TD>
- <TD> <A
- href="pm.php?action=send">发送论坛短信</A> </TD></TR>
- <TR>
- <TD> <A
- href="memcp.php?action=buddylist">我的论坛好友</A> </TD>
- <TD> <A
- href="member.php?action=list">我的会员中心</A> </TD></TR>
- <TR>
- <TD> <A
- href="pm.php?folder=inbox">查看我的信件</A> </TD>
- <TD> <A
- href="memcp.php?action=favorites">我的论坛收藏</A> </TD></TR></TBODY></TABLE></TD>
- <!--{else}-->
- 欢迎访问 $bbname 您还没有<A href="register.php">[注册]</A>或<A href="logging.php?action=login">[登录]</A>
- <hr width="100%" style="height: 1px; color: {INNERBORDERCOLOR}">
- <table border=0 cellpadding=0 cellspacing=0 align="center">
- <form method="post" action="logging.php?action=login">
- <tr><td>
- </tr>
- <td>
- 用户账号:<input type="text" name="username" size="10" tabindex="1"><BR>
- 用户密码:<input type="password" name="password" size="10" tabindex="2">
- <input type="submit" name="loginsubmit" value="{lang submit}"> </td>
- </form>
- </table>
- <!--{/if}-->
- <td valign="middle" bgcolor=#FFFFFF onMouseOver=this.style.backgroundColor='#F7F8F8' onMouseOut=this.style.backgroundColor='#FFFFFF' ><TABLE border=0 width="98%" align=center>
- <tr>
- <td height=22>共有 <span class="bold">$totalmembers</span> {lang index_members} </td>
- <td>新进来宾 <a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a></td>
- </tr>
- <tr>
- <td height="1" bgcolor="{INNERBORDERCOLOR}" colspan="2"></td>
- </tr>
- <TR>
- <TD>今日发贴 <span class="bold"><font color=red>$todayposts</font></span> 篇</td>
- <TD>主题总数 <span class="bold">$threads</span> 篇</td>
- </tr>
- <tr>
- <td>当前在线 <span class="bold">$onlinenum</span> 人</td>
- <td>帖子总数 <span class="bold">$posts</span> 篇</td>
- </tr>
- <tr><td>最高在线 <span class="bold">$onlineinfo[0]</span>人</td>
- <td>发生时间 <span class="bold">$onlineinfo[1]</span></td>
- </tr>
- </table></td>
- <tr><td bgcolor=#FFFFFF align="center" colspan="3" height="25">
- <a href="index.php">回到首页</a> <font face=Wingdings color=#5CA408>v</font><a href="search.php?srchfrom=$newthreads&searchsubmit=yes"> {lang show_newthreads}</a> <font face=Wingdings color=#5CA408>v</font>
- <!--{if $discuz_uid}-->
- <a href="search.php?srchuid=$discuz_uid&mytopics=yes&searchsubmit=yes">{lang show_mytopics}</a> <font face=Wingdings color=#5CA408>v</font>
- <!--{if $allowuseblog}-->
- <a href="blog.php?uid=$discuz_uid" target="_blank">{lang blog}</a> <font face=Wingdings color=#5CA408>v</font>
- <!--{/if}-->
- <!--{/if}-->
- <a href="digest.php">查看精华</a> <font face=Wingdings color=#5CA408>v</font>
- <a href="member.php?action=markread">{lang mark_read}</a> <font face=Wingdings color=#5CA408>v</font>
- <a href="member.php?action=list">用户列表</a>
- </td>
- </table>
- <br></div>
- <!--{if empty($gid)}-->
复制代码
第2步 修改index.php
找到
- $topiclist = isset($qihoo_links['topics']) ? $qihoo_links['topics'] : '';
复制代码
在下面加上
- if($allowavatar || $avatarshowstatus || $allownickname) {
- $query = $db->query("SELECT mf.nickname, mf.avatar, mf.avatarwidth, mf.avatarheight, m.avatarshowid, m.gender
- FROM {$tablepre}memberfields mf, {$tablepre}members m WHERE m.uid='$discuz_uid' AND mf.uid=m.uid");
- $member = $db->fetch_array($query);
- } else {
- $member = array('nickname' => '', 'avatar' => '', 'avatarshowid' => 0);
- }
- $avatarshow = $avatarshowstatus ? $avatar = avatarshow($member['avatarshowid'], $member['gender']) : '';
- $avatar = $avatarshowstatus != 2 && $member['avatar'] ? "<img src="$member[avatar]" width="$member[avatarwidth]" height="$member[avatarheight]" border="0">" : '';
复制代码
安装完成
[ 本帖最后由 西.先.生 于 2006-9-16 17:24 编辑 ] |