You are here

Drupal的论坛

g089h515r806 的头像
Submitted by g089h515r806 on 星期二, 2008-10-21 14:42

      Drupal自带的论坛,只有论坛的基本功能,就是发帖,回帖,还有回复数.功能简陋到了极点.以前在项目中启用过这个模块,没有用到过更高级的功能.如果你觉得Drupal这个核心的论坛模块不能满足需求的话,可以考虑使用论坛的扩展模块,比如advanced forum, quote, subscription, bbcode, 和comment mover.以及privatemsg 模块 .如果这样还不能满足你的需要的话,你可以与其它专门的bbs软件进行集成.对于drupal5.x,有一个模块可以实现与discuz的集成,但是到目前为止,还没有升级到6.x。

       下面讲一下,我在zhupou.cn上是怎么设置论坛的,首先自己想到的两个论坛栏目,一个是“drupal培训”,一个是“有问必答”,这样的两个栏目,在drupal中就是两个forum(论坛)。首先,启用forum模块,然后在网上找到了几篇文章,大概看了看。到航道admin/content/forum,点击“add container”链接,添加一个容器,在drupal中,一个容器就是放置论坛以及子容器的。这里面不能放帖子。而论坛里面放置的是帖子。

 

     这里添加的容器为“drupal论坛”,然后再添加论坛(forum)“drupal培训”,这个需要点击“add forum”链接。

 

    

     “有问必答”的添加和“drupal培训”一样。保存设置,这样就可以了。我试了一下,可以了,不过有个问题,我自己可以,换个用户就不可以了。这个时候还需要配置以下权限问题,导航到admin/user/permissions,授予登陆用户发帖和编辑自己帖子的权利。

      这样,在一级链接中,加个链接“技术支持”,就可以了。我分别用管理员和测试账号发了一个帖子。另外考虑到大家的习惯,我又跑到了admin/content/forum/settings,将帖子的默认顺序设置为了“Posts - most active first”,最近回复的,最活跃的帖子放到前面。

      此外,我还在admin/content/node-type/forum,对论坛节点的配置选项进行了调整,比如禁用了附件上传,评论按照顺序平铺下来,而不是使用嵌套的形式,而且评论也按照时间顺序进行排列,最新的评论放到最上面。还有就是将评论的预览置为了可选。等等,具体的你可以根据实际需要进行设置。

相关资源:

讓forum module更像討論區

阿舍的Forum 模組,里面有很详细的安装说明

以及官方手册:Forum: create threaded discussions

相关链接: Think in Drupal

 

Drupal版本:

评论

AACC88 的头像

网是用drupal制作的,我对style.css做过少许改动。
在上面的显示中多了空行,我希望成为下面的显示,不知应该怎么修改?
网址:http://www.huavyw.com

 

 

 

下面是相关的CSS:
/************************/
/* HEADER AREA WRAPPER */
/* (Topper + Header) */
/************************/
#header {
background: transparent url('images/clouds.gif') repeat-x 0 1px;
margin: -20px auto -40px 0;
width: 100%;
}
#header-wrapper {
margin: 0 auto;
overflow: hidden;
}
#header-wrapper a.active {
}
/******************/
/* HEADER REGIONS */
/******************/
#header-wrapper {
background-color: inherit;
margin: -10px auto;
padding: 0;
width: 960px;
}
#header-first {
float: left;
font-family: Myriad Pro, Myriad Web Pro Regular, Lucida Grande, Geneva, Trebuchet MS, sans-serif;
margin: 25px 0 -10px 0;
width: 310px;
}
#header-first #logo { /* logo postion. default image replaced if you upload your own */
float: left;
height: 220px;
margin: 31px 0 1.5px 0;
}
#header-first h1 { /* site name link */
font-size: 2.5em;
line-height: 60%;
margin: 38px 0 0 0;
}
#header-first h1 a { /* site name link */
text-decoration: none;
}
#header-first #slogan { /* site slogan */
display: block;
font-size: 1.166em;
color: #ff4400;
font-weight: bold;
text-align: center;
margin: 13px 0 -5px 0;
}
#header-last {
float: right;
font-size: 12px; line-height: 25px;
margin: 9px 1px -10px 1px;
overflow: hidden;
padding: 1px 0 1px 0;
text-align: center;
width: 632px;
}
#header-last ul {
display: inline;
margin: 2px 0 0 0;
padding: 0 0 0 9px;
}
#header-last ul li {
background: #ffff00;
border: 1px solid #00ff00;
display: inline;
margin: 2px 0 0 0;
padding: 3px 5px 3px 9px;
}
#header-last ul li.first {
border: 1px;
}