php - 自己制作的模版,无法提交评论

 手机用户2402852307 发布于 2022-11-14 20:43

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





    
    
    
    
    
    
    <?php $this->archiveTitle(array(
        'category'  =>  _t('分类 %s 下的文章'),
        'search'    =>  _t('包含关键字 %s 的文章'),
        'tag'       =>  _t('标签 %s 下的文章'),
        'author'    =>  _t('%s 发布的文章')
        ), '', ' - '); ?><?php $this->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')): ?>

options->commentsRequireMail): ?> required size="28" tabindex="2" />

options->commentsRequireURL): ?> required size="28" tabindex="3" />

widget('Widget_Security'); ?>

have()): ?>

commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?>

listComments(); ?> pageNav('« 前一页', '后一页 »'); ?>

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有