WordPress能将文章内容和评论内容外链变内链接的插件anyLink跳转页怎么修改得更好看?

共1个回答

 发表回答

  1. boke123导航站长
    boke123导航(站长回复) @回复

    这个插件的跳转页对应的文件是/wp-content/plugins/anylink/re.php,我们只需要修改这个文件就可以了。想要改成类似QQ邮箱跳转页的话,只需要将该文件的内容全部删除,然后添加以下代码:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="robots" content="noindex, nofollow" />
    <noscript><meta http-equiv="refresh" content="1;url='<?php echo $gotoLink;?>';"></noscript>
    <title>boke123导航安全中心提醒您</title>
    <style>body{margin:0;padding:0 30px;background:#fff;font-size:12px}img{border:none}a{text-decoration:none;cursor:pointer;outline:0}a:hover{text-decoration:underline}a,a:link,a:visited{color:#1e5494}a.btn_blue:focus{border-color:#93d4fc;box-shadow:0 0 5px #60caff}a.btn_blue{display:inline-block;padding:6px 25px;margin:0;font-size:14px;font-weight:700;text-align:center;border-radius:3px;border:1px solid #0d659b;color:#fff;color:#fff!important;background-color:#238aca;background:-moz-linear-gradient(top,#238aca,#0074bc);background:-webkit-linear-gradient(top,#238aca,#0074bc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#238aca', endColorstr='#0074bc');-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#238aca', endColorstr='#0074bc')"}a.btn_blue:hover{text-decoration:none;background-color:#238aca;background:-moz-linear-gradient(top,#2a96d8,#0169a9);background:-webkit-linear-gradient(top,#2a96d8,#0169a9);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2a96d8', endColorstr='#0169a9');-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#2a96d8', endColorstr='#0169a9')"}a.btn_blue:active{background-color:#238aca;background:-moz-linear-gradient(top,#0074bc,#238aca);background:-webkit-linear-gradient(top,#0074bc,#238aca);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0074bc', endColorstr='#238aca');-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#0074bc', endColorstr='#238aca')";outline:0}.remind_block{overflow:hidden}.remind_block .remind_content{overflow:hidden}.remind_block .remind_title{margin-bottom:10px;padding-top:3px;font-weight:700;font-size:20px;font-family:"Microsoft YaHei","lucida Grande",Verdana}.remind_block .remind_detail{line-height:1.5;font-size:16px;color:#535353}.warning .remind_title{color:#16a085}.container{max-width:640px;margin:0 auto;padding-top:25px}.header{margin-bottom:5px}.footer{margin-top:18px;text-align:center;color:#a0a0a0;font-size:10px}.content{border:1px solid #bbb;box-shadow:0 0 3px #d4d4d4}.c-container{padding:30px}.c-footer{padding:10px 15px;background:#f1f1f1;border-top:1px solid #bbb;overflow:hidden}.c-footer-a1,.c-footer-a2{float:left}.c-footer-a2{margin:8px 0 0 15px}.safety-url{margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dfdfdf;word-wrap:break-word;word-break:break-all}</style>
    </head>
    <body>
    <div class="container">
    <div class="header">
    <img width="150" height="35" src="https://boke123.net/photo/logoml2.png">
    </div>
    <div class="content">
    <div class="c-container warning">
    <div id="remind_block" class="remind_block" style="height: 200px;">
    <div class="remind_content">
    <div class="remind_title">
    您将要访问
    </div>
    <div class="remind_detail">
    <div class="safety-url">
    <?php echo $gotoLink;?>
    </div>
    <span style="color:#CC0000;font-weight:800;">温馨提示:</span><br/>该网页不属于 boke123导航,我们无法确认该网页是否安全,它可能包含未知的安全隐患,请注意保护好个人信息!
    </div>
    </div>
    </div>
    </div>
    </div>
    <div class="c-footer">
    <a href="<?php echo $gotoLink;?>" rel="nofollow" class="c-footer-a1 btn_blue">继续访问</a><a class="c-footer-a2" href="https://wuyiyia.com/" rel="nofollow">返回主页</a>
    </div>
    </div>
    <div class="footer">Copyright © boke123导航</div>
    </body>
    </html>

    记得修改上述代码中的第7行、第13行、第26行、第33行、第36行的内容为自己站点的内容。

WYYB网站库VIP快审服务