荣耀之链论坛

 找回密码
 立即注册
搜索
查看: 2060|回复: 6

discuz论坛

[复制链接]

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
发表于 2019-5-16 02:58 | 显示全部楼层 |阅读模式
DISCUZ3.2 UTF8版本,编辑器工具栏图标不显示怎么办
https://zhidao.baidu.com/question/1695593222768877508.html
界面-风格-更新CSS缓存

修改数据库
config目录下2个文件
ucserver/data/config文件

回复

使用道具 举报

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
 楼主| 发表于 2019-5-16 02:59 | 显示全部楼层
站长
Ucenter设置
使用静态地址调用头像
回复 支持 反对

使用道具 举报

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
 楼主| 发表于 2019-10-31 01:00 | 显示全部楼层
update pre_forum_thread set dateline=dateline+5184000,lastpost=lastpost+5184000 where dateline<1572273864;
update pre_forum_post set dateline=dateline+5184000 where dateline<1572273864;

在2019-10-28之前的帖子增加2个月的时间
注意不要用太多次用一次就看一下效果
回复 支持 反对

使用道具 举报

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
 楼主| 发表于 2024-1-19 07:41 | 显示全部楼层
更换了域名 把帖子里面的旧域名替换为新域名
UPDATE pre_forum_post SET message=REPLACE(message,'rongyaozhilian.com','ryzl.com.cn');

如果帖子标题也有网址的话用这个替换
UPDATE pre_forum_thread SET subject=REPLACE(subject,'rongyaozhilian.com','ryzl.com.cn');

回复 支持 反对

使用道具 举报

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
 楼主| 发表于 2024-1-20 09:44 | 显示全部楼层
  1. select * from pre_forum_post where author="admin" and  subject="测试回复可见";

  2. update pre_forum_post set message=REPLACE(message,'[hide]回复可见的内容4[/hide]','[hide]回复可见的内容5[/hide]') where author="admin" and  subject="测试回复可见";

  3. ###########replace里面不能有正则表达式
  4. update pre_forum_post set message=REPLACE(message,'[hide]*[/hide]','[hide]回复可见的内容5[/hide]') where author="admin" and  subject="测试回复可见";
  5. ###########

  6. 直接修改帖子内容 有换行
  7. update pre_forum_post set message='[hide]回\r
  8. 复\r
  9. 可\r见\r的\r内容6[/hide]' where author="admin" and  subject="测试回复可见";


  10. 用ssh执行mysql语句

  11. ##########################下面的脚本可以用 但是用户不能用root 必须创建一个有密码的用户
  12. #!/bin/bash

  13. #连接MySQL数据库
  14. Host=127.0.0.1
  15. User=root
  16. PASSWORD=
  17. PORT=3306
  18. DBNAME="d2mods"
  19. TABLENAME="pre_forum_post"
  20. SQL="update ${DBNAME}.${TABLENAME} set message=REPLACE(message,'[hide]回复可见的内容4[/hide]','[hide]回复可见的内容5[/hide]') where author='admin' and  subject='测试回复可见'"

  21. #mysql -h${Host} -port${PORT} -u${User} -p${PASSWORD}   -D${DBNAME} -e"select count(*) from resources"
  22. #mysql -h"127.0.0.1" -port"3306" -uuser -ppassword  -D"appdb" -e"select count(*) from resources"
  23. #本地连接
  24. mysql -h${Host}  -port${PORT}  -u${User} -p${PASSWORD} <<EOF
  25. use ${DBNAME};
  26. ${SQL};
  27. COMMIT;
  28. EOF

  29. echo "create yes"

  30. ##########################

  31. ##########################下面精简为一句话的脚本 用户不能用root 必须创建一个有密码的用户

  32. mysql -uroot -p  -D"d2mods" -e"update pre_forum_post set message=REPLACE(message,'[hide]回复可见的内容5[/hide]','[hide]回复可见的内容6[/hide]') where author='admin' and  subject='测试回复可见';"

  33. ################为了方便换行 直接把下面的语句放到脚本里面执行 也行 这样看着方便点
  34. mysql -uroot -p  -D"d2mods" -e"update pre_forum_post set message='[hide]回\r
  35. 复\r
  36. 可\r见\r的\r内容7[/hide]' where author='admin' and  subject='测试回复可见';"
复制代码
直接用ssh执行mysql语句
回复 支持 反对

使用道具 举报

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
 楼主| 发表于 2025-7-31 08:43 | 显示全部楼层
暗黑论坛不知道为什么不显示ico
我参照这个修改模板了就显示了
https://blog.csdn.net/u014175572/article/details/50036701

1、如果要显示自定义的ico,先上传自定义的ico图标覆盖discuz网站根目录的favicon.ico。
2、修改template/模版/common/header_common.htm文件:
在最后加入如下代码:
  1. <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
复制代码
回复 支持 反对

使用道具 举报

1374

主题

2504

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10697
 楼主| 发表于 2025-9-9 14:29 | 显示全部楼层
找回密码改为提示
找到/template/default/member/login.htm  
然后把form里面的内容删掉,然后改为这个就行了

  1.   <form method="post" autocomplete="off" id="lostpwform_$loginhash" class="cl" onsubmit="ajaxpost('lostpwform_$loginhash', 'returnmessage3_$loginhash', 'returnmessage3_$loginhash', 'onerror');return false;" action="member.php?mod=lostpasswd&lostpwsubmit=yes&infloat=yes">
  2.                         <div class="c cl">
  3.                                 论坛无法找回密码<br />
  4.                                 <br />
  5.                                 如果忘记了密码可以重新注册一个账号<br />
  6.                                 <br />
  7.                                 邮箱可以重复使用<br />
  8.                                 <br />
  9.                         </div>
  10.                 </form>
复制代码


回复 支持 反对

使用道具 举报

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

本版积分规则

荣耀之链

GMT+8, 2025-9-10 14:19 , Processed in 0.014257 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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