Giter Site home page Giter Site logo

zigzagk / typecho-theme-mdui2333 Goto Github PK

View Code? Open in Web Editor NEW
106.0 106.0 9.0 6.97 MB

基于MDUI制作的typecho主题

Home Page: https://zigzagk.top/2020/02/19/MDUI2333

License: MIT License

PHP 78.24% CSS 11.24% JavaScript 10.52%
mdui typecho typecho-theme

typecho-theme-mdui2333's People

Contributors

zigzagk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typecho-theme-mdui2333's Issues

日记页面 BUG 日期标签栏重复

**问题回顾:**由于要将两个 Typecho 的站点合并,所以将 B 站点的文章转换成 A 站点的评论,分类到日记页面,转移完毕后日记页面卡片显示杂乱无章且日期选项卡重复
e375aecde67a11ce2f73ac7b1f1bbae
2ab086097d45d5e4a6fb3d11285dbfe
1561772bf17681f8f4bd95dce10791e

大佬有解决办法吗

几个问题

我真的超~喜欢这个主题的
所以求求你不要鸽了无限加载评论…
把回到顶部按钮改成标准大小而不是小的…
以及能够优雅的自定义表情…
还有自行存储主题配置,以免手贱换主题后又得从头配置…

使用php7.4报错

非常喜欢这个主题,分类方面是我一直在寻找的折叠型分类,加上主题样式异常美观,甚是喜爱。
但在使用的过程中也发现一些小的问题,还希望您能花费一些时间阅读参考。

MDUI2333Wiki 推荐环境 PHP 7+
但我使用php7.4环境后会报错
错误信息如下:
Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/blog/usr/themes/MDUI2333/functions.php on line 305
查其原因可能是因为 PHP7.4 不再能够使用花括号来访问数组或者字符串的偏移
我参考的文档https://www.yuanmaluntan.com/post/171.html
随后我更换了php7.3后错误便消失了,在搜索解决方法过程中发现这个问题去年曾经也有人在您的留言板提问过

随后在php7.3的环境下使用links插件时会存在警告
PHP报错 count(): Parameter must be an array or an object that implements Countable
查其原因可能是因为 7.2之后的版本 count传入非数组的变量会出现warning
我参考的文档https://blog.csdn.net/qq_33636325/article/details/89285626
虽然是插件的问题,我还是将php下调为7.1

现在问题已经解决了,但还是想提一个小小建议:
因为对php不够了解,我暂时无法确定7.x-7.3哪个版本是该主题最恰当的,也许这些问题可能在后续的版本升级时给用户带来一定的困扰
因此希望能把推荐环境 php7+ 改为确定的版本,或者是改为您开发时使用的php环境,从而避免使用者花费过多的时间去解决php的问题

再次感谢大佬提供如此优秀的主题!

迷惑操作

if (get_headers(Typecho_Widget::widget('Widget_Options')->themeUrl."/img/QAQ/QAQ.json",1)[0]=='HTTP/1.1 200 OK')  $getJson=file_get_contents(Typecho_Widget::widget('Widget_Options')->themeUrl."/img/QAQ/QAQ.json");
else $getJson=file_get_contents(Helper::options()->themeFile(ThemeName(),"img/QAQ/QAQ.json"));

在functions.php和QAQTAB.php中都有这样一段代码.
很好奇这样的意义何在.
如果博客套了CDN,这样做会大幅增加回程时间.如果CDN速度不佳,就会导致耗费数倍于无此操作的加载时间.
而themeUrl无论如何都只会都只会指向文件实际存在的目录所对应的网页Url,为何不直接从磁盘读取?
就算有必要这样做,get_headers也会耗费时间,为何不直接file_get_contents判断从网络读取是否成功?

@$getJson=file_get_contents(Typecho_Widget::widget('Widget_Options')->themeUrl."/img/QAQ/QAQ.json");
if(empty($getJson)){
    $getJson=file_get_contents(Helper::options()->themeFile(ThemeName(),"img/QAQ/QAQ.json"));
}

这样从网络读取也只会耗费原来1/2的时间.

特别迷惑,求解答.

Pjax不能正确处理非200响应码

字面意思.
如果一篇文章是加密的,而用户未登陆,服务器会返回403错误码,并要求用户输入密码.
但是由于错误的错误处理机制,用户只能看到加载失败的提示.

建议在出错时刷新页面,可以省去很多麻烦.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.