页面装载中...

让 RThanks 支持所有 Referring Sites

Update 2007-08-05: 此插件已经被 WP Plugins DB 收录!

这个好玩的创意来自于台湾朋友艾德.

昨天介绍的插件 RThanks 只能对来自少数几个网站(如 Google, del.icio.us 等)的访问者显示欢迎信息, 我把它修改了下, 让它可以对来自所有 Referring Sites 的访问者显示自定义信息, 并把作者无意中造成的一处 bug 修正过来.

下载地址: rthanks_plus.txt

使用方法:
1. 把第13行的 "hellobmw" 修改为你自己的域名, 打个比方, 你的 blog 地址是 http://www.google.com, 那就改 "hellobmw" 为 "google". 然后将代码另存为 rthanks_plus.php 并上传至/wp-content/plugins/目录下激活.

2. 把下面这行代码添加在你想显示欢迎信息的地方.

<?php refer_thanks(); ?>

3. (可选) CSS 样式和欢迎信息的内容在第18行修改.

这样就 OK 啦, 赶快试试效果吧!

-------------International-------------
RThanks Plus

What is RThanks Plus?

It is based on Rasyid.Net's RThanks and hacked by me to show customized thanks message to visitors from ANY referring site.

How to use it?

1. Download rthanks_plus_en.txt and save it as rthanks_plus_en.php, THEN
Replace "hellobmw" in Row 13 with your domain name, for example, if your site's url is "http://www.google.com", use "google" there instead.

2. Upload it to the /wp-content/plugins/ directory and activate it.

3. Add the code below to anywhere you like in the template. I put it before the WordPress Loop.

<?php refer_thanks(); ?>

How to change its style and customized message?

All you nead is in Row 18.

12Comment(s). Blabla or Trackback

  • stevenlichen at 15:14 Jun 24, 2007 

    冰仔,你这个“阅读全文(902字)”是怎么实现的啊? :em16:

  • 北极冰仔 at 16:51 Jun 24, 2007 

    @steven
    在我的下一篇文章里面提到了,Yskin的摘要插件wp-CJK-excerpt。 :em02:

  • qb at 17:10 Jun 24, 2007 

    这个真不错 收藏下来了 回来推荐一下 :em01:

  • 北极冰仔 at 17:16 Jun 24, 2007 

    @qb
    谢谢老前了。 :em16:

  • limkianhui at 21:11 Jul 14, 2007 

    请问,这文章的trackback网址是什么?为何看不见?

  • 北极冰仔 at 09:15 Jul 15, 2007 

    在URL后面加上 /trackback 就可以了.

  • hhalloyy at 03:19 Aug 19, 2007 

    用了那个静态插件,是不是就不显示这个欢迎信息了?

  • 北极冰仔 at 09:25 Aug 27, 2007 

    是的:)

  • chada at 06:34 Dec 02, 2007 

    有部分代码加密了呢,不过不影响使用

    对推荐自己BLOG又是一个好方法呢!建议你把背景颜色改一下,个人感觉米兰黄不大衬你这个blog.

  • 北极冰仔 at 13:16 Dec 02, 2007 

    chada » 那个不是加密,呵呵,只是很一般的正则表达式。另外谢谢你的建议,最近很忙也很懒,等有空确实应该把颜色换换。

  • chada at 15:55 Dec 03, 2007 

    现在样子就和页面很衬了。另外,谢谢指教哦,要不我还会一直以为那是加密的编码呢。

  • leon at 13:20 Jan 27, 2008 

    不错啊,我也用了这个插件

    leon’s last blog post..零号特工

Blabla ↓

Connecting to server...

10Pingbacks & Trackbacks