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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

6.0版本常见问题及修改

[复制链接]
 楼主| 下砂 发表于 2008-1-11 09:21:33 | 显示全部楼层

6.0版本用户的好友个数修改

修改my.php
        if(($db->result($query, 0)) > 20) {
             showmessage('buddy_add_toomany');
        }
        修改为
    if(($db->result($query, 0)) > 您需要的数字) {
             showmessage('buddy_add_toomany');
    }
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-11 09:21:56 | 显示全部楼层

如果用IE打开投票页面含有汉字的用户信息时,打不开网页

打开viewthread_poll.htm
        {lang special_author}</dt><dd><a href="space.php?username=$post[username]" target="_blank">$post[author]</a>
    修改为
        {lang special_author}</dt><dd><a href="space.php?uid=$post[uid]" target="_blank">$post[author]</a>
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-11 09:22:16 | 显示全部楼层

Discuz6.0 去除管理员双击编辑帖子功能

修改模版文件:template/default/viewthread.htm
  1. {if $forum['ismoderator'] && ($thread['digest'] >= 0 || !$post['first'])} ondblclick="ajaxget('modcp.php?action=editmessage&pid=$post[pid]&tid=$post[tid]', 'postmessage_$post[pid]')"{/if}
复制代码
替换为:
  1. {if $forum['ismoderator'] && ($thread['digest'] >= 0 || !$post['first']) && $__show_dbclick_edit} ondblclick="ajaxget('modcp.php?action=editmessage&pid=$post[pid]&tid=$post[tid]', 'postmessage_$post[pid]')"{/if}
复制代码
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-11 09:22:35 | 显示全部楼层

如何让普通会员看不到主题的操作记录

打开./templates/default/ viewthread.htm找到
  1. <!--{if $lastmod['modaction']}--><a href="misc.php?action=viewthreadmod&tid=$tid" title="{lang thread_mod}" target="_blank">{lang thread_mod_by}</a><!--{/if}-->
复制代码
修改为
  1. <!--{if $lastmod['modaction']&&in_array($adminid,array(1,2,3))&&in_array($groupid,array(1,2,3))}--><a href="misc.php?action=viewthreadmod&tid=$tid" title="{lang thread_mod}" target="_blank">{lang thread_mod_by}</a><!--{/if}-->
复制代码
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-11 09:33:34 | 显示全部楼层

登陆的时候 我如果不想自动跳转的话 需要在那修改

修改登陆的程序logging.php,
    找到
showmessage('login_succeed', dreferer());
   修改为:
        header("location:".dreferer());
回复

使用道具 举报

家俊 发表于 2008-1-11 09:40:40 | 显示全部楼层
是for什麼版本的?
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-11 09:45:47 | 显示全部楼层

回复 16# 家俊 的帖子

6.0  0904版本
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-14 11:36:26 | 显示全部楼层

如何设置点击贴子在新页面打开

打开templates\default\forumdisplay.htm
查找
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>
改为
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight] target="_blank">
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-18 16:16:39 | 显示全部楼层

在线人数达到一定值,就不涨了。

在线会员是存在内存的,所以除了受到后台设置的“最大在线人数”制约之外,还受到服务器配置的mysql使用内存的限制
回复

使用道具 举报

 楼主| 下砂 发表于 2008-1-18 16:16:56 | 显示全部楼层

反复切换编辑器状态时,表情代码变成乱码

在./include/javascript/bbcode.js

if(forumallowhtml || (allowhtml && fetchCheckbox('htmlon')) || trim(str) == '') {
下面加上
str = str.replace(/<img[^>]+smilieid=(["']?)(\d+)(\1)[^>]*>/ig, function($1, $2, $3) {return smilies[$3]['code'];});
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-2 14:45 , Processed in 0.115875 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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