# HG changeset patch # User Alessio Caiazza # Date 1243699133 0 # Node ID 6536221ffa83ad97c6023a45feb414a4ce49ef46 # Parent 826c273fe3fe77e71ad187d0d8dc4b4bbbeb55fd release 1.0.2 * * * NEW: hyves.nl support * * * MINOR: added title tag to images diff -r 826c273fe3fe77e71ad187d0d8dc4b4bbbeb55fd -r 6536221ffa83ad97c6023a45feb414a4ce49ef46 aboutme.php --- a/aboutme.php Sat May 30 15:58:34 2009 +0000 +++ b/aboutme.php Sat May 30 15:58:53 2009 +0000 @@ -4,7 +4,7 @@ Plugin URI: http://abisso.org/index.php/projects/about-me/ Description: About Me is a sidebar widget that displays icon links to your profile pages on other social networking sites. Forked from Social Links Author: Alessio Caiazza -Version: 1.0.1 +Version: 1.0.2 Author URI: http://alessiocaiazza.info /* Social Links Copyright 2008 Kareem Sultan (email : kareemsultan@gmail.com) */ @@ -29,10 +29,10 @@ */ //call install function upon activation - register_activation_hook(__FILE__,'social_links_install'); - +register_activation_hook(__FILE__,'social_links_install'); + //TO DO use these definitions instead -define('SOCIAL_LINKS_VERSION', '1.0.1'); +define('SOCIAL_LINKS_VERSION', '1.0.2'); define('SOCIAL_LINKS_DB_VERSION', '1.1'); define('KEY_SITE_ID',0); @@ -41,42 +41,43 @@ define('KEY_INSTRUCTION',3); define('KEY_DISPLAY_NAME',4); - //$sl_db_version = "1.0"; - $plugindir = get_settings('home').'/wp-content/plugins/'.dirname(plugin_basename(__FILE__)); - $pluginrelativedir = '/wp-content/plugins/'.dirname(plugin_basename(__FILE__)); +//$sl_db_version = "1.0"; +$plugindir = get_settings('home').'/wp-content/plugins/'.dirname(plugin_basename(__FILE__)); +$pluginrelativedir = '/wp-content/plugins/'.dirname(plugin_basename(__FILE__)); - $definitions = array( - array(0,'facebook.png','%userid%','Enter your complete Facebook profile URL','Facebook'), - array(1,'myspace.png','%userid%','Enter your complete MySpace URL.','MySpace'), - array(2,'linkedin.png','%userid%','Enter your complete LinkedIn URL.','LinkedIn'), - array(3,'picasa.png','http://picasaweb.google.com/%userid%','Enter your Picasa(Google) username.','Picasa Web Album'), - array(4,'flickr.png','http://flickr.com/photos/%userid%','Enter your flickr username','Flickr'), - array(5,'youtube.png','http://www.youtube.com/%userid%','Enter your YouTube username','YouTube'), - array(6,'twitter.png','http://twitter.com/%userid%','Enter your Twitter username','Twitter'), - array(7,'pownce.png','http://pownce.com/%userid%','Enter your Pownce username','Pownce'), - array(8,'plurk.png','http://www.plurk.com/user/%userid%','Enter your Plurk username','Plurk'), - array(9,'digg.png','http://www.digg.com/users/%userid%','Enter your Digg username.','Digg'), - array(10,'delicious.png','http://delicious.com/%userid%','Enter your Delicious username','Delicious'), - array(11,'blogmarks.png','http://blogmarks.net/user/%userid%','Enter your BlogMarks username.','BlogMarks'), - array(12,'stumbleupon.png','http://%userid%.stumbleupon.com','Enter your Stumble Upon username','Stumble Upon'), - array(13,'lastfm.png','http://www.last.fm/user/%userid%','Enter your Last.fm username','Last.fm'), - array(14,'amazon.png','%userid%','Enter your complete Amazon Wishlist URL','Amazon Wishlist'), - array(15,'blog.png','%userid%','Enter the complete blog URL.','Blog'), - array(16,'jeqq.png','http://www.jeqq.com/user/view/profile/%userid%','Enter your Jeqq username','Jeqq'), - array(17,'dapx.png','%userid%','Enter your complete Dapx URL.','Dapx'), - array(18,'xing.jpg','%userid%','Enter your complete Xing URL.','Xing'), - array(19,'sixent.png','http://%userid%.sixent.com/','Enter your Sixent username','Sixent'), - array(20,'technorati.jpg','http://technorati.com/people/technorati/%userid%/','Enter your Technorati username.','Technorati'), - array(21,'friendfeed.png','http://friendfeed.com/%userid%','Enter your FriendFeed username.','FriendFeed'), - array(22,'identica.png','http://identi.ca/%userid%','Enter your Identi.ca username.','Identi.ca'), - array(23,'bitbucket.png','http://bitbucket.org/%userid%','Enter your Bitbucket username.','Bitbucket'), - array(24,'github.png','http://github.com/%userid%','Enter your Github username.','Github'), - array(25,'hellotxt.gif','http://hellotxt.com/user/%userid%','Enter your Hellotxt username.','Hellotxt') - ); +$definitions = array( + array(0,'facebook.png','%userid%','Enter your complete Facebook profile URL','Facebook'), + array(1,'myspace.png','%userid%','Enter your complete MySpace URL.','MySpace'), + array(2,'linkedin.png','%userid%','Enter your complete LinkedIn URL.','LinkedIn'), + array(3,'picasa.png','http://picasaweb.google.com/%userid%','Enter your Picasa(Google) username.','Picasa Web Album'), + array(4,'flickr.png','http://flickr.com/photos/%userid%','Enter your flickr username','Flickr'), + array(5,'youtube.png','http://www.youtube.com/%userid%','Enter your YouTube username','YouTube'), + array(6,'twitter.png','http://twitter.com/%userid%','Enter your Twitter username','Twitter'), + array(7,'pownce.png','http://pownce.com/%userid%','Enter your Pownce username','Pownce'), + array(8,'plurk.png','http://www.plurk.com/user/%userid%','Enter your Plurk username','Plurk'), + array(9,'digg.png','http://www.digg.com/users/%userid%','Enter your Digg username.','Digg'), + array(10,'delicious.png','http://delicious.com/%userid%','Enter your Delicious username','Delicious'), + array(11,'blogmarks.png','http://blogmarks.net/user/%userid%','Enter your BlogMarks username.','BlogMarks'), + array(12,'stumbleupon.png','http://%userid%.stumbleupon.com','Enter your Stumble Upon username','Stumble Upon'), + array(13,'lastfm.png','http://www.last.fm/user/%userid%','Enter your Last.fm username','Last.fm'), + array(14,'amazon.png','%userid%','Enter your complete Amazon Wishlist URL','Amazon Wishlist'), + array(15,'blog.png','%userid%','Enter the complete blog URL.','Blog'), + array(16,'jeqq.png','http://www.jeqq.com/user/view/profile/%userid%','Enter your Jeqq username','Jeqq'), + array(17,'dapx.png','%userid%','Enter your complete Dapx URL.','Dapx'), + array(18,'xing.jpg','%userid%','Enter your complete Xing URL.','Xing'), + array(19,'sixent.png','http://%userid%.sixent.com/','Enter your Sixent username','Sixent'), + array(20,'technorati.jpg','http://technorati.com/people/technorati/%userid%/','Enter your Technorati username.','Technorati'), + array(21,'friendfeed.png','http://friendfeed.com/%userid%','Enter your FriendFeed username.','FriendFeed'), + array(22,'identica.png','http://identi.ca/%userid%','Enter your Identi.ca username.','Identi.ca'), + array(23,'bitbucket.png','http://bitbucket.org/%userid%','Enter your Bitbucket username.','Bitbucket'), + array(24,'github.png','http://github.com/%userid%','Enter your Github username.','Github'), + array(25,'hellotxt.gif','http://hellotxt.com/user/%userid%','Enter your Hellotxt username.','Hellotxt'), + array(26,'hyves.png','http://%userid%.hyves.nl','Enter your Hyves.nl username.','Hyves.nl') +); //comparison based on socialnetwok name function compare_social($s1, $s2) { - return strcmp($s1[4], $s2[4]); + return strcmp($s1[KEY_DISPLAY_NAME], $s2[KEY_DISPLAY_NAME]); } //Sorts socialnetworks in alphabetical order @@ -247,55 +248,53 @@ } - function generateSocialLinksInnerHTML(){ - global $definitions; - global $plugindir; - - $options = get_option('widget_social_links'); - - $rows = getSocialLinks(); - if(count($rows)==0) - return; - ////WPD_print("Found".count($rows)." networks."); - - foreach ($rows as $row) { - //WPD_print("SiteID: " . $row[1]); - $linkInfoArray = $definitions[$row[1]]; - //WPD_print('network info '. $linkInfoArray); - $url = str_replace("%userid%",$row[2],$linkInfoArray[KEY_URL_TEMPLATE]); - $innerHTML = $innerHTML . "".$linkInfoArray[KEY_DISPLAY_NAME].""; + function generateSocialLinksInnerHTML(){ + global $definitions; + global $plugindir; + + $rows = getSocialLinks(); + if(count($rows)==0) + return; + ////WPD_print("Found".count($rows)." networks."); + + foreach ($rows as $row) { + //WPD_print("SiteID: " . $row[1]); + $linkInfoArray = $definitions[$row[1]]; + //WPD_print('network info '. $linkInfoArray); + $url = str_replace("%userid%",$row[2],$linkInfoArray[KEY_URL_TEMPLATE]); + $innerHTML = $innerHTML . "".$linkInfoArray[KEY_DISPLAY_NAME].""; if($row != $rows[count($rows)-1]){ $innerHTML = $innerHTML."\n"; } } - + return $innerHTML; - } + } - function generateSocialLinksPreviewInnerHTML($delimiter){ - global $definitions; - global $plugindir; - - $rows = getSocialLinks(); - if(count($rows)==0) - return; - //WPD_print("Found ".count($rows)." networks."); - - foreach ($rows as $row) { - //WPD_print("SiteID: " . $row[2]); - //var_dump($row); - $linkInfoArray = $definitions[$row[1]]; - //var_dump($linkInfoArray); - //WPD_print('network info '. $linkInfoArray); - $url = str_replace("%userid%",$row[2],$linkInfoArray[KEY_URL_TEMPLATE]); - $innerHTML = $innerHTML . "".$linkInfoArray[KEY_DISPLAY_NAME].""; + function generateSocialLinksPreviewInnerHTML($delimiter){ + global $definitions; + global $plugindir; + + $rows = getSocialLinks(); + if(count($rows)==0) + return; + //WPD_print("Found ".count($rows)." networks."); + + foreach ($rows as $row) { + //WPD_print("SiteID: " . $row[2]); + //var_dump($row); + $linkInfoArray = $definitions[$row[1]]; + //var_dump($linkInfoArray); + //WPD_print('network info '. $linkInfoArray); + $url = str_replace("%userid%",$row[2],$linkInfoArray[KEY_URL_TEMPLATE]); + $innerHTML = $innerHTML . "".$linkInfoArray[KEY_DISPLAY_NAME].""; if($row != $rows[count($rows)-1]){ $innerHTML = $innerHTML.$delimiter; } } - + return $innerHTML; - } + } /* function generateSocialLinksData(){ diff -r 826c273fe3fe77e71ad187d0d8dc4b4bbbeb55fd -r 6536221ffa83ad97c6023a45feb414a4ce49ef46 images/hyves.png Binary file images/hyves.png has changed diff -r 826c273fe3fe77e71ad187d0d8dc4b4bbbeb55fd -r 6536221ffa83ad97c6023a45feb414a4ce49ef46 readme.txt --- a/readme.txt Sat May 30 15:58:34 2009 +0000 +++ b/readme.txt Sat May 30 15:58:53 2009 +0000 @@ -3,25 +3,22 @@ Contributors: nolith Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5570803 -Tags: widget,sidebar,Social network, profile page,social link,icon links,about me, XFN, Amazon, Wishlist, Bitbucket, Blogs, BlogMarks, Dapx, Delicious, Digg, Facebook, Flickr, FriendFeed, Github, Identi.ca, Jeqq, Last FM, Linked In, My Space, Picasa Web Albums, Plurk, Pownce, Sixent, Stumble Upon, Technorati, Twitter, YouTube, Xing, Hellotxt +Tags: widget,sidebar,Social network, profile page,social link,icon links,about me, XFN, Amazon, Wishlist, Bitbucket, Blogs, BlogMarks, Dapx, Delicious, Digg, Facebook, Flickr, FriendFeed, Github, Identi.ca, Jeqq, Last FM, Linked In, My Space, Picasa Web Albums, Plurk, Pownce, Sixent, Stumble Upon, Technorati, Twitter, YouTube, Xing, Hellotxt, Hyves.nl, Hyves.net Requires at least: 2.6 Tested up to: 2.7.1 -Stable tag: 1.0.1 - - +Stable tag: 1.0.2 About me is a sidebar widget that displays icon links to your profile pages on other social networking sites. Based on Social Links. - - == Description == - - About me is a sidebar widget that displays icon links to your profile pages on other social networking sites. All the icons has `rel="me"` tag. ([XFN compliant](http://www.gmpg.org/xfn/ "XFN compliant")). This plugin is forked from [SocialLinks](http://blog.maybe5.com/?page_id=94 "Social Links page") +**What's new** +hyves.nl support, title tag added to images. + **Supported Networks:** @@ -38,6 +35,7 @@ * FriendFeed * Github * Hellotxt +* Hyves.nl * Identi.ca * Jeqq * Last FM @@ -57,8 +55,6 @@ == Installation == - - 1. Download the installation zip file and unzip leaving the directory structure in tact. 1. Upload the newly unzipped 'about-me' folder to the `/wp-content/plugins/` folder 1. Activate the About Me plugin from the 'Plugins' menu. @@ -67,16 +63,10 @@ 1. Add your social links from the 'About Me' page under the 'Management' page. - - == Frequently Asked Questions == - - = How do I get another website supported? = - - Just post a comment to [my blog](http://abisso.org/index.php/projects/about-me/) or [open a ticket](http://bb.alessiocaiazza.info/about-me/issues/new/) with a link to any user page on that site. I will add suggested sites in upcoming releases. @@ -87,13 +77,10 @@ == Screenshots == - - 1. About Me sidebar widget - - == Change Log == +* 1.0.2 NEW:Hyves.nl support; MINOR: title tag added to images * 1.0.1 NEW:Hellotxt support; Minor changes in widget option layout; Widget renamed to 'About Me - Social Links'; Management page renamed to 'About Me' * 1.0.0 NEW:Bitbucket, Identi.ca, GitHub support FIX:now works with Lightbox2/Slimbox plugins \ No newline at end of file