2核1G3M服务器88一季度

腾讯云,阿里云百度云等 折扣价→点我←

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

游客1 游客组




打开:template\dzapp2017\forum\viewthread.php
找到

<!--{template common/headers}-->


改为
<!--{template common/header}-->


打开:template\dzapp2017\common\header_common.php 修改为
<?php exit('Access Denied'); ?>
{if CURMODULE == 'viewthread'}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
        <!--{if $_G['config']['output']['iecompatible']}--><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE{$_G['config']['output']['iecompatible']}" /><!--{/if}-->
        <title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}--></title>
        $_G['setting']['seohead']
        
        <base href="{$_G['siteurl']}" />
        <meta name="keywords" content="{if !empty($metakeywords)}{echo dhtmlspecialchars($metakeywords)}{/if}" />
        <meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
        <meta name="copyright" content="2011-2018 www.ai0536.com." />
        <meta name="MSSmartTagsPreventParsing" content="True" />
        <meta http-equiv="MSThemeCompatible" content="Yes" />
        <meta property="og:type" content="bbs"/>
        <meta property="og:image" content="{$_G['siteurl']}data/attachment/forum/($postlist)"/>
        <meta property="og:release_date" content=" {echo dgmdate($_G[forum_thread][dateline])}"/>
        <meta property="og:title" content="$_G[forum_thread][subject]"/>
        <meta property="og:description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}"/>
    <meta property="og:author" content="$_G[forum_thread][author] "/>
        <meta property="og:bbs:replay" content="$_G[forum_thread][allreplies]"/>
        <!--{csstemplate}-->
        <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>
        <script type="text/javascript" src="{$_G[setting][jspath]}common.js?{VERHASH}"></script>
        <!--{if empty($_GET['diy'])}--><!--{eval $_GET['diy'] = '';}--><!--{/if}-->
        <!--{if !isset($topic)}--><!--{eval $topic = array();}--><!--{/if}-->
        <link rel="stylesheet" href="$_G[style][styleimgdir]/pc_css/style.css" type="text/css" media="all">
        <!--{eval require DISCUZ_ROOT.'./template/dzapp2017/lang/'.CHARSET.'.php';}-->
{else}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
        <!--{if $_G['config']['output']['iecompatible']}--><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE{$_G['config']['output']['iecompatible']}" /><!--{/if}-->
        <title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}--></title>
        $_G['setting']['seohead']

        <meta name="keywords" content="{if !empty($metakeywords)}{echo dhtmlspecialchars($metakeywords)}{/if}" />
        <meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
        <meta name="copyright" content="2001-2013 www.ai0536.com." />
        <meta name="MSSmartTagsPreventParsing" content="True" />
        <meta http-equiv="MSThemeCompatible" content="Yes" />
        <base href="{$_G['siteurl']}" />
        <!--{csstemplate}-->
        <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>
        <script type="text/javascript" src="{$_G[setting][jspath]}common.js?{VERHASH}"></script>
        <!--{if empty($_GET['diy'])}--><!--{eval $_GET['diy'] = '';}--><!--{/if}-->
        <!--{if !isset($topic)}--><!--{eval $topic = array();}--><!--{/if}-->
        <link rel="stylesheet" href="$_G[style][styleimgdir]/pc_css/style.css" type="text/css" media="all">
        <!--{eval require DISCUZ_ROOT.'./template/dzapp2017/lang/'.CHARSET.'.php';}-->

{/if}


[backcolor=magenta]DZAPP插件推荐:[/backcolor]
DZAPP基础插件 V2018.3.0 DZ建站学习研究分享(站长窝魔方解密DZAPP 2018全套学习研究)
https://bbs.zhanzhangwo.com/t-36040-1-1.html
(出处: 站长窝)

DZAPP插件管理中心 V2017.2.1 DZ建站学习研究分享(站长窝魔方解密DZAPP 2018全套首发)
https://bbs.zhanzhangwo.com/t-36041-1-1.html
(出处: 站长窝)
站长窝论坛版权声明 1、本帖标题:DZAPP2017论坛模板导致帖子页面所有嵌入点不执行的问题
2、论坛网址:站长窝论坛
3、站长窝论坛的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
4、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
5、站长窝论坛一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
6、本帖由游客1在站长窝论坛《程序综合区》版块原创发布, 转载请注明出处!
评论
最新回复 (0)
返回
发新帖