b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « Quick Upload
  • Table of Contents Tag plugin »

AstonishMe Digg Plugin

Categories: 1.8+, 1.9, 1.10, 2.x & above, Skin feature, Downloadable Plugin
Warning: This plugin or hack has not been updated by its developer for a long time. It could imply partial or total lack of compatibility with the latest versions of b2evolution as well as potential security issues!

This feature is not supported anymore by Digg.com.

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).

AuthorDanny Ferguson
Last tested in version
Official page: http://b2evo.astonishme.co.uk/astonishme_digg_plugin
Tags: download file availableoutdated

8 comments

Comment from: Bill O Visitor

Bill O

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.

2007-03-10 @ 09:28

Comment from: Robbo Visitor

Robbo

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…

2007-03-10 @ 16:34

Comment from: pfarrell Visitor

pfarrell

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;
+ }
}
}

2007-03-14 @ 09:05

Comment from: Bujar Kocana Visitor

Bujar Kocana

I cannot plugin

2007-03-16 @ 13:04

Comment from: pfarrell Visitor

pfarrell

@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?

2007-03-17 @ 00:39

Comment from: Nicole Visitor

Nicole

Installation has worked fine.
Haven’t tested it yet though.
But thanks for it!

Now, is it possible to make that button smaller somehow?

2008-01-21 @ 12:10

Comment from: Nicole Visitor

Nicole

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

2008-01-22 @ 06:10

Comment from: Zante Visitor

Zante

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…

2009-09-02 @ 17:43


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque