WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Social Dropdown

This plugin displays several social bookmarks in a dropdown. Unlike other social bookmarking displays, this does not cause clutter.

Updating

You can check what version the plug-in is at via visiting the Options > Social Dropdown panel.

  1. Deactivate the Social Dropdown plug-in. You may want to back-up your existing plug-in files just in case if there are any errors while updating.

  2. Replace the files in the social-dropdown directory located in the WordPress plug-ins directory.

  3. Re-activate the Social Dropdown plug-in from the administration dashboard.

If you have modified the GenerateAll() function, copy the modified area and set $overrideoptions to true to preserve your changes. $overrideoptions can be found in generatebookmarks.php.

Requirements

  1. A working WordPress install

  2. Your WordPress theme must contain a call to the get_header() function

  3. Your WordPress theme must contain the WordPress loop

Most WordPress installs and templates have these, so you need not worry about these.

To be able to use the dropdown, one must have JavaScript enabled in the browser.

Fortunately, users without JavaScript enabled will see a list of social bookmarks at where the dropdown is.

Customizing

Within socialdropdown.php, these are some areas you can edit to influence how the dropdown appears.

In the GenerateAll() function, you can re-arrange how the items appear, add new items or remove them (after setting $overrideoptions to true). You can already do this using the Options > Social Dropdown panel.

Creating bookmarks

Each social bookmark is generated using the GenerateLink() function, and the URLs used are created using the GenerateURL() function. The parameters are as followed: GenerateLink($type), where $type is the name of the social bookmark (e.g. Digg is represented as 'digg').

In order to add a new bookmark, add the following lines of code after an item [i.e. after break;] in the GenerateURL() function. An example is shown:

case '[name of social bookmarking site]':

?>

[URL to social bookmark page]

<?php

break;

In this example, when you call GenerateURL('yahoo'), the link for this item is generated. The link is the direct link to the submitting URL, usually available as an API on the social bookmarking site. Within the URL, there is some PHP code. the_title() represents the post title, while echo get_the_permalink() represents the URL of the post.

Within generatebookmarks.php, find a variable called $all. Add '|[your bookmark name here]' to the end of the string. For example, in the case of Yahoo, if $all contains "google", then the result will be "google|yahoo".

Credits

Several images are created or taken from the corresponding social bookmarking sites and edited to suit the plug-in. The dropdown javascript is taken from http://www.dynamicdrive.com/ and modified. The drag-drop library is provided by http://script.aculo.us/.

Requires: 1.5 or higher
Compatible up to: 2.5.1
Last Updated: 2009-1-8
Downloads: 25,458

Ratings

3 stars
3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0
0,1,0