• 22
  • Jan


Digg Count

Digg That is an improved, more secure version of Digg This. It fixes a number of security holes and bugs, while adding additional functionality and stability.

If you’d like to first read a little background information on Digg That, please check out this post: Digg This Blog Security Vulnerabilities Found.

First of all, download the plugin source code here and place it in your wp-content/plugins/ directory. Then go to your control panel and activate it. Be sure if you’re running the unpatched “Digg This”, you deactivate that plugin completely. This version is an upgraded replacement.

Then modify your template files to add this line:
<?php digg_that(); ?>
on the index.php page right before the <?php endwhile; ?> line, and on the single.php page right before the <p class=”meta”> line.

Here are some additional options you can use with that hook

digg_that($begin, $end, $show_post2digg, $support);

The digg_that() function has four optional parameters:

$begin – Any HTML content to place before the Digg button, such as a div opening tag.
$end – Any HTML content to place after the Digg button, such as the </div> tag that $begin started.
$show_post2digg – A boolean option for showing a 32x32px Submit to Digg icon and link when a post isn’t dugg already. Notice it on my blog.
$support – A boolean option for showing a link back to Digg That’s homepage under your Digg button. It doesn’t show on undugg posts, but only the few ones that have a Digg article about them.

So for example, if you wanted to wrap your button in a CSS-enhanced DIV to only show on posts that are already dugg, but not show the little gray man if it’s not dugg (for example, if you have your own social bookmarking icons already on your site), it’d look like this:

<?php digg_that(“<div class=’diggblock’>”,”</div>”,false); ?>

And if you missed the link earlier to download the plugin source code, it’s here. :)

» Both comments and pings are currently closed.

16 Comments

  1. Harry Maugans » Digg This - Blog Security Vulnerabilities Found Says:

    [...] Digg That [...]

  2. Dig This Button Security Hole at Baron VC Says:

    [...] Harry Maugans » Digg That Filed under: wordpress   |   [...]

  3. Wisob.org » Blog Archive » Popular WordPress Plugin “Digg This” - Blog Security Vulnerabilities Found Says:

    [...] The upgrade/patched version is here: http://www.harrymaugans.com/digg-that/ [...]

  4. Gary Reid » Blog Archive » Wordpress Plugins I Use Says:

    [...] Digg That Secure version of Aviran Mordo’s popular “Digg This” plugin (aviransplace.com). [...]

  5. WP Plugins DB » Blog Archive » Digg That Says:

    [...] Visit [...]

  6. 365questions.org » Blog Archive » Need the Digg button in your Wordpress blog? Says:

    [...] had worked for me until now : not “Digg This“, nor “Digg That“, nor The Digg for WP plug-in, nor even the official Digg [...]

  7. Top 21 Wordpress Plugins You Can't Blog Without - Internet Marketing Sucks! Says:

    [...] This (and That) It puts “Digg this” links on each post, and displays a real “Digg this” [...]

  8. Digg That | わーどぷれすっ! Says:

    [...] Digg That [...]

  9. Kaname Says:

    I can’t seem to download your plugin. Is the link broken or something?

  10. sohbet Says:

    thanks yOU

  11. gEKKOg Says:

    [...] This (and That) It puts “Digg this” links on each post, and displays a real “Digg this” [...]

  12. gEKKOg Says:

    I agree with all of them, except #6. Having one master login means a hacker only needs to steal one password to completely own your life.

  13. gEKKOg Says:

    you may think its somthing normal .. i meen. at first i thought it was ok.. but once you inbox is full of 50 emails just saying that i have been tagged, even 5 times by the same person T JUST BUGGS THE HELL OUTA YA

  14. Dinnerware Says:

    Can’t retrieve the file, but there is so much on the plate with digg, people are always hungry for small plugins like this that make life easier. Great food for though to see how small apps can optimize things.

  15. chat sitesi Says:

    Nerdly (or anyone else with the solution), could you please share with us how you accomplished this? This is exactly what I am looking to do with one of my current sites.
    Thanks!

  16. sex shop Says:

    Thank you so much! I checked out the other two tutorials you’ve put up linked from digg and found them helpful, but this sealed it for me. Your site is now in my daily routine of places to check! Keep up the good work.