我做了一个论坛,权限设置的是认证用户可以"创建论坛主题"和"编辑自己的论坛主题"。在comment模块部分设置的是允许"访问评论",认证用户允许"发表评论"。内容分类中论坛类型的默认评论设置为"读/写". 但是为何我在论坛主题的显示页添加的$links却无法显示add comment按钮呢?已经被这问题困扰好久了,还请大家帮忙!
"在论坛主题的显示页添加的$links"... 你有改template?
能不能说得明确一点?我不知道template里面有哪些相关的,之前网站也是别人做的 你说的是function phptemplate_comment_wrapper这个吗?
function phptemplate_comment_wrapper($content, $type = null) { static $node_type; if (isset($type)) $node_type = $type; if (!$content || $node_type == 'forum') { return '<div id="comments">'. $content . '</div>'; } else { return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>'; }}
这样应该没改过
Re: 发表评论的问题
"在论坛主题的显示页添加的$links"... 你有改template?
Re:
能不能说得明确一点?我不知道template里面有哪些相关的,之前网站也是别人做的
你说的是function phptemplate_comment_wrapper这个吗?
function phptemplate_comment_wrapper($content, $type = null) {
static $node_type;
if (isset($type)) $node_type = $type;
if (!$content || $node_type == 'forum') {
return '<div id="comments">'. $content . '</div>';
}
else {
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>';
}
}
这样应该没改过