MailCounter 显示出文章被转寄的次数

建站知识 2021-07-02 19:48www.168986.cn长沙网站建设
这项工具是由 The Next Web 所开发,如果你想知道你的文章被转寄的多不多,只要将语法加入网页即可。

使用教学

MailCounter 的显示样式如下:

JavaScript 语法:将以下源代码复制到你的网站要显示按钮的位置,记得将 http://yoururlhere. 和 title of your page here 变更为页面网址以及页面标题。

复制代码
代码如下:

<iframe src="http://getmailcounter./mailcounter/?url=http://yoururlhere.&title=title of your page here" height="64" width="50" frameborder="0" scrolling="no"></iframe>

WordPress 语法(自己架设WordPress):复製以下源代码,加入你的模版 single.php 和 index.php 等档案里。

复制代码
代码如下:

<?phpecho '<iframe src="http://getmailcounter./mailcounter/?url=';urlencode(the_permalink());echo '&title=';urlencode(the_title());echo '" height="64" width="50" frameborder="0" scrolling="no" ></iframe>';?>

网址:http://getmailcounter./(原文)

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by