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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

横向或纵向列表 (后台支持, javascript支持, cookie支持) - 最近更新 080705 3pm

[复制链接]
 楼主| hknakata 发表于 2005-7-27 13:38:33 | 显示全部楼层
原帖由 omn 于 2005-7-26 15:32 发表
8错 可惜好象时繁体的吧


@@

in both gb and big5

and english too~ (But i didn't upload it )
回复

使用道具 举报

 楼主| hknakata 发表于 2005-7-27 13:42:25 | 显示全部楼层
原帖由 asdasvad 于 2005-7-26 21:05 发表
请教下,我下了附件里的FOR CN的版本,直接覆盖了安装好的BBS,然后在数据库里执行语句加了那个项,还在index.php里改了

  CODE: [Copy to clipboard]   
FROM $table_forums WHERE status='1'  

前面加入 ...



try to use the index.php provides in the attachment~

or you can upload your index.php



PS:
sorry..i have to write in english...Uni's computers are only support english (I m currently studying in Australia)

Sorry again
回复

使用道具 举报

asdasvad 发表于 2005-7-27 16:21:05 | 显示全部楼层
原帖由 hknakata 于 2005-7-27 13:42 发表



try to use the index.php provides in the attachment~

or you can upload your index.php



PS:
sorry..i have to write in english...Uni's computers are only support english (I m curre ...




我就是用的你的整个附件覆盖了哦,当然也包括当中的那个index.php我发现index.pnp里除了
  CODE: [Copy to clipboard]   
FROM $table_forums WHERE status='1'  

前面加入

  CODE: [Copy to clipboard]   
,listingstyle  
这个以外其他的好象都改好了吧。

可能我说的还不够详细?

完整步骤,装完MYSQL,PHP,在2000系统。-->装Discuz!_2.5_SP1_gb,装完,设置好。-->执行MYSQL语句在MYSQL里加上listingstyle。-->拿你的附件里面的forumlist0420_gb2312覆盖去安装后的BBS目录。-->覆盖完后修改index.php里面的FROM $table_forums WHERE status='1'前面加上,listingstyle。
以上是我所有的操作步骤。
我的index.php其实就是你的那个包里的那个(forumlist0420_gb2312)包,修改index.php里面的FROM $table_forums WHERE status='1'前面加上,listingstyle。

我不明白还有什么地方有遗漏么?谢谢!
回复

使用道具 举报

kaoyansky123 发表于 2005-7-28 01:25:02 | 显示全部楼层
原帖由 hknakata 于 2005-7-26 13:08 发表



plugins/plugin.js

find

  1. var category2columns=4;
复制代码


replace with

  1. var category2columns=5;
复制代码





这样修改了,可是横向的第5个版好像和其它四个版大小不一样,被压扁了一样,呵呵。能不能把那个版块横向排列占用的长和宽的修改告诉我?谢谢了

[ 本帖最后由 kaoyansky123 于 2005-7-28 01:33 编辑 ]
回复

使用道具 举报

googlepenang 发表于 2005-7-29 01:46:43 | 显示全部楼层
因为我的index.htm在安装插件的时候修改过了,所以我不知道要如何兼容这项修改。一个是各版在线多少人,另一个是凡人的子版列表插件。
  1. <!--{loop $forumlist $key $forum}-->
  2.         <!--{if $forum['type'] == 'group' && $forumlist[($key + 1)]['type'] == 'forum'}-->
  3.                 <!--{if $key}--></table></td></tr></table><br><!--{else}--><br><!--{/if}-->
  4.                 <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
  5.                 <tr><td bgcolor="{BORDERCOLOR}">
  6.                 <table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
  7.                 <tr align="center"><td colspan="6" class="header"><a href="index.php?gid=$forum[fid]"><font color="{HEADERTEXT}"><span class="bold">$forum[name]</span></font></a></td></tr>
  8.                 <tr class="category" align="center">
  9.                 <td width="5%">&nbsp;</td>
  10.                 <td width="46%">{lang forum_name}</td>
  11.                 <td width="8%">{lang forum_threads}</td>
  12.                 <td width="8%">{lang forum_posts}</td>
  13.                 <td width="15%">{lang forum_lastpost}</td>
  14.                 <td width="18%">{lang forum_moderators}</td>
  15.                 </tr>
  16.         <!--{elseif $forum['permission']}-->
  17.                 <tr align="center">
  18.                 <td bgcolor="{ALTBG1}">$forum[folder]</td>
  19.                 <td bgcolor="{ALTBG2}" align="left" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  20.                 $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
  21.                 <!--{if $onlineforum[$forum[fid]]}--> [&nbsp;<font color="green">在线:
  22.         {eval echo $onlineforum[$forum[fid]];}&nbsp;人 </font>]
  23. <!--{/if}-->
  24. <br><span class="smalltxt">$forum[description]<!--{if $forum['subforums'] }--><fieldset><legend><font style=font-size: 9pt>子版列表</font></legend>
  25.                 <!--{loop $forum['subforums'] $key2 $forumsub}-->
  26.                         $forumsub
  27.                 <!--{/loop}-->
  28.                 </fieldset><!--{/if}--></span></td>
  29.                 <td bgcolor="{ALTBG1}">$forum[threads]</td>
  30.                 <td bgcolor="{ALTBG2}">$forum[posts]</td>
  31.                 <td bgcolor="{ALTBG1}">

  32.                 <!--{if $forum['permission'] == 1}-->
  33.                         {lang private_forum}
  34.                 <!--{else}-->
  35.                         <!--{if is_array($forum['lastpost'])}-->
  36.                                 <table cellpadding="0" cellspacing="0" border="0" width="100%">
  37.                                 <tr><td align="right" class="smalltxt" title="{lang title}: $forum[lastpost][0]" nowrap>
  38.                                 $forum[lastpost][1]<br>by <!--{if $forum['lastpost'][2]}-->$forum[lastpost][2]<!--{else}-->{lang guest}<!--{/if}--></td>
  39.                                 <td nowrap>&nbsp;<a href="redirect.php?fid=$forum[fid]&goto=lastpost#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a></td>
  40.                                 </tr></table>
  41.                         <!--{else}-->
  42.                                 {lang never}
  43.                         <!--{/if}-->
  44.                 <!--{/if}-->

  45.                 </td><td bgcolor="{ALTBG2}" style="word-break: keep-all">$forum[moderator]</td>
  46.                 </tr>

  47.         <!--{/if}-->
  48. <!--{/loop}-->
复制代码
回复

使用道具 举报

 楼主| hknakata 发表于 2005-7-30 00:09:30 | 显示全部楼层

回复 #55 googlepenang 的帖子

To add both hacks...index.html and plugins.js
回复

使用道具 举报

 楼主| hknakata 发表于 2005-7-30 00:10:07 | 显示全部楼层
原帖由 kaoyansky123 于 2005-7-28 01:25 发表



这样修改了,可是横向的第5个版好像和其它四个版大小不一样,被压扁了一样,呵呵。能不能把那个版块横向排列占用的长和宽的修改告诉我?谢谢了



plugins.js
回复

使用道具 举报

 楼主| hknakata 发表于 2005-7-30 00:11:38 | 显示全部楼层

回复 #53 asdasvad 的帖子

我的index.php其实就是你的那个包里的那个(forumlist0420_gb2312)包,修改index.php里面的


You don't need to modify anything if you are using the files i have provided in gb pack :)
回复

使用道具 举报

不削吃鱼的猫 发表于 2005-7-30 13:12:50 | 显示全部楼层
hknakata 老大。。
我在后台把所有分类都设置成 vertical ,可是主页还是以 horizontal 显示。。==+
是不是因为用了 cookies 。。所以后台设置无效了。。?
回复

使用道具 举报

asdasvad 发表于 2005-7-30 18:11:02 | 显示全部楼层
原帖由 hknakata 于 2005-7-30 00:11 发表


You don't need to modify anything if you are using the files i have provided in gb pack :)



我想                                : "SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm FROM $table_forums WHERE status='1' ORDER BY type, displayorder";
这些是你的包里的,但是你说明里是需要在FROM $table_forums WHERE status='1' 前面加上,listingstyle 吧?
所以我照加了。
但是的确没有成功,希望你有时间能否测试一下?Discuz!_2[1].5_SP1_gb_050727.zip + forumlist0420_gb2312.zip
谢谢了!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 08:14 , Processed in 0.114112 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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