• 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 32×32px 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. :)

» You can leave a comment, or trackback from your own site.

8 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 [...]

Leave a Comment