Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 首页四格(访客信息+论坛档案+最新主题+最新回复)+新手DIY方案 For Discuz! 5.0.0

[复制链接]
 楼主| Clwarm 发表于 2006-11-5 18:22:29 | 显示全部楼层
原帖由 kelvin_ng 于 2006-11-5 18:18 发表
你看看我的图片,有些模版界面的显示范围很小,导致这四格好像剂不进。


有些模版界面的显示范围很大,那就没有问题。

这个跟界面的宽度设置有关系。
回复

使用道具 举报

kelvin_ng 发表于 2006-11-5 18:30:16 | 显示全部楼层
没有关系么?
你看看第一个下面那里,文集这个字已经不够放了,变成要剂在下面了。
如果使用其它界面看,又没有问题。
那有没有办法可以移动四格的宽度?
还没有登陆时更遭,等我去补一张照片上来你就明了。
回复

使用道具 举报

 楼主| Clwarm 发表于 2006-11-5 18:36:16 | 显示全部楼层
原帖由 kelvin_ng 于 2006-11-5 18:20 发表
另外一个问题,这个问题之前有人问过了,可是作者没回应。



看到问题没有?就是那个详细积分那里,出现问题。

这个问题我已经得到了大家的反馈,可能是JS的缘故所导致的。
回复

使用道具 举报

 楼主| Clwarm 发表于 2006-11-5 18:38:45 | 显示全部楼层

回复 #152 kelvin_ng 的帖子

我说的是有关系。

首页四格的宽度是受到该界面风格所限制的。
如果不想受到界面模版设置的限制的话,修改 hot_topics.htm 中
  1. <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" class="tableborder">
复制代码

将其中的
  1. {TABLEWIDTH}
复制代码

替换为您认为合适的百分比例如90%或100%,或者填写像素值大小等等也是可以的(带单位px)。
回复

使用道具 举报

kelvin_ng 发表于 2006-11-5 18:55:11 | 显示全部楼层
那如果我把宽度放大了,会影响整个论坛么?
那格子会不会超越范围?

至于你说的那个JS问题,该怎么办呢?
谢谢你的答复。
我这种菜鸟什么也不懂的。

是吃饭时间了,等下再回来。


对了,可以给我你的QQ么?想认识交流下。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

 楼主| Clwarm 发表于 2006-11-5 19:02:09 | 显示全部楼层




出现这样积分错位的论坛的站长们,如果没有修改过JS文件,那么氢尝试将现有的 hot_topics.htm 模版备份,然后将附件下载,用压缩包内的模版替换尝试一下看看能否可行。

现在只能做一种尝试了,因为我手头没有论坛积分显示错位,这样的修改不保证能解决所有的问题,但估计会解决一部分朋友的问题。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

 楼主| Clwarm 发表于 2006-11-5 19:04:35 | 显示全部楼层
原帖由 kelvin_ng 于 2006-11-5 18:55 发表
那如果我把宽度放大了,会影响整个论坛么?
那格子会不会超越范围?

至于你说的那个JS问题,该怎么办呢?
谢谢你的答复。
我这种菜鸟什么也不懂的。

是吃饭时间了,等下再回来。


对了,可以给 ...

不同界面风格可能会有所不同,不过都会比下面的论坛版面显示要宽。
这样的话,那就需要精简四格中的内容了,修改 hot_topics.htm 里的东西了。
回复

使用道具 举报

 楼主| Clwarm 发表于 2006-11-5 19:16:48 | 显示全部楼层
原帖由 kelvin_ng 于 2006-11-5 18:55 发表
那如果我把宽度放大了,会影响整个论坛么?
那格子会不会超越范围?

至于你说的那个JS问题,该怎么办呢?
谢谢你的答复。
我这种菜鸟什么也不懂的。

是吃饭时间了,等下再回来。


对了,可以给 ...

如果是这样的话,那么干脆把 hot_topics.htm 里的代码替换为如下:
  1. <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" class="tableborder">
  2.   <tr>
  3.     <td>
  4.     <table border="0" cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" style="table-layout: fixed; word-wrap: break-word"  >
  5.       <tr class="header">
  6.         <td width="27%" align="center"><!--{if !$discuz_uid}-->游客登录信息<!--{else}-->会员资料信息<!--{/if}--></td>
  7.         <td width="23%" align="center">论坛档案资料</td>
  8.         <td width="25%" align="center">最新发表主题</td>
  9.         <td width="25%" align="center">最新回复主题</td>
  10.       </tr>
  11.       <tr><td bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  12.         <table>
  13. <!--{if !$discuz_uid}-->
  14.         <tr><td><form method="post" name="login" action="logging.php?action=login"><input type="hidden" name="formhash" value="{FORMHASH}"><input type="hidden" name="referer" value="$referer"><input type="hidden" name="cookietime" value="2592000"></td></tr>
  15.         <tr><td><select name="loginfield"><option value="username">{lang username}:</option><option value="uid">{lang uid}:</option></select> <input type="text" name="username" size="15" maxlength="30" value="" onfocus="this.value=''" tabindex="1"> [<a href="register.php">注册</a>]</td></tr>
  16.         <tr><td>密 码 :   <input type="password" name="password" size="16"  onfocus="this.value=''" value="" tabindex="2"> [<a href="member.php?action=lostpasswd">忘记</a>]</td></tr>
  17.         <tr><td>提 问 :   <select name="questionid" tabindex="3">
  18.           <option value="0">{lang security_question_0}</option>
  19.           <option value="1">{lang security_question_1}</option>
  20.           <option value="2">{lang security_question_2}</option>
  21.           <option value="3">{lang security_question_3}</option>
  22.           <option value="4">{lang security_question_4}</option>
  23.           <option value="5">{lang security_question_5}</option>
  24.           <option value="6">{lang security_question_6}</option>
  25.           <option value="7">{lang security_question_7}</option>
  26.           </select>
  27.         </td></tr>
  28.         <tr><td>回 答 :   <input type="text" name="answer" size="18" tabindex="3">
  29.         </td></tr>
  30.         <tr><td><!--{if $seccodecheck}--><span class="bold">{lang seccode}</span> :<span class="smalltxt"><input type="text" name="seccodeverify" size="4" maxlength="4" tabindex="4"><img id="seccode" style="cursor:pointer" onclick="this.src='seccode.php?update=' + Math.random()" src="seccode.php" class="absmiddle" alt="" /><!--{/if}--><input type="submit" name="loginsubmit" value="{lang submit}" tabindex="4"></form>
  31.         </td></tr>
  32. <!--{else}-->
  33.         <tr><td>用户名 : <span class="bold">$discuz_userss</span> / <!--{if $allowinvisible && $discuz_uid}-->{lang online_status}:<!--{if !empty($invisible)}--><a href="member.php?action=switchstatus" title="{lang login_switch_normal_mode}">隐身</a><!--{else}--><a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}">在线</a><!--{/if}--><!--{/if}--></td></tr>
  34.         <tr><td>{lang index_status} : <a href="member.php?action=grouppermission">$grouptitle</a><!--{if $validdays}--><a href="member.php?action=groupexpiry">($validdays)</a><!--{/if}--></td></tr>
  35.         <tr><td>{lang credits} : $credits  <span id="creditlist"><font color="red">{lang credits_detail}</font><script type="text/javascript">menuregister(false, "creditlist", true)</script></span></td></tr>
  36. <!--{/if}-->
  37.         <tr><td>IP 地址: $onlineip</td></tr>
  38.         <tr><td>来访地区:  {$userinfo['from']}</td></tr>
  39.         <tr><td>浏览软件:  {$userinfo['browser']}</td></tr>
  40.         <tr><td>{lang your_lastvisit}: $lastvisittime</td></tr>
  41.         <tr><td>{lang timenow}: $currenttime</td></tr>
  42.         <tr><td><a href="search.php?srchfrom=$newthreads&searchsubmit=yes">新帖</a> | <a href="digest.php">精华</a> | <a href="my.php?item=threads">我的</a> | <a href="my.php?item=favorites&type=thread">收藏</a> | <a href="pm.php" target="_blank">短信</a>
  43.         <tr><td><!--{if $allowuseblog}--><a href="blog.php?uid=$discuz_uid" target="_blank">{lang blog}</a> |<!--{/if}--> <!--{if $supe_status && $discuz_uid}--><!--{if !$xspacestatus}--><a href="$supe_siteurl/index.php?action/register" target="_blank">空间</a><!--{else}--><a href="$supe_siteurl/index.php?action/space/uid/$discuz_uid" target="_blank">空间</a><!--{/if}--><!--{/if}--> <a href="member.php?action=markread">已读</a> | <a href="rss.php?auth=0">RSS订阅</a> | </td></tr>
  44.         </table></td>
  45. <td bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  46.         <table>
  47.         <tr><td><a href="index.php">$bbname</a> $navigation<span>已运行$build_days</span>天</td></tr>
  48.         <tr><td>{lang index_today}发表:$todayposts 篇</td></tr>
  49.         <tr><td>主题总数:$threads 篇</td></tr>
  50.         <tr><td>帖子总数:$posts 篇</td></tr>
  51.         <tr><td>会员总数:$totalmembers 人</td></tr>
  52.         <tr><td>在线用户:<span class="bold">$onlinenum</span> {lang onlines}</td></tr>
  53.         <tr><td>{lang welcome_newmember}:<a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a></td></tr><br />
  54.         <tr><td><b>论坛搜索</b> - <a href="search.php">高级搜索</a></td></tr>
  55.         <tr><td><form method="get" action="search.php"><input size="15" name="srchtxt"><input type="submit" value="搜索" name="searchsubmit"></form></td></tr>
  56.         </table></td>
  57. <td bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  58.         <table>
  59. <!--{loop $hack_newthreads_threadlist $thread}-->
  60.         <tr><td><a href="viewthread.php?tid=$thread[tid]" title="主题:$thread[subject0]{LF}作者:$thread[author]{LF}浏览:$thread[views] 次 回复:$thread[replies] 次">$thread[subject]</a><!--{if $thread[creditsrequire]}--> - [{lang credit_title}<span class="bold">$thread[creditsrequire]</span>{lang credit_unit}] <!--{/if}-->$thread[multipage]</td></tr>
  61. <!--{/loop}-->
  62.         </table></td>
  63. <td bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  64.         <table>
  65. <!--{loop $threadreply $thread}-->
  66.         <tr><td><a href="redirect.php?tid=$thread[tid]&goto=lastpost#lastpost" title="主题:$thread[subject0]{LF}作者:$thread[author]{LF}浏览:$thread[views] 次{LF}回复:$thread[replies] 次{LF}{lang lastpost}:$thread[lastposter]">$thread[subject]</a><!--{if $thread[creditsrequire]}--> - [{lang credit_title}<span class="bold">$thread[creditsrequire]</span>{lang
  67. credit_unit}] <!--{/if}--> $thread[multipage] </td></tr>
  68. <!--{/loop}--></table></td>
  69.         </td>
  70.       </tr>
  71.     </table>
  72.   </td>
  73. </tr>
  74. </table><br />
复制代码

这样内容不会又减少,空间上基本能合理分配好。
回复

使用道具 举报

kelvin_ng 发表于 2006-11-5 19:17:23 | 显示全部楼层
原帖由 Clwarm 于 2006-11-5 19:02 发表




出现这样积分错位的论坛的站长们,如果没有修改过JS文件,那么氢尝试将现有的 hot_topics.htm 模版备份,然后将附件下载,用压缩包内 ...



那个详细积分已经移位了,可是还没移正,只是移到了第二格。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

 楼主| Clwarm 发表于 2006-11-5 19:21:34 | 显示全部楼层

回复 #159 kelvin_ng 的帖子

所有风格都如此吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-21 15:39 , Processed in 0.716665 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表