The Social Media Page Wordpress plugin will add a list of links to your social media profiles on a page or post of your choice. This plugin also creates a widget that will display your social media profiles in the side bar of your site.
Rather than getting you to enter all of your social media profiles as URLs the plugin gets you to enter your username, and works out the rest. Some exceptions (like Facebook) require some extra information, which has been accounted for. There are over 100 different social media sites to select from so it should cover anything you happen to be a member of.
When the links are displayed on the page it will use a keyword of your choice as the text for the link.
I have set up a forum to for anyone to report any issues. Note that you need to be a member of the forum to add anything.
Instillation
To install the plugin just drop the folder social-media-page into your Wordpress plugins folder (located at wp-content/plugins/). Log into Wordpress and go to your Plugins section and activate the social media page plugin.
When the plugin is activated for the first time it checks to see if a table exists called wp_socialmediaprofiles. If it doesn’t then it creates it.
Usage
To use the plugin look for the option called SMP at the bottom of the left hand menu. Other plugins might appear below this, so be aware that it might not be the last item.
A major change from the 1.x to the 2.0 version of the plugin is to only display the social media plugins that have been filled in. The upshot of this is that it is now possible to add multiple profiles to the same site.
Embed The List Into A Page/Post
After setting up the needed fields in your administration section you can display the list on any page or post by using the following tag:
<!-- social-media-page -->
It is also possible to print out just a list of the profiles associated with a particular user. For example, to print out the list of profiles for the user with the id of 3 do the following:
<!-- social-media-page3 -->
Please note that this method currently does not work within widgets. It can only be used within the context of a page or post.
Comments?
If you notice any bugs or feel that this plugin can be improved in any way then let me know! Also, the list is far from complete, so if you feel that I have left any sites out then I will create an update and add those sites in.
Note that I have created this plugin in my own time so although I will try to fix any problems quickly, that might not always be the case.
Changes in version 2.0
- Version 2.0 has undergone lots of changes, including a full rewrite of the code and a completely different way of storing the social media profiles. The profiles available will no longer be associated with the plugin and are loaded by a separate csv file.
- Different users can create their own profiles.
- A global keyword is still available, but this can be superseded by a keyword for each link.
Changes in version 1.3
- Added a fix for a typo in the Friendfeed profile.
- Added an option to add rel=”nofollow” to the links created by this plugin.
- Tidied up widget code to incorporate widget options from theme.
Changes to Version 1.2
- This plugin can now be used as a widget.
- Plugin output tweaked to have normal output for pages and smaller output when printing widget.
- Added option to allow blog admin to decide if credit should be given to plugin author.
- Noticed bug when updating plugin causing no images to be displayed. This was due to file permissions. Added a function that sets file permissions properly at install.
Changes to Version 1.1
- Fixed some incorrect information in some of the profile information.
Donate!
If you like this plugin then you can help with development through a donation.
Comments
Template/themes
What's the code for adding this to a page template?
You'll want to use the
You'll want to use the smp_print_list() function, with an optional parameter of the user ID if you want to force the function to print out the profiles for a particular user.
great work!
great work on the plugin, im new to php/wordpress....what I need to know is; how can I change the text of the links? do i need to make a change in the CSS file or the PHP file? where do I start?
-david
txsigma41 (at) gmail . com
Hi! Thanks for taking an
Hi!
Thanks for taking an interest in the plugin.
To alter the template of the output you need to go to the following files, depending on what you are doing:
Page based output (ie using the page tags)
/plugins/social-media-page/templates/page.tpl
Widget based output
/plugins/social-media-page/templates/widget.tpl
Each template is split into two parts by an if statement, the first is used if the output style chosen is as a list of images. The second is the default (which you'll probably want to look at).
I hope that helps. Let me know how you get on as I'll probably release a new version or write a tutorial.
Last.FM musician profile
Great plugin, using it for my band's site.
One problem is the Last.FM profile is for a user. Would it be possible to add an option for a Last.FM band?
The format is http://www.last.fm/music/
In my case - http://www.last.fm/music/Organical
Hope you could add that in a future release.
Cheers,
Steve
www.organical.net
Fatal Error upon install
Reads:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/m/a/i/mainemls/html/turnermainehomes/wp-content/plugins/social-media-page/SocialMediaPage.php on line 32
I've tried this on three different blogs after updating to the latest version. HELP!
Great plugin -When it worked!
This error would suggest that
This error would suggest that you are using PHP4.
I would urge you to upgrade your host as soon as you can. PHP4 was discontinued at the end of 2007, so I'm actually surprised to find web hosts still running it.
WordPress itself will no longer support PHP4 by the end of the year, so you should contact your host to upgrade your site before that happens as things will probably start breaking within WordPress after that. See this post for more information.
http://wordpress.org/news/2010/07/eol-for-php4-and-mysql4/
Of course, downgrading the plugin to the previous version will allow you to continue using it on your current host for the time being.
Here is the link to the previous version:
http://downloads.wordpress.org/plugin/social-media-page.1.7.zip
Sociable icon being displayed in a vertical line, not horizontal
Hi,
I've been using this plugin for a while now with no problems, but lately I've been having a problem with the icons displaying in a vertical line instead of a horizontal line since going to WP3. It looks as though the sociable div is not being added to all posts/pages, and hence the display: inline; for .sociable li ul isn't taking effect. It doesn't happen on all pages, any idea why this would be? Any advice on what I can do to resolve this?
Thanks in advance for any help,
Mike.
Interesting, I'll have a look
Interesting, I'll have a look at that and get back to you.