Digg This - Wordpress Plugin
Current version: 1.0.3 Updated: 5-May-2007 - Over 15,000 bloggers downloaded this plugin
Digg this wordpress plugin is a plugin that detects incoming links from Digg.com to your wordpress post and automatically display a link back to the digg post, for people to digg your story.
When a digg 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 digg.
In case there is more than one digg posts to your page, only the first one will be displayed.
How to install:
Copy Digg this plugin to wordpress plugin folder and activate it.
To use this, simply add <?php digg_this(); ?> or <?php digg_this_button(); ?> anywhere in your template (in “the loop“) you want to show the link back to digg.
VERY IMPORTANT: Since dugg stories are linked to a single post you also HAVE TO put the digg_this() function in your single.php template, otherwise it will not recognize incoming links

If all you want is the digg vote box all you need to use is the <?php digg_this_button(); ?> function. However if you want to use text links or to customize the box you’ll need to use <?php digg_this(); ?> function.
digg_this() can display both text link to digg and digg’s vote box and it is very customizable.
The function has 6 optional parameters:
$before - The text you want to output before the link. This can any HTML text, for instance a <span> or <div> tags
$link_text - The text that will link back to digg. The default is “Digg this story”. (This can also be an image tag or any other valid html tags)
$after - The text to output after the link back to digg. 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 digg this link, which explains why this link is created and link to this plugin page.
$use_digg_button - This is a boolean which determins if you want to display Digg’s vote button or just a text link. Default is false which means display text link.
Examples:
Examples:
<?php digg_this(); ?> will create a “Digg this story” link with a question mark which explains why this link is created and link to the plugin page.
<?php digg_this(”<p class=’digg’>”, “Digg this”, “<p>”); ?> will create a “Digg this” link like the previous example between <p> tags.
<?php digg_this(”<br/>”, “Digg this story”, “”, “ping”); ?> like before but adds a ping url to the digg link.
Note: if you are using url format such as yoursite.com?post=12 the ping string should be “&ping=SOMETHING”
<?php digg_this(”", “Digg this story”, “”, “ping”, false); ?> like the above but removes the ? link.
<?php digg_this_button(); ?> - Display the digg vote button
You may download this plugin for free (You can also make a small donation).
Please show your support by leaving the $show_what_is_this as true (you don’t have to but I will really appreciate it).
Also available: Reddit This Wordpress Plugin
If you still don’t understand how to install the plugin, or having trouble with the installation you might want to take a look here for a walkthru. (thanks John for pointing this)
Change log:
- 0.2 - Remove Get Custom Field Values plugin dependency
- 0.3 - Bug fix - Referrer sometimes ID other sites as digg.
Add email notification to admin when a first digg is identify
Bug fix - Referrer from digg search wrongly ID as a digg post - 0.4 - Add ping attribute to the URL for better tracking.
Add Title attribute to the URL
Add an explanation and a link back to this page after the digg this story url (optional) - 1.0 - Add support for digg’s vote button
- 1.0.1 - Buf fix: Links from the upcoming page were recognized as story links
- 1.0.2 - Security Fix - Check that the story on digg actually point to your post. This solves spoofed referrers and links from the comments that point to you and cause a digg button to be displayed
- 1.0.3 - Minor fix that alows digg_this button to work on some shared servers (like Dreamhost) that block get_contents()











(160 votes)
January 1st, 2006 at 11:43 pm
[…] Digg This,??供当?文章被他人引用的链接,数?是从digg.com???的,对中文Blog用处?大。 […]
January 3rd, 2006 at 1:47 am
Thanks! Works a charm!
January 3rd, 2006 at 7:18 pm
Whoa, great stuff!
January 10th, 2006 at 11:25 am
[…] read more | digg story […]
January 11th, 2006 at 2:06 am
Enabled the plugin and put the code in my template like so
and on my blog page
just shows up as text. I have also activated the plugin. I am a noob so be easy on me! This plugin looks very promising!
January 11th, 2006 at 7:55 am
Butch, I can’t realy help you unless I see the template code.
Open a thread in the forum and post a snippet of your template
January 15th, 2006 at 10:26 pm
[…] Digg This […]
February 2nd, 2006 at 2:08 am
Hi, I like your site! I enjoyed browsing it. Thanks. In Dutch we say dank-je-wel 4 thanks))
February 8th, 2006 at 7:21 pm
Hi, I think you are totally right. Great! -
Susan.
February 11th, 2006 at 8:23 pm
I am the rich jerk. I may be ugly, yet I can buy another car everyday..thanks to the net. Why not use your blog doing the same? Bye.
February 16th, 2006 at 3:08 am
[…] http://www.aviransplace.com/index.php/digg-this-wordpress-plugin/ […]
February 17th, 2006 at 12:06 am
And there are more digg tools here
http://pchere.blogspot.com/2005/09/complete-digg-tools-collection.html
February 22nd, 2006 at 6:12 am
[…] Digg This […]
February 27th, 2006 at 12:56 pm
[…] Investigate digg this: http://www.aviransplace.com/index.php/digg-this-wordpress-plugin/ Posted by Terry Horner Filed in Miscellaneous Add to del.icio.us […]
March 9th, 2006 at 12:59 pm
I installed the plugin, activated it, and tried putting in my index.php in several areas, and it still doesn’t come up. Do I need to be dugg once before it’ll show up or am I missing something. I’m using wordpress 2.01.
March 9th, 2006 at 3:31 pm
Anders, You will only see the digg this link after you have been dugg. It detects incoming links from digg and then links back to the digg post.
March 19th, 2006 at 10:27 pm
I use K2 for my wordpress theme. Where do I have to place the code?
March 28th, 2006 at 10:17 am
I am using JD-Wordpress plugin for Joomla and i cant seemed to get the digg to work.
March 29th, 2006 at 9:00 am
[…] Download Digg This […]
April 6th, 2006 at 7:30 am
[…] Download Digg This […]
April 14th, 2006 at 12:18 am
Please tell the exact name for the file were I have to place
I cannot find the template…
Thanks
April 14th, 2006 at 12:22 am
I have missed digg_this() function name in the previous post.
Please tell the exact name for the file were I have to place digg_this() function
Thanks
April 18th, 2006 at 4:32 am
[…] Digg This […]
May 2nd, 2006 at 11:50 am
Found this awesome site to post about scams that have affected you. I have learned a lot of what not to do online since reading some of the posts. I have added them to my favorites and they even offered me a free blog to post about my dealing with clickbooth.com who wont pay me…
May 4th, 2006 at 4:17 pm
[…] […]
May 7th, 2006 at 11:54 am
Hi, If you are in to blogging for money, you may like my blogging seo tools review. All essential SEO Blogging Tools are reviewed. Wether you like it or not, but all page 1 results on Google and Yahoo are filled with users of the software I have reviewed on my site. All Results shown. Regards, Albert A.Forrester
May 19th, 2006 at 3:41 pm
[…] Digg This Detects if one of your articles has been linked on digg.com and adds a link to the entry. This might not be as useful for blogs that are unlikely to ever be bookmarked there—but for me it’s a nice find. […]
May 27th, 2006 at 1:33 pm
So you’re a blogger? I’m a Blogaholic!
June 1st, 2006 at 7:01 am
Thank you for this excellent little plugin. I just made a post that was published on digg, and almost immediately after installing this plugin, the link worked like a charm. Good idea, thank you!
June 11th, 2006 at 1:59 am
Your website is a great resource of information
June 27th, 2006 at 10:46 am
Is this not wordpress 2.0 complaint? I installed the plugin, chmod’d it to just makes ure, added the php function call, and its not even showing up. I get nothing. Whats going on here?
June 27th, 2006 at 2:31 pm
You need to wait for someone to digg your post and enter your page from digg
July 2nd, 2006 at 7:29 am
Thanks for Work, good achievement
July 4th, 2006 at 10:03 am
Digg have made some changes and now you need to edit line 21 and remove
&& substr_count($ref, “_”) > 0
for it to work.
One potential problem is if the primary digg is from your profile or some other page the digg will reflect that page. I don’t know what impact that will have but I’ll be watching closely.
July 4th, 2006 at 9:20 pm
I attempted to add the DIGG THIS plugin to my site. For some reason it’s not appearing. I added the plugin to the folder, and I also added the tag to the loop, yet nothing has appeared on my site. Are there any FAQ’s or idiots guide… i clearly don’t get it! thanks for the help
July 12th, 2006 at 10:53 am
Note that the article “mis-spells” the text you should paste into your PHP files. It adds a space between the “
July 13th, 2006 at 11:34 pm
[…] After a short discussion with some folks at digg about how to include the JavaScript in a WordPress Blog, I decided to give this a go. This plugin is inspired by the existing “digg this” plugin written by Aviran Mordo. Below you can find both the plugin itself (as a .php file) and also a .txt file containing the source code. If you have any improvements you’d like to suggest please let me know. […]
July 19th, 2006 at 10:18 am
I’ve just downloaded and set up this plugin, which looks like it would be wonderful!
However It’s not doing anything. I’ve got a url/story that I posted on digg, and was dugg by another user. Still nothing shows up.
My index.php (the portion where this plugin is located) looks as follows:
” class=”post”>
Any suggestions? The plugin has also been activated through the wp-admin page.
cheers,
geek out.
July 19th, 2006 at 10:20 am
Argh… munged the index.php bit of that last post.
Essentially, I’ve got the php digg_this_button bit right after the if (have_posts) and while (have_posts) bit - the start of the loop. Is this correct?
arsgeek
July 19th, 2006 at 11:32 am
Yes, this is exactly the place where you should put it. Now all you need to do is wait for someone to enter your site from the post page, and the button will appear
July 20th, 2006 at 6:35 am
thanks. it work!
July 21st, 2006 at 3:11 pm
Hello!
I installed Wordpress on my server, and set up a site. It’s a relly nice piece of software. However, I am missing a piece of functionality, and
couldn’t find a suitable answer for it. Mayou you know a plugin I could use?I need to automatically inserts ads in my posts.And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc). Let’s say I would insert a tag in my post:
– ad here –
and the plugin would automatically replace it with some HTML code, when the post is displayed on my site.I really don’t need any fancy configuration options etc, just the basic replace functionality.
Do you know a plugin that can handle this?
July 24th, 2006 at 9:00 am
Ahh… so it appeared today. And it not only appeared on the post that was dugg, but on every other post in the blog as well. So it’s working a little too well
Any suggestions? I’m mucking about with different placement in the loop, but it seems that no matter where I put it, every single post reflects the same dig button of the one that was dugg.
arsgeek
July 24th, 2006 at 3:41 pm
Hi there. Great plugin, but I’m having a problem. It seems I have entered it in the loop where I want and it is displaying the lilnk just fine, but the problem is that the link is just linking back to the referrer page. Here is an excerpt of my code at where I am placing the link:
<div class=”cathead”>Post Meta :</div>
<div class=”cats”>
<a href=”<?php trackback_url(); ?>” title=”Trackback this post”>Trackback</a><br />
<a href=”<?php the_permalink(); ?>” title=”The Permalink”>Permalink</a><br />
<?php edit_post_link(’Edit’, ”, ”); ?><br />
<a href=”<?php digg_this(”", “Digg this story”, “”, “ping”, false); ?>” title=”Digg This Story”>Digg This Story</a>
I’m posting it with my other meta links, you can check it out by going here: http://www.automoblog.net. The links are on the left of each article. Could you please help out? Thanks
July 25th, 2006 at 8:30 am
The necessary plugin (:
It is established easily and perfectly works.
Thank u so much!
July 27th, 2006 at 3:51 pm
Anyone have any luck getting this plug-in to work for Internet Explorer? It seems to work properly in FF, Safari, Omniweb, Opera, Camino, hell even in AOL, but IE seems to choke on it.
July 27th, 2006 at 6:58 pm
nice plugin.
My question is - on most posts it seems to work fine. But on a few it seems to link to another Digg Story.
For example - check out this post and what story the digg actually diggs…. not anything on my page…. as I say - it works on some stories but on a few it does this.
July 28th, 2006 at 2:34 am
Just implemented it at http://www.iphotospace.com !! Great Plugin. Thanks
July 31st, 2006 at 2:25 pm
Thanks for this great Plugin! It works perfect at all of my blogs!
Thanks
August 2nd, 2006 at 11:43 am
I made a slight mod on this, adding an else clause to the main display. Basically if the story has not been dug it creates a url to submit a brand new dig for it and get the process started.
} else { // No digg yet exists so give them a link to digg it $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$id' LIMIT 1"); $str = "post_title) . “&url=” . urlencode(get_permalink($id)) . “‘>Digg it“; echo $str; }
Finess it how you wish for your next release!
August 3rd, 2006 at 6:42 pm
[…] http://www.aviransplace.com/index.php/digg-this-wordpress-plugin/trackback/ […]
August 8th, 2006 at 5:31 pm
I installed the script, and I know a few of my articles have been Dugg, but nothing is appearing. I placed the code inside the loop, and nada. Running Wordpress 2.0.4 and PHP 5 if it matters.
August 16th, 2006 at 5:51 am
thanks
August 21st, 2006 at 12:00 am
Katrina Scams…
In the field of computing, the term spyware refers to a broad category…
August 25th, 2006 at 2:06 pm
I have used your as well as and my post has been dugg, is there anything wrong. Please see code below.
” title=”Permalink”>
post_excerpt != “”)? the_excerpt() : the_content(); ?>
post_excerpt != “”) { ?>” class=”more”>Continue Reading
August 26th, 2006 at 6:05 am
All right, I have made sure my home page has three articles that have been posted to Digg. I have followed the instructions here about removing line 21 in your plug-in, and it is apparently placed in the proper location on my template, I presume. I even tried adding that string from Alex about creating a URL to submit a Digg, though I’m not sure I placed it in the right line (you’re not clear about this in your instructions).
So tell me why it still doesn’t work?
I prefer e-mail, to gene @ macnightowl.com if possible.
Peace,
Gene
August 26th, 2006 at 6:17 am
This is an example of unclear instructions:
“I made a slight mod on this, adding an else clause to the main display.”
And what constitutes the main display? What line number?
We are not all PHP experts here. We just want it to work.
Peace,
Gene
August 26th, 2006 at 10:17 am
VERY IMPORTANT: Since dugg stories are linked to a single post you also HAVE TO put the digg_this() function in your single.php template, otherwise it will not recognize incoming links
August 26th, 2006 at 10:57 am
Aviran, that’s been done, though I don’t see a change yet. I even tested a return click and no results so far.
I’ll keep you posted.
Peace,
Gene
August 26th, 2006 at 4:47 pm
As of now, despite several diggs to the stories, it isn’t working.
Please explain in clear, step-by-step English, what one needs to do next.
As far as I can tell, I have updated both templates precisely as instructed.
Peace,
Gene
August 26th, 2006 at 6:11 pm
Just FYI: The problem my Webmaster has with your plug-in and others offered for WordPress is that there is a total lack of proper instructional information on setups and use and dealing with problems.
As an experienced author of over 30 books designed to explain technical matters to real people, I can tell you that this is an ongoing problem.
My Webmaster, for example, who designed our WordPress site and several others, and has lots of experience and knows a little something about PHP says the same thing.
The instructions are simply not designed for an audience consisting of people who speak regular English.
I really want to use your plug-in. But you’ve got to provide better instructional materials, with specific step-by-steps.
For example, if I use the optional code you provide, it blows our templates out of the water. If they don’t go there, where do they go?
Peace,
Gene
August 28th, 2006 at 3:20 pm
I see, by the “sound” of silence, that nobody wants to answer
Peace,
Gene
September 3rd, 2006 at 10:06 am
I concur with Gene. Why can’t anyone put together a complete example showing the entire “single.php” and any other files on how to make this work. Single comments here and there does not help unless you are a PHP wiz. I thought the entire purpose of these blogs were to help us out, not to confuse us more. I really appreciate all the hard work putting this plugin together, but as of right now you guys have caused me nothing but headaches. I am waiting for someone to help me out. Thank you all.
September 7th, 2006 at 12:37 pm
Gene, my comment was never meant to explain anything to “real people.” This is avarin’s site, it was directed at him as a simple enhancement that he may want to include in future releases.
I wouldn’t mind giving you a hand, just email me your single.tpl and I can check it for any errors. There’s really not much to that aspect of it though so your problem may be unrelated to the template. Feel free to contact me via email, alex a/t makesitgood.net and I’ll see what I can do to lend a hand.
September 15th, 2006 at 1:06 am
Consider digging this: http://digg.com/offbeat_news/Flight_Centre_rips_off_its_customers
September 16th, 2006 at 3:40 pm
WordPress Plugin List…
Often, I come across other blogs/websites built using WordPress. On a few occasions, I’ve seen a really cool or unique feature on their site which I want to have on mine. More often than not, the plugin is something freely and publicly available…
September 20th, 2006 at 7:54 am
This is the step-by-step instruction that you will need to implement this plugin. Includes sample code and detail instructions on where to find the file to edit and where in the file you need to enter the code.
http://blog.patyuen.com/lessons/howto_install_diggthis_plugin/
September 20th, 2006 at 9:12 pm
This whole hack doesnt work correctly in IE. It works great in Firefox, But not in IE.
When you click the “Digg It” link on the Digg button under IE. It will take you to a “Page cannot be displayed” link with “Javascript:null()” in the address bar.
I have tested this on many other blogs (so its not just my install) and have asked a few friends to test as well. Everyone reports it as being broken.
September 21st, 2006 at 2:03 am
I just tested this with IE version 7.0.5450.4 Beta 3 and it works.
September 30th, 2006 at 6:56 pm
I have a problem with IE as well. “Page cannot be displayed?
October 3rd, 2006 at 8:32 pm
Just trying to understand the difference between this plugin and the plugin here: http://tech.cybernetnews.com/digg-button/.
Does this plugin make that other one redundant in the sense that if you post to your blog, then setup a digg article on it, your plugin will do the rest? Whereas with the other plugin it only works one way (if you yourself setup the digg article).
I hope I am making sense. I don’t want to install both plugins if in fact just one will do the job adequately.
Cheers,
- Alister
October 3rd, 2006 at 9:44 pm
This plugin works automatically. It automatically detects which posts are dugg and adds the digg button to them. The other one you have to add the digg button to each and every post manually.
Another thing that this plugin does and the other does not, is that it lets you chose between a text link and a digg vote button, and also this plugin sends you an email alert every time a post has been dugg.
October 4th, 2006 at 5:34 pm
I am getting an “Error Not Found” message where the Digg plug in should be. Can anyone assist?
October 6th, 2006 at 8:52 am
I’ve installed the plugin and placed the proper PHP tag in my single.php page, in the loop:
Even when my posts are submitted to Digg, the button doesn’t show up. I don’t think I’ve missed anything. Any ideas?
October 12th, 2006 at 12:39 pm
I added
to single.php file within the while loop. I don’t see any digg this or reddit this button. Can anyone help?
October 12th, 2006 at 12:40 pm
I think the comment removed the php code. I added the following lines in single.php.
” ”
” “
October 12th, 2006 at 12:42 pm
oh! man. I’m trying again. I removed the php reference. I added those 2 lines in single.php.
digg_this();
reddit_this();
October 12th, 2006 at 3:11 pm
You need to wait until users enter your post from digg in order for the plugin to recognize the dugg post
October 13th, 2006 at 10:32 am
Hey Aviran,
I’ve installed the plugin and it’s working … almost. Everything is cool except the “digg this” part of the iframe seems to have a javascript problem. You can check it out at http://www.davidgagne.net/?p=6179
Do you have any idea what the problem is?
Aside from that, though, AWESOME plugin!
October 13th, 2006 at 10:37 am
Won’t it show a digg it button under each post?
October 13th, 2006 at 3:08 pm
It will show the digg this button only on posts that have been dugg
October 13th, 2006 at 9:31 pm
Great plugin! Thank you very much.
The issue o0f the button not showing up until a post is dugg seems to be a chicken and egg issue.
Would it be possible to default to a “blank” (ie. 0 diggs / be the first to digg this) digg this button if there are currently 0 diggs?
Cheers, and thanks for the work!
smokey
October 14th, 2006 at 1:58 pm
I inputted this (sample below) in single.php, index.php, page.php and still does not show up
October 14th, 2006 at 1:58 pm
October 14th, 2006 at 1:59 pm
[code]
[/code]
October 15th, 2006 at 2:56 am
How to add a dynamic digg vote this button, show related posts and more using Wordpress…
Regular readers through the website might have noticed a few changes recently at the site. Recently, I added a couple additional Wordpress plugins to the site with some minor custom configuration and also integrated an AJAX-style Google search option o…
October 16th, 2006 at 12:20 pm
Same page. Some buttons work and some buttons do not work:
http://www.vasdekis.com
(ERROR: Not found)
Any ideas?
October 16th, 2006 at 8:03 pm
Thanks for this plugin. I am going to install it on my blog in the next couple of days!
October 17th, 2006 at 11:05 pm
I have a few templates in there that can be edited and I really don’t know which one I should put the code into. Or for that matter where the loop is
sorry for being a newbie
here is a list of the files ……
‘Cutline’ theme files
Stylesheet
404 Template
Archives
Archives
Comments
Footer
functions.php
Header
Main Index Template
navigation.php
Page Template
Search Results
searchform.php
Sidebar
Single Post
October 18th, 2006 at 9:41 am
You should put it in Single Post.
The loop:
if (have_posts()) :
while (have_posts()) :
…
// THIS IS THE LOOP - PUT THE CALL ANYWHERE HERE
…
endwhile;
endif;
October 19th, 2006 at 2:06 pm
Great plugin. I noticed one little problem that may have already been brought to your attention. I added a post of mine to Digg and clicked the link to get the Digg This button on my site. When I clicked the link, I clicked it from the Digg Upcoming page rather than the actual Digg Post page. This caused the referrer to be the upcoming page which is invalid for a Digg This button. I had to edit the URL in my DB to point to the specific Digg URL, not the upcoming URL.
October 19th, 2006 at 3:22 pm
Bug fixed,
thank you Mark
October 20th, 2006 at 11:21 am
Hey Thanks for making this!
October 23rd, 2006 at 2:42 pm
This is a fantastic plugin that integrates seemlessly to my blog! Karma added!
October 25th, 2006 at 8:52 am
For everyone struggling with the “digg this” button not showing up, this plugin is EXTREMELY PARTICULAR about what page on digg the link comes from.
You MUST find your digg story by going to the category you posted it in and clicking on it among the live digg stories. Searching for your story or finding it among your profile stories doesn’t seem to work. Once you do that (and if you follow the instructions, like the detailed ones here), the digg this button will appear.
October 25th, 2006 at 2:14 pm
Great plugin but I am having trouble witha few posts displaying the message “ERROR Not Found” This appears to be a problem with the plugin not identifying the incoming link from Digg. This is the URL that is affected:
http://electrogeek.com/blog/2006/10/25/is-microsoft-pushing-customers-to-linux/
If you could have a look that would be great! Regards, ElectroGeek
October 25th, 2006 at 10:33 pm
I took the advice of Mark from comment 91. (http://www.allthingsmarked.com/) and edited my DB as well to correct the issue. I guess the plugin detected the wrong URL from Digg which caused the ERROR message. I did install the updated plugin code today so we’ll see if the issue repeats itself. At least now I know how to resolve the issue if it happens again. Thanks Mark.
October 25th, 2006 at 10:44 pm
The latest version (1.0.1) should fix this problem
October 26th, 2006 at 10:56 pm
What if you don’t have a single.php file?
October 27th, 2006 at 11:30 am
I have installed your plugin, unfortunately it only shows the “digg button” whenever a story from my website is submitted to Digg, I am looking for something that would allow you to submit the story to Digg as well. I wrote simple snippet of code that will allow you to do just that. Check this out http://www.volodymyrzablotskyy.com/wordpress-digg/
What do you think?
October 27th, 2006 at 4:10 pm
@ Dan M - Just copy the default single.php to your template folder and modify it.
October 30th, 2006 at 3:18 pm
I am using the TRIPLEK2 theme and would like to know where to place these in the loop. I am a bit confused from the reads as to where they get placed.
November 2nd, 2006 at 1:09 pm
I have added the template code to my site for every single post. The problem is that someone recently dugg an entire category of my blog. Now every post in that category has the digg link on it. Check this out.. http://www.birdseyetourist.com/?cat=35
Any ideas?
Thank you.
November 2nd, 2006 at 4:33 pm
Anyone able to get this to work in IE? When people click on the “Digg It” link in IE, nothing happens. The functionality works perfect when viewed in Firefox.
November 5th, 2006 at 3:08 am
Hi
I love hte idea for the plugin.. but its not working for me.
I am pretty familiar with where to palce things inside the loop. I have activated the plugin, and tried placing it in multiple places inside the loop on the main index and single post page.. and even when people digg my post, nothing shows up.
can you give me a hand pleasE?
November 6th, 2006 at 8:44 am
Fantastic, easy-to-install and -use plugin. Thank you very much!
November 6th, 2006 at 10:09 am
Beginner’s Guide to Digg…
If you have ever felt like you had to dig around the Internet for good content, you might want to look at something called Digg ([digg.com](http://www.digg.com)). Digg is a site that will help you avoid the process of digging and instead, get exactly w…
November 8th, 2006 at 10:36 pm
I’m having a little trouble adding the code to the single.php file. Here is the complete code in the file…
Where would I add the code to display a Digg button?
Thanks!
David
November 12th, 2006 at 10:38 pm
Great plugin! I found this via the 43folders website, which is using this. I’ve added the code to index.php “in the loop”. My question is, how do I style the button so that content “word-wraps” around it? I am not completely familiar with CSS, so any ideas would be welcome. In particular, how the style will know whether it is a diggthis or a diggbutton. I can them on the stylesheet, but how?
November 12th, 2006 at 11:01 pm
Well fist of all you need to put it in the single.php for it to work properly.
As for style if you are using the digg_this function you can use the $before and $after parameters to put an enclosing DIV tag, which you then use your CSS to style anyway you want.
November 13th, 2006 at 7:53 am
Hi,
I am sory - it is not workling with Semiologic 4.1. I Tryed everything, but without anything. There is no Button
Any help for me?
http://www.simon-huck.de
greeting,
Simon
November 16th, 2006 at 12:45 am
I must be an idiot! I’ve inserted the code in the If Loop on the single.php page as this and that SHOULD work according to the documentation but I can’t get it to work. This works but I want the button. Right now I get an ERROR Not Found.
November 17th, 2006 at 2:26 pm
thanks alot working fine.
regards,
http://www.firefoxdir.com
November 17th, 2006 at 10:08 pm
What if you do not have a single.php file. Where do you put it in the code?
November 18th, 2006 at 10:05 am
You always have one. just copy the default single.php to your theme folder and make the changes. If you don’t have single.php in your theme folder then Wordpress just uses the default one
November 25th, 2006 at 6:37 pm
I can’t seem to have it installed also. Have checked all the info available…I have put code on single.php, page.php and index.php (on the loop) I am using this template http://www.i-jeriko.de/2006/05/07/wordpress-theme-wpjeriko01/
Thanks for any help,
k
November 27th, 2006 at 6:51 pm
Hey thanks for the updated and infor from your posts.
laura
Don Lapre Lover
http://www.lauraglydaband.com
laura@lauraglydaband.com
November 30th, 2006 at 2:17 pm
Is it possible to have it site within the content text.
As if it’s an image aligned left?
November 30th, 2006 at 2:38 pm
How can I get it to look like this:
http://www.joystiq.com/2006/11/29/no-next-gen-gaming-for-kim-jong-il/
November 30th, 2006 at 2:47 pm
@Mickey
Yes, all you need to do is wrap it in a DIV tag and use CSS to position it anywhere you want
November 30th, 2006 at 3:09 pm
Thanks Aviran, but I’m still having trouble…
Here it is on my page:
http://wiinintendo.net/2006/11/22/the-legend-of-zelda-full-retrospective-dvd/
My template for content looks like this:
If I have the css giving it a 20px left margin, but it inserts itself under the content OR if I move the “digg_this_button” above “the_content” it will display above all text and images.
Any suggestions, thanks so much!
December 4th, 2006 at 10:15 am
Sorry mate, I’m no CSS expert, I’ve seen it done, but I can’t recall where and how/
December 4th, 2006 at 3:30 pm
your plugin works fine !! Thanks alot for this !!
December 5th, 2006 at 11:29 pm
I’m having a small problem.
A long time ago, I submitted my root site: wiinintendo.net to digg, now I think because of that for some reason every article that I HAVE NOT submitted to Digg gets a Digg This button anyway with a link to that original Digg submission, very weird…
You can see it here
http://www.wiinintendo.net
All of the Diggs that are at 14 are for the same Digg post….????
Any work around/advice?
THANKS!
December 6th, 2006 at 10:04 am
try to delete the DiggURL extra field from your wordpress database
December 6th, 2006 at 4:57 pm
Hi Extraordinary content! Do you think my site wld be as awesome as yours. I give you my power elite wishes for your future endeavors.
December 6th, 2006 at 5:56 pm
Thanks Aviran,
but do you mean via PHPmyAdmin? Or some WP PHP file?
Thanks again, you’ve been most helpful.
December 7th, 2006 at 11:04 am
@Mickey
You can do it with PHPmyAdmin. And also I suggest that you remove the digg_this() from your main page, leave it only on single.php
December 7th, 2006 at 11:51 am
gotcha. the only problem is that the theme I’m using doesn’t have a single.php it has it all in the index.php….
Am I out of luck?
December 7th, 2006 at 3:04 pm
No you are not out of luck.
If the theme you are using does not have single.php, WP will use the default one. So all you need to do is just copy the default single.php to your theme folder and make the changes there
December 13th, 2006 at 12:19 am
Thanks a lot for the plugin!
It seems to work pretty well so far, so again - thanks!
December 13th, 2006 at 3:55 pm
Nice idea with this site its better than most of the rubbish I come across.
December 13th, 2006 at 6:45 pm
[…]I have not tried out this widget yet, but given that I plan on monetizing my blog I will try it soon.
Digg This
Already know about this widget - have not enabled it yet.[…]
December 19th, 2006 at 11:02 am
i can’t wait to install and run this, you made my life easyer
December 20th, 2006 at 5:53 pm
Can you suggest other bloggers that would be a good source of info on this?
LM
December 21st, 2006 at 11:40 pm
thanks for this code. I’ve been looking all over for a good Digg WP plug-in, and this may be exactly that!
December 25th, 2006 at 2:20 am
Shine A Light Financial companies serves individual customers worldwide and provides them with quality financial programs, working with the largest financial companies in the U.S. These companies offer a variety of products and services, including Auto Financing, Car Insurance, Credit Cards, Credit Repair, and more. Learn more about Shine A Light and its various businesses that can serve your needs.
December 29th, 2006 at 4:24 am
it work pretty well , i hope you can make some similar script for yahoo or msn, blogline , will be very greet that will help webmaster can public their articles to wordwide and this can be greed seo tool - ilove it
and install in http://www.xaluan.com include my SEO web article tips at http://www.veryzoo.com go for it !! chear
January 2nd, 2007 at 6:52 am
Great Plugin. Installed successfully at http://health.relatednews.info/
Took some time for me to get the text wrap around the button, though.
January 2nd, 2007 at 7:41 am
OMG nice plugin Thanks ALot
regards,
http://www.firefoxdir.com
January 3rd, 2007 at 1:22 pm
How do you get the text to wrap around the digg button? Example harry potter news
January 6th, 2007 at 10:43 pm
Works great! Thanks for the wonderful plugin. (example: http://babygotmac.com/a/25 )
January 16th, 2007 at 8:50 am
Great Plugin,
Just got mine working now!
See the Digg working!
Only took a little bit of fiddling, but was ok! Works great with the Notable plugin aswell!
January 19th, 2007 at 3:07 am
Has anyone gotten this to work on page.php?
January 19th, 2007 at 9:47 am
Sounds great, I am going to try it on my blogs and let you know how it goes.
January 19th, 2007 at 4:50 pm
The dug button is not hsowing up. It’s giving an error.
January 19th, 2007 at 6:50 pm
oh it does work on page.php as long as you click the right link on digg.. oops!
January 21st, 2007 at 7:22 am
I can’t get this to work on my site. I’m using the cutline theme and I’ve tried adding the code into a dozen different places and it won’t come up. Below is some code from the page.
· #comments”>
Read the rest of this entry »’); ?>
January 21st, 2007 at 7:23 am
ok so trying to add the code didn’t work. All I know is that it’s in the loop on the single and index pages inside my template.
January 21st, 2007 at 3:25 pm
I have a story that was dugg prior to installing the Digg This WP plugin. Is there a way I can get the Digg link to display in my blog post even though the post was already dugg in the past?
January 21st, 2007 at 3:46 pm
@matt
Yes you can. Just edit your post, goto the Custom Fields Section. Create a CustomField called DiggUrl and in the value put the url of your post on digg (http://www.digg.com/…)
January 21st, 2007 at 6:05 pm
@Aviran - Perfect, thank you so much!
January 26th, 2007 at 5:05 pm
I can’t get this to work, nor do I have a single.php in my template. When I put in the tag nothing comes up.
January 27th, 2007 at 3:49 am
great plugin ! worked like a charm for me on a couple of sites
January 28th, 2007 at 5:40 am
It works if I use the text version but shows “Error Not found” when I use the button version. How can I correct this?
January 28th, 2007 at 9:27 am
The Error Not Found is coming from Digg. The plugin has no control over that.
January 30th, 2007 at 5:05 pm
Its not working when stories are submitted to the video category.
February 6th, 2007 at 12:58 pm
Cool beans
http://www.ursofunny.com
February 6th, 2007 at 7:20 pm
does this work with wordpress 2.1?
February 7th, 2007 at 12:23 pm
Not tested on 2.1, but I do not expect any problems with 2.1, since no change in the architecture was made
February 7th, 2007 at 1:50 pm
Ok, I’m upgrading tonight, I’ll report my findings! thanks!
February 8th, 2007 at 2:43 am
As you expected, don’t see any issues thus far… Thanks again for the plugin.
February 8th, 2007 at 10:15 pm
If we put it in the single.php doesnt that mean the digg button will never show up on the index page and instead only on the full post page?
February 9th, 2007 at 1:16 am
What I mean is how does this site show the digg button on both the index and single page? http://www.orbitcast.com/archives/digg-for-radio.html
February 9th, 2007 at 10:01 am
If you want the button to show up in your index page, then you need to add the code also in the index page.
February 14th, 2007 at 10:26 pm
The plugin has been working fine for months now and it displays past diggs without a problem, but it doesn’t seem to be automatically recognizing new diggs. Any ideas on what could be wrong?
February 15th, 2007 at 10:34 am
Did you install any new plugins? Sometime other plugins interfere with the normal operation of Digg this. One known plugin that causes problems is the WPCache, which loads cached pages and because of that the digg this plugin is not executed if a page is cached
February 15th, 2007 at 9:45 pm
I agree. This helped me a great deal and I recommend it to anyone.
February 17th, 2007 at 9:47 am
I can not seem to get this to work. Everything looks like it is in the right place.
February 19th, 2007 at 12:56 am
Aviran: Nope, no new plugins. I actually uninstalled WPCache recently.
Is there a way to force it to recognize? Like pass a variable in the URL to the blog post to make it show?
February 19th, 2007 at 12:06 pm
You might have a problem with your host server, which does not allow the plugin to validate the referrer. You can however manually add the digg button to posts by adding a Custom Field with the Key DiggUrl and the value of the url on digg where your post is. This will “make” the button to think that is was validated
February 19th, 2007 at 3:31 pm
I got it to work, by adding the custom field, but it is at the top. I would like it to push to the right on the very top of my post, in the wording, is there a way to do this?
February 19th, 2007 at 4:53 pm
You can with a stylesheet (CSS) or use the before and after parameters and add
in the after parameter
February 19th, 2007 at 6:38 pm
I too have the problem where my old dugg posts have the button showing up just fine, but new posts are not recognized even after being dugg multiple times.
I was able to force one of them to recognize the diggs and create the button by adding the custom-field as you described above. I wanted to let you know I’m seeing the same problem as the other user however in case there is something that needs to be modified in the plugin. Obviously it’s not practical to work to manually add the custom field for every post what gets dugg.
I’m not sure precisely when it stopped working, but I would imaging that the latest Digg update and the WP 2.1 release have both happened since the last time I noticed it working.
Thanks for the great plugin!!
Cheers
February 19th, 2007 at 7:32 pm
Can someone contact me and help me with this?
March 3rd, 2007 at 7:19 am
what help do you need?
March 3rd, 2007 at 7:20 am
just found this one. Great plugin. I am going to try it out.
March 3rd, 2007 at 7:26 am
nice plugin!
March 3rd, 2007 at 7:48 am
great info. I am going to install it.
March 9th, 2007 at 8:16 am
very Nice Plugin which i was looking for
March 14th, 2007 at 2:38 pm
Guys,
I download and activated the plugin, and modified the index.php to include the digg_this() call.
I don’t see any file named single.php file in my template.
Can you provide some insight what needs to be done in order to make the plugin work?
Thanks in advance,
Gili
March 14th, 2007 at 4:12 pm
Just copy the default single.php to your template folder and modify it.
March 14th, 2007 at 10:16 pm
I’m having trouble getting the digg this button to display on my blog. I’ve put it in the main index template as well as the single.php and it’s still not showing despite have the entry dugg and re-linked back.
This is the entry in question:
http://btr.michaelkwan.com/2007/03/14/wheres-the-google-phone.aspx
And here is its digg:
http://digg.com/gadgets/Where_s_the_Google_Phone
March 14th, 2007 at 10:42 pm
You might have other plugins that prevent this plugin from working correctly, such as WP-Cache
April 2nd, 2007 at 1:46 am
great plugin , try on my new blog!!!!!
April 5th, 2007 at 10:13 am
The digg buttons are no longer linking on my site. In other words its just a button but no link. While old ones are working fine.
Any Ideas?
April 5th, 2007 at 10:36 am
I figured it out - Just needed some CSS tweaking as it was appearing behin another div
April 13th, 2007 at 11:42 am
Helloo..
For some reasone the download won’t start
How come I get to see a page from an url that ends in .zip ?
oh man damn this. I really want to have this plugin
April 13th, 2007 at 3:15 pm
Oops, sorry about that. I just moved to a new server so there are some configuration issues. It should work now.
Thanks for letting me know
April 15th, 2007 at 7:04 pm
Thanks
http://www.gencler.info
http://www.kraloyunstar.org
April 18th, 2007 at 12:09 pm
i gave you a digg
April 19th, 2007 at 2:12 am
This plugin is much appreciated! Thanks
April 19th, 2007 at 8:00 am
Thanks for the Plugin! very great.
April 22nd, 2007 at 10:02 am
hi there! thanks a lot for your great plugin which appears on my “must-have” list.
best,
michael
April 24th, 2007 at 12:07 pm
Dude nothing shows up for me… do I have to set a link to digg in my meta tags (it seems like it from the source code of the plugin)?
April 24th, 2007 at 1:34 pm
No you do not have to set up anything (except to put the digg_this() function in your template). You need to wait until your post will be dugg and people start coming to your post via digg, only then you’ll see the digg button.
April 29th, 2007 at 7:12 pm
thanks for the plugin! any cool peeps out there that can come over and digg-test our site? url: http://www.insanelyiphone.com we are wanting to see if aviran’s plug work on our page.
thanks/ gracias/ peace, joshua
May 1st, 2007 at 5:10 am
downloaded your plugin …
tried to activate it …
but cant find it inside wordpress …
i’ll try a bit harder and if it doesnt work will let you know …
its a great plugin for those who has it working …
May 17th, 2007 at 1:14 am
This plugin doesn’t seem to be working for me. Does anybody know what I should do for this template?
http://www.themeporter.com/2006/10/13/online-portfolio-wordpress-theme/
I activated the plugin and pasted into the main template. What did I miss?
My template doesn’t have single.php. What do I do?
May 17th, 2007 at 7:37 am
you need to create one or use the default single.php. read the previous comments or this guide
May 17th, 2007 at 12:29 pm
Hi Aviran,
You plug-in looks great! I don’t actually want a digg box on my posts, but I would like to be aware of when someone submits any of my posts to digg. is there a way to just have the site’s admin notified via email when an incoming digg link is detected?
Thanks in advance,
Dave3
May 17th, 2007 at 3:51 pm
Dave3 the answer is yes and no. The plugin always display something, be it the dig box or just text. Having said that you can display a space as your digg text this way it will not show on your page. So you might use something like this:
< ?php digg_this(”<div class=’digg’>”, “ ”, “</div>”); ?>
Note the second argument is space. You can also hide the space if you use a stylesheet to hide the “digg” class
May 22nd, 2007 at 4:48 pm
OK. I have wordpress and I am using the K2 theme. It has the loop file. I added the to both the loop and the single.php file. I have two stories that have been posted to digg and I have visited my blog from digg to try get the button to show up…. nothing. anyone get this working with K2? any suggestions?
May 23rd, 2007 at 3:27 am
thanx
May 23rd, 2007 at 3:28 am
thanx
http://www.genc-tr.com
May 27th, 2007 at 11:48 pm
Hi ,
I have recently installed Digg This for my blog.
Just wondering anyone know how to style it?
I want the icon to be on the left where the paragraph begins with text wrapping around it.
How do I style this?
Can anyone show me their code?
Thanks,
May 28th, 2007 at 5:21 am
HI,
One more question.
Any way that I can add nofollow to the plugin?
How?
May 28th, 2007 at 8:12 am
<div class=”digg”>< ?php digg_this_button(); ?></div>
just wrap the function in a div tag and use a css to style it.
May 29th, 2007 at 3:04 am
well, doesn’t seem to be working
see here:
http://www.ssblogging.com/bidvertiser-%e2%80%93-a-new-way-to-get-auction-traffic
Maybe need to use parameter?
How?
Thanks, Aviran .
May 29th, 2007 at 3:11 am
it shows
as a text on the page.
May 31st, 2007 at 3:47 am
Any way I can nofollow this digg button, Aviran?
May 31st, 2007 at 7:45 am
not unless you change the plugin’s code
June 21st, 2007 at 2:24 am
Cool man i digg for you
June 22nd, 2007 at 5:59 pm
Thanks for the great plugin but its causing xhtml validation to fail.
June 27th, 2007 at 11:15 pm
Can’t someone, after all this time, PLEASE just post the EXACT code, complete with the WHOLE loop? I have tried putting everything I can think of in every location I can think of in both my single.php and my main index file and it won’t work! Assume I am 5 years old and I don’t even know what PHP IS, please, and tell me how and where to put this?
I have put into the “loop” in every conceivable location in the single.php and main index files and it just does not work. I feel like a complete moron, but I’m not! I can handle graphics, HTML, and even 3D rendering just fine, but the instruction here were meant for programmers, not bloggers!