正在查看 4 个帖子:1-4 (共 4 个帖子)
-
作者帖子
-
原文丢失,这又是一段一段的从新写上来;
2 、替换后台 Google 图表显示
大致在 includes/functions-html.php 文件的 116 行
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
替换为
<script type="text/javascript" src="https://ajax.lug.ustc.edu.cn/jsapi"></script>
方法不完美,将就着用吧
此回复已被标记为私有,🔒 仅楼主及管理员可见。3 、替换分享框为国内服务
大致在 includes/functions-html.php 文件的 398 行
<div id="sharebox" class="share"> <?php echo $share_title; ?> <div id="tweet"> <span id="charcount" class="hide-if-no-js"><?php echo $count; ?></span> <textarea id="tweet_body"><?php echo $share; ?></textarea> </div> <p id="share_links"><?php yourls_e( 'Share with' ); ?> <a id="share_tw" href="https://twitter.com/home?status=<?php echo $_share; ?>" title="<?php yourls_e( 'Tweet this!' ); ?>" onclick="share('tw');return false">Twitter</a> <a id="share_fb" href="https://www.facebook.com/share.php?u=<?php echo $_url; ?>" title="<?php yourls_e( 'Share on Facebook' ); ?>" onclick="share('fb');return false;">Facebook</a> <?php yourls_do_action( 'share_links', $longurl, $shorturl, $title, $text ); // Note: on the main admin page, there are no parameters passed to the sharebox when it's drawn. ?> </p> </div>
替换为
<div id="sharebox" class="share"> <?php echo $share_title; ?> <div id="tweet"> <span id="charcount" class="hide-if-no-js"><?php echo $count; ?></span> <textarea id="tweet_body"><?php echo $share; ?></textarea> </div> <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"> 分享到:</a><a href="#" class="bds_qzone" data-cmd="qzone" title=" 分享到 QQ 空间"> 空间 </a><a href="#" class="bds_tsina" data-cmd="tsina" title=" 分享到新浪微博"> 微博 </a><a href="#" class="bds_tieba" data-cmd="tieba" title=" 分享到百度贴吧"> 贴吧 </a> <a href="#" class="bds_weixin" data-cmd="weixin" title=" 分享到微信"> 微信</a></div> </div>
使用百度分享替换。
补充下记得加上 百度分享 js 代码不然不会显示。
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"2","bdSize":"16"},"share":{"bdSize":16}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='https://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
-
作者帖子
正在查看 4 个帖子:1-4 (共 4 个帖子)
- 话题 「dz.gg 短网址系统优化修改代码合集」 已关闭,不接受新回复。