I received a few requests on openversion and on this blog from sociofluid users to have the option to add their own buttons. For the moment I don’t think it’s a good idea to implement it in sociofluid admin panel. The main reason is the performance, the data need to be stored somewhere and I don’t think it’s a good option to store it in the database.

I’ve changed the structure of the plugin and now it’s really simple to add new buttons. All you have to do is to go to function get_the_checks()  in sociofluid.php file using any editor and add a new item. You don’t really need php knowledge to do it. Here is an example (the bold characters are the lines you have to add for a new button, you must take care to commas to have them in place) :

function get_the_checks()
{
$checks = array(
“check_digg” => array(
0 => ‘digg’,
1 => ‘http://digg.com/submit?phase=2&url=%s&title=%s’,
2 => ‘Digg’
),

….
“check_jamespot” => array(
0 => ‘jamespot’,
1 => ‘http://www.jamespot.com/?action=spotit&url=%s&title=%s’,
2 => ‘Jamespot’
),
“check_meneame” => array(
0 => ‘meneame’,
1 => ‘http://meneame.net/submit.php?url=%s&title=%s’,
2 => ‘Meneame’
) ,   

        ”check_newbookmarkingsite” => array(
            0 => ‘newbookmarkingsite’,
            1 => ‘http://newbookmarkingsite.com/submit.php?url=%s&title=%s’,
            2 => ‘New Bookmarking Site’
        )

);
return $checks;
}

The first %s is the place where the your post/blog url will be inserted and the second one is the title.

Then you have to add images for the specific botton in the images directory of the sociofluid plugin. The following images are required(depending on what you select in sociofluid panel 2 images will be used):

  • newbookmarkingsite_16.png
  • newbookmarkingsite_24.png
  • newbookmarkingsite_32.png
  • newbookmarkingsite_48.png
  • newbookmarkingsite_64.png

Please let me know if you add a new button to your blog an you would like to provide me the images to add the buttons to the plugin(and if the license of the images allows it to be distributed).

http://www.improveseo.info/wp-content/plugins/sociofluid/images/digg_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/reddit_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/delicious_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/blinklist_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/blogmarks_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/furl_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/technorati_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/magnolia_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/google_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/myspace_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/facebook_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.improveseo.info/wp-content/plugins/sociofluid/images/mixx_48.png

Related Posts