7/14/2006

Reddit This - Wordpress Plugin

Filed under:
News
— Aviran Mordo

Current version: 1.0
Reddit this wordpress plugin is a plugin that detects incoming links from Reddit.com to your wordpress post and automatically display a link back to the reddit post, for people to vote and comment on your story.
When a referral is first recognized an email is sent to the site’s admin

The detection is based on the referrer URL, which has to come from reddit.com.
In case there is more than one reddit posts to your page, only the first one will be displayed.

How to install:
Copy Reddit this plugin to wordpress plugin folder and activate it.

To use this, simply add < ?php if(function_exists('reddit_this')) {reddit_this();} ?> anywhere in your template (in “the loop”) you want to show the link back to Reddit.

The function has 5 optional parameters:
$before - The text you want to output before the link. This can any HTML text, for instance a tag
$link_text - The text that will link back to reddit. The default is “Vote Reddit story”. (This can also be an image tag or any other valid html tags)
$after - The text to output after the link back to reddit. For instance the closing tags from the $before text.
$ping - This is a ping attribute (string) inside the <a href…> tag. The ping will be added at the end of the post URL.
$show_what_is_this - This is a boolean which indicates whether to show a question mark after the reddit this link, which explains why this link is created and link to this plugin page.

Examples:

Examples:
< ?php reddit_this(); ?> will create a “Vote Reddit story” link with a question mark which explains why this link is created and link to the plugin page.
< ?php reddit_this("<p class='reddit'>“, “Comment On Reddit”, “<p>”); ?> will create a “Comment On Reddit” link like the previous example between <p> tags.
< ?php reddit_this("<br/>“, “Vote Reddit story”, “”, “ping”); ?> like before but adds a ping url to the reddit link.
Note: if you are using url format such as yoursite.com?post=12 the ping string should be “&ping=SOMETHING”
< ?php reddit_this("", "Vote Reddit story", "", "ping", false); ?> like the above but removes the ? link.

You may download this plugin for free, all I ask is that you let me know how it works for you (just write a comment).
Please show your support by leaving the $show_what_is_this as true (you don’t have to but I will really appreciate it).

Download Reddit this plugin

Also availabe: Digg This Wordpress Plugin

81 Responses to “Reddit This - Wordpress Plugin”

Harry Says:

will any body tell me what is reddit.com and how can i be benefitted from it.

bbum Says:

I modified this module to do the reddit button in the same way you did the digg-this button.   Almost.  It also short circuits the referrer such that people clicking through from reddit’s new page will trigger the auto-reddit-detection behavior.

Pain in the ass.   I know not PHP well and it shows, I’m sure. But it works for me.

http://www.friday.com/misc/reddit-this.php.gz

bbum Says:

Oh, forgot to mention — take that code and do whatever you want with it.  Feel free to ping me via email, if necessary.

umair Says:

@Harry
well if u want to know wht redit is , ur best bet will be tto visit it :D

WallerBlog Says:

Hey, I love your digg plugin, but I can’t get this one to work.

Aviran Mordo Says:

It works the same, but like the digg plugin people need to enter your page from the comments page of the link in reddit, otherwise the plugin can’t know the story URL

articlexpose Says:

Its very useful plugin, very help in promote my articles..thank you very much for the plugin…

bullet proof hosting Says:

nice

Onlineshop Says:

I think these blog is really useful for new comers and Excellent resource list.
It´s a very interesting Blog and simple answer of many questions.
Keep up the good work!
Thanks it helps me a lot…

gutschein Says:

Excellent article it’s realy helpful, keep up the good work!
Thank you.

sohbet Says:

thanks , very good

Jay Tillery Says:

Groovy!

Jayce Ooi Says:

Thanks. =)

Alien Says:

Thanks for information.

sohbet Says:

very nice site

ugon Says:

thanks for reddit plg

sms Says:

of course very fine

mirc Says:

thank you very much

Gratis SMS Says:

It’s interesting to read ideas, and observations from someone else’s point of view… makes you think more.

youtube, rize Says:

Stumbled across this blog from the V7N contest post..wow. I’ll be back

Futbol izle Says:

Usefull plugin already downloaded… I will install soon as well…

evden eve nakliyat Says:

thanks

best-of-katalog Says:

ich finde es ist eine gute Idee des webmasters

Stefan Says:

relation… good

nana Says:

danke für alles

Sohbet Says:

But I think Fresh theme is better than it…

Bad Düben Says:

Its very useful plugin

sMs Says:

Thank you for the great plugin, i will use it on one of my projekts.

cam filmi Says:

keep up the good work! thanks

En Güzel Resimler Says:

thanx so much this plugin is very good ı like this site.

Cool Pictures Says:

good post will create a “Vote Reddit story†link with a question mark which explains why this link is created and link to the plugin page. ı like this.Thanx

youtube Says:

thank you very much

kıbrıs Says:

thank you so much. goodest.

Muhabbet Says:

Thanks For plugin.

Michael Says:

thanx so much this plugin is very good ı like this site.

indir Says:

thanx so much this plugin is very good ı like this site.

chat Says:

But I think Fresh theme is better than it

chat Says:

thank you for plugin.

mor ve ötesi Says:

thanks a lot

Tunahan Says:

Thanks for post.

baby pictures Says:

thanks for this plugin.it is in my default wp file.

berkmr Says:

Its very useful

cello Says:

Thank you for the great plugin

stoo Says:

its useful,thanks

araba oyunlari Says:

good

erdem Says:

:)

Plus Tc Says:

Thanks

nakliyat Says:

Q : will any body tell me what is reddit.com and how can i be benefitted from it.

A : Reddit is a social bookmarking service

ADtesch ile Reklam 2.0 Döemi Says:

Thanks for all ;)

facebook Says:

thankss

arkadaÅŸ Says:

Hi if others are interested in language variants may be we can help

oyungemisi Says:

Excellent Job…
Thank you.

oyungemisi Says:

Excellent Job… I will try to incorporate this in my Devotional Website…

Thanks

Sohbet Says:

thanks..

burak Says:

good good thanks

hakan Says:

thankssss

Keyifkafe.Net Says:

Thanks for all

makale Says:

thanks friend

youtube Says:

thx for your plugin I am Blog

Serkan Says:

Hey, I love your digg plugin, but I can’t get this one to work

maynet Says:

thanks

muhabbet Says:

thx you

Emrecan Says:

Thank you !

forumlar Says:

im having similar problems to jason, not showing the characters correclty shows

World Says:

Very useful plugin, very help in promote my articles. Thanks very much.

CodTr Says:

Thanks

resim upload Says:

thanks man

sohbet Says:

Thanks a lot

sohbet Says:

thanks

Adam Pharid Says:

Hey, I love your digg plugin

Many thanks for the plugin!

mp3 Says:

thank you

Chat Says:

thank you

sohbet Says:

thanks my frined

mirc Says:

thanks.

porno izle Says:

thanks

hakan altun Says:

http://www.hakanaltunfan.com
Hakan altun hayranlarının ortak bulusma adresi

deprem | izolasyon | villa | zenon | prefabrik Says:

thanks

mirc Says:

thanks you

sendika,catia,aöf,657 Says:

Thanks.
This is my site http://www.657liyiz.biz
sendika,catia,aöf,657

sohbet Says:

THANKS so much

sohbet Says:

its good i will use it thanks a lot.

Leave a Reply

You must have Javascript enabled in order to submit comments.

All fields are optional (except comment).
Some comments may be held for moderation (depends on spam filter) and not show up immediately.
Links will automatically get rel="nofollow" attribute to deter spammers.

Powered by WordPress


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser