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.
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).
if ($this->Settings->get('suggest_title')) $button .= "digg_title = '$title';\n";
if ($this->Settings->get('suggest_desc')) $button .= "digg_bodytext = '$content';\n";
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";
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
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;
+ }
}
}
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.