Discuz教程网

DZAPP2017论坛模板导致帖子页面所有嵌入点不执行的问题

[复制链接]
authicon dly 发表于 2018-8-8 17:05:40 | 显示全部楼层 |阅读模式
打开:template\dzapp2017\forum\viewthread.php
找到
  1. <!--{template common/headers}-->
复制代码
改为
  1. <!--{template common/header}-->
复制代码


打开:template\dzapp2017\common\header_common.php 修改为
  1. <?php exit('Access Denied'); ?>
  2. {if CURMODULE == 'viewthread'}
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5.         <head>
  6.         <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
  7.         <!--{if $_G['config']['output']['iecompatible']}--><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE{$_G['config']['output']['iecompatible']}" /><!--{/if}-->
  8.         <title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}--></title>
  9.         $_G['setting']['seohead']
  10.         
  11.         <base href="{$_G['siteurl']}" />
  12.         <meta name="keywords" content="{if !empty($metakeywords)}{echo dhtmlspecialchars($metakeywords)}{/if}" />
  13.         <meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
  14.         <meta name="copyright" content="2011-2018 www.ai0536.com." />
  15.         <meta name="MSSmartTagsPreventParsing" content="True" />
  16.         <meta http-equiv="MSThemeCompatible" content="Yes" />
  17.         <meta property="og:type" content="bbs"/>
  18.         <meta property="og:image" content="{$_G['siteurl']}data/attachment/forum/($postlist)"/>
  19.         <meta property="og:release_date" content=" {echo dgmdate($_G[forum_thread][dateline])}"/>
  20.         <meta property="og:title" content="$_G[forum_thread][subject]"/>
  21.         <meta property="og:description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}"/>
  22.     <meta property="og:author" content="$_G[forum_thread][author] "/>
  23.         <meta property="og:bbs:replay" content="$_G[forum_thread][allreplies]"/>
  24.         <!--{csstemplate}-->
  25.         <script type="text/javascript">var STYLEID = '{STYLEID}', STATICURL = '{STATICURL}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '{CHARSET}', discuz_uid = '$_G[uid]', cookiepre = '{$_G[config][cookie][cookiepre]}', cookiedomain = '{$_G[config][cookie][cookiedomain]}', cookiepath = '{$_G[config][cookie][cookiepath]}', showusercard = '{$_G[setting][showusercard]}', attackevasive = '{$_G[config][security][attackevasive]}', disallowfloat = '{$_G[setting][disallowfloat]}', creditnotice = '<!--{if $_G['setting']['creditnotice']}-->$_G['setting']['creditnames']<!--{/if}-->', defaultstyle = '$_G[style][defaultextstyle]', REPORTURL = '$_G[currenturl_encode]', SITEURL = '$_G[siteurl]', JSPATH = '$_G[setting][jspath]', CSSPATH = '$_G[setting][csspath]', DYNAMICURL = '$_G[dynamicurl]';</script>
  26.         <script type="text/javascript" src="{$_G[setting][jspath]}common.js?{VERHASH}"></script>
  27.         <!--{if empty($_GET['diy'])}--><!--{eval $_GET['diy'] = '';}--><!--{/if}-->
  28.         <!--{if !isset($topic)}--><!--{eval $topic = array();}--><!--{/if}-->
  29.         <link rel="stylesheet" href="$_G[style][styleimgdir]/pc_css/style.css" type="text/css" media="all">
  30.         <!--{eval require DISCUZ_ROOT.'./template/dzapp2017/lang/'.CHARSET.'.php';}-->
  31. {else}
  32. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  33. <html xmlns="http://www.w3.org/1999/xhtml">
  34.         <head>
  35.         <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
  36.         <!--{if $_G['config']['output']['iecompatible']}--><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE{$_G['config']['output']['iecompatible']}" /><!--{/if}-->
  37.         <title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}--></title>
  38.         $_G['setting']['seohead']

  39.         <meta name="keywords" content="{if !empty($metakeywords)}{echo dhtmlspecialchars($metakeywords)}{/if}" />
  40.         <meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
  41.         <meta name="copyright" content="2001-2013 www.ai0536.com." />
  42.         <meta name="MSSmartTagsPreventParsing" content="True" />
  43.         <meta http-equiv="MSThemeCompatible" content="Yes" />
  44.         <base href="{$_G['siteurl']}" />
  45.         <!--{csstemplate}-->
  46.         <script type="text/javascript">var STYLEID = '{STYLEID}', STATICURL = '{STATICURL}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '{CHARSET}', discuz_uid = '$_G[uid]', cookiepre = '{$_G[config][cookie][cookiepre]}', cookiedomain = '{$_G[config][cookie][cookiedomain]}', cookiepath = '{$_G[config][cookie][cookiepath]}', showusercard = '{$_G[setting][showusercard]}', attackevasive = '{$_G[config][security][attackevasive]}', disallowfloat = '{$_G[setting][disallowfloat]}', creditnotice = '<!--{if $_G['setting']['creditnotice']}-->$_G['setting']['creditnames']<!--{/if}-->', defaultstyle = '$_G[style][defaultextstyle]', REPORTURL = '$_G[currenturl_encode]', SITEURL = '$_G[siteurl]', JSPATH = '$_G[setting][jspath]', CSSPATH = '$_G[setting][csspath]', DYNAMICURL = '$_G[dynamicurl]';</script>
  47.         <script type="text/javascript" src="{$_G[setting][jspath]}common.js?{VERHASH}"></script>
  48.         <!--{if empty($_GET['diy'])}--><!--{eval $_GET['diy'] = '';}--><!--{/if}-->
  49.         <!--{if !isset($topic)}--><!--{eval $topic = array();}--><!--{/if}-->
  50.         <link rel="stylesheet" href="$_G[style][styleimgdir]/pc_css/style.css" type="text/css" media="all">
  51.         <!--{eval require DISCUZ_ROOT.'./template/dzapp2017/lang/'.CHARSET.'.php';}-->

  52. {/if}
复制代码




上一篇:Discuz 帖子复制链接功能,谷歌浏览器直接复制
下一篇:自动采集插件开启一键批量发布功能
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-4-29 04:00

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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