2024年闫宝龙祝大家龙年吉祥如意,财源滚滚!

当前位置:首页 » 营销工具 » 正文

助力全球营销

zblog程序404错误页面的设置代码

967 人参与  2020年06月19日 13:44  分类 : 营销工具  评论

zblog程序404错误页面的设置代码如下,建立一个404.php文件在zb_users/theme/tpure/template这个地址下面就可以实现了:

{* Template Name:404错误页 *}

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <meta http-equiv="Content-Language" content="{$language}" />

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <meta name="renderer" content="webkit">

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>{$lang['tpure']['error404']} - {$name}</title>

    <link rel="stylesheet" rev="stylesheet" href="{$host}zb_users/theme/{$theme}/style/{$style}.css" type="text/css" media="all"/>

{if $zbp->Config('tpure')->PostCOLORON == '1'}

    <link rel="stylesheet" rev="stylesheet" href="{$host}zb_users/theme/{$theme}/include/skin.css" type="text/css" media="all"/>

{/if}

    <script src="{$host}zb_system/script/jquery-2.2.4.min.js"></script>

    <script src="{$host}zb_system/script/zblogphp.js"></script>

    <script src="{$host}zb_system/script/c_html_js_add.php"></script>

    <script src="{$host}zb_users/theme/{$theme}/script/common.js"></script>

    <script>window.tpure={{if $zbp->Config('tpure')->PostVIEWALLON=='1'}viewall:'on',{/if}{if $zbp->Config('tpure')->PostVIEWALLSTYLE}viewallstyle:'1',{else}viewallstyle:'0',{/if}{if $zbp->Config('tpure')->PostVIEWALLHEIGHT}viewallheight:'{$zbp->Config('tpure')->PostVIEWALLHEIGHT}',{/if}{if $zbp->Config('tpure')->PostSETNIGHTON}night:'on',{/if}{if $zbp->Config('tpure')->PostSETNIGHTAUTOON}setnightauto:'on',{/if}{if $zbp->Config('tpure')->PostSETNIGHTSTART}setnightstart:'{$zbp->Config('tpure')->PostSETNIGHTSTART}',{/if}{if $zbp->Config('tpure')->PostSETNIGHTOVER}setnightover:'{$zbp->Config('tpure')->PostSETNIGHTOVER}',{/if}{if $zbp->Config('tpure')->PostLAZYLOADON=='1'}lazyload:'on',{/if}{if $zbp->Config('tpure')->PostSELECTON=='1'}selectstart:'on',{/if}{if $zbp->Config('tpure')->PostREMOVEPON=='1'}removep:'on',{/if}{if $zbp->Config('tpure')->PostBACKTOTOPON=='1'}backtotop:'on'{/if}}</script>

{if $zbp->Config('tpure')->PostBLANKON=='1'}

    <base target="_blank" />

{/if}

{if $zbp->Config('tpure')->PostGREYON=='1'}

    {if ($zbp->Config('tpure')->PostGREYDAY && tpure_IsToday($zbp->Config('tpure')->PostGREYDAY) == true)}

        {if $zbp->Config('tpure')->PostGREYSTATE=='0'}

            {if $type == 'index'}<style>html { filter:grayscale(100%); } * { filter:gray; }</style>{/if}

        {else}

            <style>html { filter:grayscale(100%); } * { filter:gray; }</style>

        {/if}

    {elseif !$zbp->Config('tpure')->PostGREYDAY}

        {if $zbp->Config('tpure')->PostGREYSTATE=='0'}

            {if $type == 'index'}<style>html { filter:grayscale(100%); } * { filter:gray; }</style>{/if}

        {else}

            <style>html { filter:grayscale(100%); } * { filter:gray; }</style>

        {/if}

    {/if}

{/if}

    {$header}

</head>

<body class="{$type}{if GetVars('night','COOKIE') } night{/if}">

<div>

    {template:navbar}

    <div class="main{if $zbp->Config('tpure')->PostFIXMENUON=='1'} fixed{/if}">

        <div></div>

        <div>

            <div>

<h3>{$lang['tpure']['error404txt']}</h3>

<h4>{$lang['tpure']['nopage']}</h4>

<p>{$lang['tpure']['trysearch']}</p>

<form name="search" method="post" action="{$host}zb_system/cmd.php?act=search">

<input type="text" name="q" size="11"> 

<input type="submit" value="{$lang['tpure']['search']}">

</form>

<a href="{$host}">{$lang['tpure']['back']}{$lang['tpure']['index']}</a>

</div>

        </div>

    </div>

    {template:footer}


来源:闫宝龙博客(微信/QQ号:18097696),转载请保留出处和链接!

版权声明1,本站转载作品(包括论坛内容)出于传递更多信息之目的,不承担任何法律责任,如有侵权请联系管理员删除。2,本站原创作品转载须注明“稿件来源”否则禁止转载!

本文链接:http://seo.yanbaolong.com/post/887.html

<< 上一篇 下一篇 >>
海量短视频营销

  • 评论(0)
  • 赞助本站

助力全球营销

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

网站首页 | 站长新闻 | 好文分享 | 内涵段子 | 科技资讯 | SEO优化 | 网络营销 | 海外推广 | 案例分享 | 宝龙随记 | 免责说明 | 网站地图

Copyright@2006-2024 西安网络推广就找闫宝龙 手机/微信:13991172090 QQ:18097696 邮箱:im@Ybl.cn 网站备案号:陕ICP备19006681号