Comments (2)
看到作者wiki说是 自带的评论系统进行储存的我就把它调回了普通模板,评论了一条消息,法线提交post的时候他还发送了另一条数据 &_=8264210fad7fb029f62d1364fc6fca7f 而且这条数据是不变的,加上这条数据在进行提交就可以了
本人也不太会编程,他的说说模板文件是叫做 saying.php
找到form表单这一行
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" class="saying-form" role="form"> <p> <textarea rows="8" cols="50" name="text" id="textarea" placeholder="<?php gtecho('sayingPageTexts','sayingPlaceholder'); ?>" class="OwO-textarea comment-textarea textarea" required ><?php $this->remember('text'); ?></textarea> <input type="hidden" name="_" value="8264210fad7fb029f62d1364fc6fca7f"></input> </p> <p> <button type="submit" class="comment-submit submit"><?php gtecho('sayingPageTexts','sayingSubmit'); ?></button> </p> </form>
把这个替换上去就行了,原理就是加了个隐形的编辑框 名字是_ 提交的数据就是刚刚说到的数据
from miracles.
在Typecho後台的評論設置中,將選項“开启反垃圾保护”給關閉可以解決這個問題。
from miracles.
Related Issues (20)
- 增加「手风琴」代码 HOT 1
- 后台撰写文章页面 xss HOT 1
- 用 CSS 搭配 polyfill 优化平滑滚动
- 在 php 层面生成二维码 HOT 2
- 归档页面模板的 meta 元信息
- 「追番」 SESSDATA 通过扫码获取
- Miracles 主题设置面板問題 HOT 5
- 番剧图片无法加载 HOT 2
- 优化评论分页的返回顶部
- 大图片(超宽图片)溢出文章DIV HOT 1
- 1.6.0版本号没改
- 如何添加导航二级分类 HOT 1
- 你好,请问有个人主页的源码嘛? HOT 1
- 后台设置界面对移动端优化 HOT 3
- 2.0开发版 左侧抽屉栏点不开
- 在高版本PHP中出现报错 HOT 1
- 标签页logo无法加载(Favicon)
- 文章页面报错Database Query Error
- WIKI无法访问 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miracles.