Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] Discuz 门户静态后 怎么生出 sitemap

[复制链接]
无所谓/ka 发表于 2018-5-10 09:36:25 | 显示全部楼层 |阅读模式
Discuz  门户静态后 怎么生出  sitemap
门户的文章都是静态 路径了    怎么创建   自动生成  sitemap
crx349 发表于 2018-5-10 16:23:03 | 显示全部楼层
sitemap 你可以插件生成哦
回复

使用道具 举报

 楼主| 无所谓/ka 发表于 2018-5-10 18:11:09 | 显示全部楼层
crx349 发表于 2018-5-10 16:23
sitemap 你可以插件生成哦

生成是 伪静态 路径  不是 静态文件路径
回复

使用道具 举报

jiangchuankyo 发表于 2018-5-13 13:13:07 | 显示全部楼层
这个文件source/class/extend/extend_thread_replycredit.php在每次发新主题后都会运行一次:
在里面这个函数function after_newthread()的后面添加根据当前tid写入txt文件的代码就好了:
file_put_contents('1.txt', "$url\n", FILE_APPEND);
回复

使用道具 举报

 楼主| 无所谓/ka 发表于 2018-5-15 17:12:15 | 显示全部楼层
jiangchuankyo 发表于 2018-5-13 13:13
这个文件source/class/extend/extend_thread_replycredit.php在每次发新主题后都会运行一次:
在里面这个函 ...

不会 用 你按你的说的
        public function after_newthread() {

                if($this->group['allowreplycredit']) {
                        if($this->param['replycredit'] > 0 && $this->replycredit_real > 0) {
                                updatemembercount($this->member['uid'], array('extcredits'.$this->setting['creditstransextra']['10'] => -$this->replycredit_real), 1, 'RCT', $this->tid);
                                $insertdata = array(
                                                'tid' => $this->tid,
                                                'extcredits' => $_GET['replycredit_extcredits'],
                                                'extcreditstype' => $this->setting['creditstransextra']['10'],
                                                'times' => $_GET['replycredit_times'],
                                                'membertimes' => $_GET['replycredit_membertimes'],
                                                'random' => $_GET['replycredit_random']
                                        );
                                C::t('forum_replycredit')->insert($insertdata);
                                file_put_contents('1.txt', "$url\n", FILE_APPEND);
                        }
                }

        }

没效果
回复

使用道具 举报

jiangchuankyo 发表于 2018-5-15 18:48:21 | 显示全部楼层
无所谓/ka 发表于 2018-5-15 17:12
不会 用 你按你的说的
        public function after_newthread() {

不是加if里面,if里面只有判断存在回帖奖励才会执行到那里去,加在最后一个花括号前},
$url是当前主题的地址变量,根据你自己网址换成你自己的
回复

使用道具 举报

 楼主| 无所谓/ka 发表于 2018-5-16 09:01:21 | 显示全部楼层
jiangchuankyo 发表于 2018-5-15 18:48
不是加if里面,if里面只有判断存在回帖奖励才会执行到那里去,加在最后一个花括号前},
$url是当前主题的地 ...

$url是当前主题的地址变量,根据你自己网址换成你自己的


我的是静态文件   路劲都不一样  不知道怎么写
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-2 03:50 , Processed in 0.019481 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表