Code Monkey home page Code Monkey logo

cactus's Introduction

typecho 后台登陆页美化

瑕疵:

对移动端支持不好主要是背景图片缩放问题。

记住登陆不知道加哪里好=_=||,强迫症表示无能为力。

更多详情请看我的博客

cactus's People

Contributors

nikejaycn avatar seevil 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

Watchers

 avatar  avatar  avatar  avatar

cactus's Issues

建议加一个全文搜索功能

你好 博主,很感谢你的主题,非常好看!!!
建议加一个全文搜索功能,文章数量太多的时候可以方便搜索,已打赏,money不多是个意思~~,备注是【Cactus希望加全文搜索】

首页Projpct的链接怎么修改成本页打开

function Projects($sorts = NULL) {
    $options = Typecho_Widget::widget('Widget_Options');
    $Project = NULL;
    if ($options->Projects) {
        $list = explode("\r\n", $options->Projects);
        foreach ($list as $val) {
            list($name, $url, $description, $sort) = explode("|", $val);
            if ($sorts) {
                $arr = explode("|", $sorts);
                if ($sort && in_array($sort, $arr)) {
                    $Project .= $url ? '
  • '.$name.': '.$description.'
  • ' : '
  • '.$name.': '.$description.'
  • '; } } else { $Project .= $url ? '
  • '.$name.': '.$description.'
  • ' : '
  • '.$name.': '.$description.'
  • '; } } } echo $Project ? $Project : '世间无限丹青手,一片伤心画不成。'; }

    暗色主题在新标签页中打开链接,浏览器会有会闪白,我想修改一下变成本页打开。
    我看了一下代码,发现简单的删除target="_blank"不起作用,首页会不展示项目列表了。
    不是很懂代码,想问下作者怎么修改可以达到效果。

    请教几个问题

    1. 存档页面用的模板是JS控制的么?请问内容要怎么修改?
    2. CSS文件中有类似下面这样的写法
    .ml2,.mx2{margin-left:1rem}
    .mr2,.mx2{margin-right:1rem}
    .mt2,.my2{margin-top:1rem}
    .mb2,.my2{margin-bottom:1rem}
    .m2{margin:1rem}
    

    这样margin的四个方向单独写一行,有什么特殊用意么?

    还有这种

    .content .h2,.content h2,.content h3{font-size:1rem;font-weight:700;color:#eee}
    .content .h2,.content h2{position:relative;text-transform:none;letter-spacing:normal
    

    同一个属性也是分开写的。

    谢谢

    Resolving timed out after 3001 milliseconds

    @Seevil
    你好,我在群晖中使用MariaDB 10 + typecho 1.2.1, catus 1.3.4一直能正常使用。
    最近将群晖升级到DSM 7.2.1后,网站主页无法正常显示,只有:
    Resolving timed out after 3001 milliseconds

    请问怎么解决?
    感谢!

    unix_timestamp 函数不存在 (Postgresql)

    PHP: 7.4
    OS: Arch
    Typecho: master
    Database: Postgresql 12.5

    使用 cactus 主题的时候访问文章会报错:

    SQLSTATE[42883]: Undefined function: 7 ERROR:  function unix_timestamp(timestamp with time zone) does not exist
    

    查了一下,发现大概是因为 Postgres 没有 unix_timestamp 这个函数造成的。
    我完全不了解 PHP,所以希望您能修复一下,或是给一个解决方法。

    首页500错误

    什么都未修改 安装报错

    cactus版本:dee3445
    typecho版本:9c075dc
    php版本:8.0

    image

    首页每日一句的问题

    和这个问题一样 #5 ,我的环境是PHP5,有两个问题,

    • 一个问题是获取每日一句失败
      file_get_contents已打开,allow_url_fopen = On也已经打开,PHP报错信息
    PHP message: PHP Warning:  file_get_contents(): Unable to find the wrapper "compress.zlib" - did you forget to enable it when you configured PHP? in /srv/usr/themes/cactus/functions.php on line 508
    PHP message: PHP Warning:  file_get_contents(compress.zlib://https://rest.shanbay.com/api/v2/quote/quotes/today/): failed to open stream: No such file or directory in /srv/usr/themes/cactus/functions.php on line 508
    

    这个报错打开该文件/srv/usr/themes/cactus/functions.php,找到508行,将

    $json = file_get_contents("compress.zlib://".'https://rest.shanbay.com/api/v2/quote/quotes/today/');
    

    改成

    $json = file_get_contents('https://rest.shanbay.com/api/v2/quote/quotes/today/');
    

    貌似是因为PHP5不支持compress.zlib的原因

    • 第二个问题是前端没将json字符串转成对象

    image
    打开/srv/usr/themes/cactus/footer.php,找到片30行,添加一句

    data = JSON.parse(data);
    

    如图
    image

    然后就能正常显示了
    image

    Markdown标题显示为#标题

    @Seevil,
    你好,我使用Markdown标题“标题”或者“##标题”,
    ------
    在页面都会显示为
    #标题

    请问怎么去掉"#",正常显示为"标题"?
    谢谢!

    INDEX.PHP 的 第 63行 ,错误

    虽然固定了归档页面
    但是。。。。
    你自己的主站都是 404 page not found
    建议同学们每个人不同的归档页面自行修改。或者下一版本中出现在主题设置

    Class 'App' not found

    创建文章,页面的时候提示。
    '''
    Class App not found.
    '''
    记得以前好像也遇到过。忘了咋填坑的。
    image

    Call to a member function Send() on null

    在使用Cactus主题的时候,访问网站主页会显示Call to a member function Send() on null,在对index.php当中的today函数进行注释之后,网页才会恢复正常。

    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.