1、自己制作的typecho模版在"post"页面、“关于”页面、都无法提交评论.
2、我担心是自己的comments.php模版制作有问题,把自己制作的comments.php更换成默认模版自带的comments.php,问题依然存在。
3、我担心是自己的post.php模版制作有问题,把自己制作的post.php更换成默认模版自带的post.php,问题依然存在。
4、我同时把自己的制作的post和comments替换成默认的,问题依然存在。
5、https://segmentfault.com/q/10... 这个方案,无法解决我的问题。
6、typecho的前辈高手们,万望能给予纸指点,实在是找不到由头了。
7、下面的代码是:header.php
archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?>options->title(); ?>
######
8、下面的代码是post.php
need('header.php'); ?>
title() ?>
分类:category(','); ?> |
标签:tags(', ', true, 'none'); ?> |
日期:
content(); ?>
need('comments.php'); ?>
need('sidebar.php'); ?>
need('footer.php'); ?>
9、下面的代码是comments.php
comments()->to($comments); ?>
allow('comment')): ?>
have()): ?>
commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?>
listComments(); ?>
pageNav('« 前一页', '后一页 »'); ?>
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师