GithubHelp home page GithubHelp logo

fantasy's Introduction

typecho 后台登陆页美化

瑕疵:

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

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

更多详情请看我的博客

fantasy's People

Contributors

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

fantasy's Issues

留言 QQ 头像尺寸已失效

\fantasy\comments.php

if(strstr($email,"qq.com") && is_numeric($qq) && strlen($qq) < 11 && strlen($qq) > 4)
{
  $avatar = '//q.qlogo.cn/g?b=qq&nk='.$qq.'&s=48';
}else{
  $avatar = $host . $url . $hash . '?s=48' . '&r=' . $rating . '&d=mm';
}   

48 px 值已失效,HTTP 400 Bad Request ,修改为 40 即可:

if(strstr($email,"qq.com") && is_numeric($qq) && strlen($qq) < 11 && strlen($qq) > 4)
{
  $avatar = '//q.qlogo.cn/g?b=qq&nk='.$qq.'&s=40';
}else{
  $avatar = $host . $url . $hash . '?s=40' . '&r=' . $rating . '&d=mm';
}   

实现搜索功能的一个小建议

可以在header.php的第46行的div处加入以下代码,实现搜索功能,但是我没有找到vcomment.php里面按钮调用的class导致看起来有点变扭qwq

<div class="form-group">
<form method="post" id="search" action="<?php $this->options->siteUrl(); ?>" role="search">
<span class="input-group-text"><i class="ni ni-zoom-split-in"></i></span>
<input class="form-control" type="text" id="s" name="s" placeholder="输入关键词">
<button type="submit" title="Cmd|Ctrl+Enter" class="vsubmit vbtn" >搜索</button>
</form>
</div>

建议增加前台打开编辑的功能(附有关代码)

这个主题越来越棒了!

希望增加一个在前台打开编辑的链接(具体位置是content meta这里). 相信我, 这个功能会让大家爱不释手的.

(大概是这个样子, 代码未测试, 样式什么的交给你了)

 <?php if($this->user->hasLogin()):?>(这里是判断登录, 还可以增加更复杂的判断, 比如用户组.)
a href="<?php $this->options->siteUrl(); ?>/admin/write-post.php?cid=<?php $this->cid(); ?>">编辑</a>
<?php endif;?>

最好是同时加在文章页和单页

评论似乎不支持审核

Typecho 版本:1.2.0

PHP 版本:8.1

问题描述:出错时提示 Markdown 转换器接受的类型不能为 NULL(Utils\Markdown::convert(): Argument #1 ($text) must be of type string, null given, called in /theme/functions.php on line 105)。尝试去掉查询语句的 status 字段之后问题解决,但未审核的评论在评论区未标识为待审核状态,且前面自动加了个内容为空的 @(commentAtContent() 函数)。

下图为未审核的评论在发送者的页面显示的状态,非发送者显示状态正常。

image

欸,在调试评论么?

刚下载安装了一下发现 评论刷新后消失

madevo.net 系统 debian8x64 环境 nginx1.14 php7.2

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.