Hey Sam,
I found a few things for you to update when you release the socialshare plugin. I was doing some markup evaluations and found a few errors.
First the links you store in the db for the social networks. You should be using the html entity fo & in your urls like so:
Text Formatted Code
http://www.google.com/bookmarks/mark?op=edit&bkmk=<SHAREURL>&title=<SHARETITLE>&annotation=<SHARETEXT>
instead of
Text Formatted Code
http://www.google.com/bookmarks/mark?op=edit&bkmk=<SHAREURL>&title=<SHARETITLE>&annotation=<SHARETEXT>
The second item deals with when you add the html for the socialshare. instead of having:
Text Formatted Code
$html = '<link rel="stylesheet" href="'.$_CONF['site_url'].'/socialshare/sociable.css" type="text/css" media="screen" charset="utf-8">';
you should use Geeklogs API and create the function plugin_getheadercode_socialshare so that the link automatically gets added to the pages header like so:
Text Formatted Code
function plugin_getheadercode_socialshare()
{
global $_CONF;
$html = '<link rel="stylesheet" href="'.$_CONF['site_url'].'/socialshare/sociable.css" type="text/css" media="screen" charset="utf-8">';
return $html;
}
That's it :-)
Thanks
Tom
One of the Geeklog Core Developers.