自定义PbootCMS未授权时的提示内容

格展网络
130 浏览35 点赞
PB教程网,一个佛系PbootCMS教程博客,了解一下
其实官方是支持自定义未授权提示内容的,只是未公布如何操作。
您可以按以下步骤自行操作替换原提示内容。

前言

其实官方是支持自定义未授权提示内容的,只是未公布如何操作。

您可以按以下步骤自行操作替换原提示内容。

操作步骤

1、在网站根目录下新建 sn.html 文件

2、在 sn.html 文件内编辑您想要展示的提示内容即可

3、示例代码

<!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=utf-8" />
    <title>该网站尚未获得授权</title>
    <style type="text/css">
    .top {
        height: auto;
        width: 800px;
        margin-right: auto;
        margin-left: auto;
        margin-top: 200px;
    }
    .top .a {
        font-family: "微软雅黑";
        font-size: 30px;
        text-align: center;
        float: left;
        width: 800px;
        color: #999999;
        font-weight: bold;
    }
    .top .b {
        font-family: "微软雅黑";
        font-size: 16px;
        text-align: right;
        float: left;
        width: 800px;
        margin-top: 100px;
    }
    .top .b a {
        color: #FF9900;
    }
    .top .b a:hover {
        color: #B00000;
    }
    </style>
</head>

<body>
    <div class="top">
        <span class="a">
            该网站尚未获得授权<br />
            请联系网站开发人员获取授权许可!
        </span>
    </div>
</body>

</html>

总结

不管您是什么需求下需要设置此页面,请您尊重CMS开发作者的辛勤成果。

在方便自己的情况下,不要侵犯到作者权益,感谢您对PbootCMS的支持!

本文由平台注册作者或者官方发布,未经许可,禁止转载!

本文网址:https://www.yingzia.com

本文来自:@格展网络 | 发布于 2020-06-17 00:25:46

原文来自:https://www.yingzia.com

点赞 | 35 浏览 | 130 分享