GithubHelp home page GithubHelp logo

wuxianucw / partiallypassword Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 12.0 62 KB

Typecho 文章部分加密插件(PartiallyPassword)支持对某一篇文章的特定部分创建密码,访客需要正确输入密码才能查看内容。

License: MIT License

PHP 100.00%
password plugin plugin-extension plugin-typecho typecho

partiallypassword's Introduction

To create with magic!

wuxianucw's GitHub stats

Top Langs

partiallypassword's People

Contributors

damonhu avatar wuxianucw 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

Watchers

 avatar

partiallypassword's Issues

开启插件后“独立页面”报错

Bug 描述
开启插件后“独立页面”报错;“独立页面”编辑器中无“自定义字段”块

如何触发
开启插件后打开 某个 已编辑的 独立页面,其中有使用“AccessoriesPro插件”的项目,报错显示:

‘’‘
Warning: require(/www/wwwroot/macbeats.win/usr/plugins/AccessoriesPro/templates/item/.php): failed to open stream: No such file or directory in /www/wwwroot/macbeats.win/usr/plugins/AccessoriesPro/Widget/Item.php on line 118

Fatal error: require(): Failed opening required '/www/wwwroot/macbeats.win/usr/plugins/AccessoriesPro/templates/item/.php' (include_path='.:') in /www/wwwroot/macbeats.win/usr/plugins/AccessoriesPro/Widget/Item.php on line 118
’‘’

截图
关闭插件时候截图:
捕获1

打开插件时截图:
捕获2

环境信息

  • PHP 版本:[7.4]
  • Typecho 版本:[1.2]
  • 相关插件(可能?):AccessoriesPro

本意是想在独立页面中使用部分加密的效果,但似乎插件没有考虑在独立页面中使用的情况?希望能得到帮助,谢谢!

开启插件后,输入密码跳转白屏

您好抱歉打扰您了,typecho在升级更新为1.2.0版本、handsome主题9.0.2后,加密插件在输入正确密码后跳转白屏,再次刷新后回到需要重复输入密码的状态,请问是插件需要更新吗还是个人设置出错了

Warning: Undefined array key "action" in /www/wwwroot/typecho/usr/themes/handsome/libs/Request.php(222) : eval()'d code on line 1
Warning: Undefined array key "action" in /www/wwwroot/typecho/usr/themes/handsome/libs/Request.php(222) : eval()'d code on line 1
Warning: Undefined array key "action" in /www/wwwroot/typecho/usr/themes/handsome/libs/Request.php(222) : eval()'d code on line 1
Warning: Undefined array key "action" in /www/wwwroot/typecho/usr/themes/handsome/libs/Request.php(222) : eval()'d code on line 1
Warning: Undefined array key "action" in /www/wwwroot/typecho/usr/themes/handsome/libs/Request.php(222) : eval()'d code on line 1
Warning: Undefined array key "type" in /www/wwwroot/typecho/usr/themes/handsome/component/header.php on line 10
Warning: Undefined array key "type" in /www/wwwroot/typecho/usr/themes/handsome/component/header.php on line 10

仅输出标题或标题列表时,也会调用插件替换逻辑

Bug 描述
在输出独立页面列表(导航栏使用),或“上一篇”“下一篇”时,尽管只是输出标题,但该插件仍然被调用并处理content text,并且会输出插件的 header,footer,浪费了计算资源和带宽。其实只有当页面或文章的正文需要输出时,才需要调用该插件以及输出 header,footer

预期的改进:
仅当必要时(即输出摘要或全文时),才运行插件的核心替换逻辑,否则该插件不产生实际作用。

思路:
插件不要插到filter,而是插到excerptEx, contentEx即可。

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.