php专区

 首页 > php专区 > PHP应用 > CMS建站 > discuz论坛帖子内容动态链接批量替换成静态链接

discuz论坛帖子内容动态链接批量替换成静态链接

分享到:
【字体:
导读:
          discuz论坛帖子内容动态链接批量替换成静态链接 discuz帖子内容批量替换forum_viewthread php,1054行$_G[ 39;forum_firstpid 39;] = i...

discuz论坛帖子内容动态链接批量替换成静态链接 discuz帖子

discuz论坛帖子内容动态链接批量替换成静态链接 discuz帖子内容批量替换

forum_viewthread.php,1054行$_G['forum_firstpid'] = intval($_G['forum_firstpid']);前添加:

  1. $post['message']=preg_replace("/category.php?id=(d+)/s","category-\1-b0.html",$post['message']);        
  2. $post['message']=preg_replace("/.php?id=(d+)/s","-\1.html",$post['message']);        
  3. $post['message']=str_replace("abc.php","abc.html",$post['message']);        
  4. $post['message']=str_replace("index.php","",$post['message']);        
  5. $post['message']=preg_replace("/.html&cid=(d+)/s","-\1.html",$post['message']);    
  6. $post['message']=preg_replace("/article_cat-(d+)-(d+).html/s","abc-\1-\2.html",$post 
  7. ['message']);    

注意跟自己的静态页面正则匹配,可以参照上面的,添加或删减.

分享到:
Discuz3.1论坛升级问题集 - Discuz
Discuz3.1论坛升级问题集 一、升级提示需要Ucenter1.6.0版本。 1、UCenter 的文件没有上传完整,此时可以重新下载一份 UCenter 的程序(下载地址),重新覆盖程序后重新升级。 2、有可能是 Discuz! X 没有访问到正确的 UCenter:       1)请检查您的目录下有几个 UCenter 的目录,例...
discuz 解决 布在内网 加载慢问题 - Disc...
discuz 解决 布在内网 加载慢问题 discuz的使用和安装还是挺简单快捷的,这点应该是目前做得最好的一款论坛应用了,我在外网使用过程中很正常,但是一移动到内网环境就整个速度慢了不止一个级别,ok,现在来看看是什么问题. 用chrome的debug一看,原来是几个外部加载类的问题,包括discuz_tips.js、...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……