09 Mon

Adding Google And Slashdot To Sociable

Posted on October 2006 at about 7:36 pm by hwa

To add Google and Slashdot into your Sociable WordPress Plugin, please do the following:



Slashdot:
To add Slashdot into your Sociable, copy and paste to following code into the "$sociable_builtin_known_sites" array in "sociable.php":

PHP:
'Slashdot' => Array(
  'favicon' => 'slashdot.png',
  'url' => 'http://www.slashdot.org/bookmark.pl?
    url=PERMALINK&title=TITLE'
,
),

Next copy and paste the following into "$sociable_files" array:

PHP:
'images/slashdot.png',

Then save the Slashdot icon below and upload it into "sociable/images/" in your WordPress plugin folder.

After that go to "Admin->Options->Sociable" and click "Restore Built-in Defaults" for the icon to appear in the option page.

Google:
To add Google, copy and paste the following code into the "$sociable_builtin_known_sites" array in "sociable.php":

PHP:
'Google' => Array(
  'favicon' => 'google.png',
  'url' => 'http://www.google.com/ig/add?
    feedurl=PERMALINK&blocked=TITLE'
,
),

Next copy and paste the following into the "$sociable_files" array:

PHP:
'images/google.png',

Save the following Google icon and upload to "sociable/images/" in your WordPress plugin folder.

Lastly go to "Admin->Options->Sociable" and click "Restore Built-in Defaults" for the icon to appear in the option page.

Technorati Tags: , , , , , ,

Leave a Reply

Required

Required, Hidden