About plugins

Welcome to the plugin directory. This site is part of the b2evolution project, a feature-rich, open source blog engine. The plugin directory exists to catalogue the plugins and hacks that have been created to extend b2evolution.

Featured plugin

Top rated

  1. Star Rating (3.6) 698 votes
  2. Skin Switcher (3.3) 202 votes
  3. Captcha Image (3.3) 437 votes
  4. YouTube Plugin (3.3) 293 votes
  5. Democracy Poll (3.3) 232 votes

Categories


Search


Subscribe

Stay up to date with new additions to the plugin directory by subscribing to one of the following RSS feeds.

AstonishMe Digg Plugin

  • Currently 3.21/5
  • 1
  • 2
  • 3
  • 4
  • 5
  • i

Name: AstonishMe Digg Plugin
Author: Danny Ferguson and AstonishMe
Description: Digg.com is a social bookmarking and news site. Users submit stories, then vote on which stories make it to the front page. With this plugin you can add Digg buttons to your posts by just checking a box in the Write tab. Or change one setting and instantly add the button to all of your posts. You and your readers can click the Digg button to add your post to Digg. Once the post has been submitted, the button will show how many Diggs the story has.

Works with b2evolution 1.8 and higher (including 2.x).

Permalink February 12, 2007 • Categories: Skin feature, Plugin, 1.8+, 1.9, 1.10, 2.x8 comments

Comments:

Comment from: Bill O [Visitor] Email · http://www.everybodysweather.com
I'm resurrecting a blog and was upgrading the b2evo and stumbled across this plugin. Love It!!!

Only wish the button placement was a little more controllable, but it has a lot to do with the iframe.
PermalinkPermalink 03/10/07 @ 09:28
Comment from: Robbo [Visitor] Email · http://www.comics2film.com/b
This plugin is great, but I had to make an alteration to it because it would break occasionally.

Around line 121 are the following:
if ($this->Settings->get('suggest_title')) $button .= "digg_title = '$title';\n";
if ($this->Settings->get('suggest_desc')) $button .= "digg_bodytext = '$content';\n";


I changed it to:
if ($this->Settings->get('suggest_title')) $button .= "digg_title = '" . addslashes(htmlentities($title)) . "';\n";
if ($this->Settings->get('suggest_desc')) $button .= "digg_bodytext = '" . addslashes(htmlentities($content)) . "';\n";


Without the "addslashes" call, any titles or blog posts with a single quote (') character were messing up the javascript that that the plugin generates on the page...
PermalinkPermalink 03/10/07 @ 16:34
Comment from: pfarrell [Visitor] Email · http://patf.net/blogs
I have a fix for the following error:
Fatal error: Call to a member function on a non-object in ${b2evo_home}/plugins/am_digg_plugin/_am_digg.plugin.php on line 112


I am not a great php hacker, but I placed a check around the method details that will have it ignore rendering the digg plugin when $Item is not set

function DiggButton( & $params )
{
  global $Item;
+ if($Item) {
    if(!isset($params['bgcolor'])) $params['bgcolor'] = '#FFFFFF';
    if(!isset($params['button'])) $params['button'] = $this->Settings->get('button');

...

  $button .= "</script>
  <script src='http://digg.com/tools/diggthis.js' type='text/javascript'></scr
ipt>";
  return $button;
+ }
}
}

PermalinkPermalink 03/14/07 @ 09:05
Comment from: Bujar Kocana [Visitor] Email · http://www.libujar.wordpress.com/
I cannot plugin
PermalinkPermalink 03/16/07 @ 13:04
Comment from: pfarrell [Visitor] Email · http://patf.net/blogs
@Bujar Kocana: Are you using b2evolution? Your site looks to use wordpress (a different blog system than b2evolution). If you are using b2evolution, what version are you using or give details on the error you encountered. Actually, I'm not even sure this is the appropriate venue for tech support, but who cares?
PermalinkPermalink 03/17/07 @ 00:39
Comment from: Nicole [Visitor] Email · http://nicoleb.org/b2/
Installation has worked fine.
Haven't tested it yet though.
But thanks for it!

Now, is it possible to make that button smaller somehow?
PermalinkPermalink 01/21/08 @ 12:10
Comment from: Nicole [Visitor] Email · http://nicoleb.org/b2/
OK it works great for me, got my first dig, whoot ;)

Found the smaller button too.


Now, can you do the whole thing for Stumbleupon as well?

:P
PermalinkPermalink 01/22/08 @ 06:10
Comment from: Zante [Visitor] Email · http://www.virtualautonomy.com
Why does this plugin sometimes incorrectly relate to a post?

http://zante.myzen.co.uk/blog/blog1.php/2008/07/17/education-in-second-life

In the above link, the digg button references another one of my posts, the one below...

http://zante.myzen.co.uk/blog/blog1.php/2008/07/18/experimentation-unity-3d

More than one of my digg buttons is incorrectly being referred to the above post...
PermalinkPermalink 09/02/09 @ 17:43

Leave a comment:

Note: Don't request support by leaving a comment here. Follow the link above to get to the author's page or forum post about the plugin. Use comments for general feedback and ratings so other users can know if this is a good plugin.

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))