8 comments
Comment from: Bill O Visitor
Comment from: Robbo Visitor
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…
Comment from: pfarrell Visitor
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;
+ }
}
}
Comment from: Bujar Kocana Visitor
I cannot plugin
Comment from: pfarrell Visitor
@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?
Comment from: Nicole Visitor
Installation has worked fine.
Haven’t tested it yet though.
But thanks for it!
Now, is it possible to make that button smaller somehow?
Comment from: Nicole Visitor
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
Comment from: Zante Visitor
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…
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.