返回列表 发帖
查看: 2058|回复: 1

[已解决] 请问dz3.5扩展配色为何不能取消

20

主题

2

粉丝

0

关注

初学乍练

贡献
0 点
金币
3 个
发表于 2023-1-31 03:24:32 |福建| 查看全部 |阅读模式

2.png


在后台默认模板中,已经全部取消不打勾了,保存后再进去一看,又自动打勾了。
最少还必须打勾一种。
我记得明明3.4是可以全部不要的。

实在不行教我怎么把左上角这个功能完全去掉,我不要让用户自己更换配色。

1.png


--------------------------------------------------------------------------------------------

还有3.5的表情也有点类似
两种表情包,其中一种表情包的推荐全取消了,保存后又自动勾选了。
只有必须至少勾选一个推荐才能正常保存。

为什么要这样呢。

个人建议像3.4那样改回来,由站长自己灵动设置。谢谢

1 贡献

最佳答案

属于BUG

修复模板扩展配色无法全部取消的BUG
https://gitee.com/Discuz/DiscuzX/pulls/1953

打开 source/admincp/admincp_styles.php

找到
  1.    if(isset($_GET['defaultextstylenew']) && isset($_GET['extstylenew'])) {
  2.                                 if (!in_array($_GET['defaultextstylenew'], is_array($_GET['extstylenew']) ? $_GET['extstylenew'] : array())) {
复制代码
改为
  1.    if(isset($_GET['defaultextstylenew'])) {
  2.                                 if(!isset($_GET['extstylenew']) || !is_array($_GET['extstylenew'])) {
  3.                                         $_GET['extstylenew'] = array();
  4.                                 }
  5.                                 if(!in_array($_GET['defaultextstylenew'], $_GET['extstylenew'])) {
复制代码


修复表情推荐无法全部取消的BUG
https://gitee.com/Discuz/DiscuzX/pulls/1954

打开 source/admincp/admincp_smilies.php
找到
  1. if(!empty($_GET['fast']) && is_array($_GET['fast']) && !in_array($key, $_GET['fast'])) {
复制代码

改为
  1. if(empty($_GET['fast']) || (is_array($_GET['fast']) && !in_array($key, $_GET['fast']))) {
复制代码



回复

使用道具 举报

17

主题

4

粉丝

0

关注

应用开发者

贡献
67 点
金币
902 个
QQ
发表于 2023-1-31 04:43:32 |浙江| 查看全部
属于BUG

修复模板扩展配色无法全部取消的BUG
https://gitee.com/Discuz/DiscuzX/pulls/1953

打开 source/admincp/admincp_styles.php

找到
  1.    if(isset($_GET['defaultextstylenew']) && isset($_GET['extstylenew'])) {
  2.                                 if (!in_array($_GET['defaultextstylenew'], is_array($_GET['extstylenew']) ? $_GET['extstylenew'] : array())) {
复制代码
改为
  1.    if(isset($_GET['defaultextstylenew'])) {
  2.                                 if(!isset($_GET['extstylenew']) || !is_array($_GET['extstylenew'])) {
  3.                                         $_GET['extstylenew'] = array();
  4.                                 }
  5.                                 if(!in_array($_GET['defaultextstylenew'], $_GET['extstylenew'])) {
复制代码


修复表情推荐无法全部取消的BUG
https://gitee.com/Discuz/DiscuzX/pulls/1954

打开 source/admincp/admincp_smilies.php
找到
  1. if(!empty($_GET['fast']) && is_array($_GET['fast']) && !in_array($key, $_GET['fast'])) {
复制代码

改为
  1. if(empty($_GET['fast']) || (is_array($_GET['fast']) && !in_array($key, $_GET['fast']))) {
复制代码



回复

使用道具 举报

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

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2026-3-14 07:57 , Processed in 0.055485 second(s), 16 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

关灯 在本版发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表