cab_social
Current version
Current version is 0.2 and should be considered still in testing.
Changelog:
- From 0.1: added background attribute. 1 means it will use CSS background to display icons (like in the example below), 0 means it will use HTML img tag. Defaults to 1.
Download:
Supported sites
Currently supported are: del.icio.us, digg.com, stumbleupon.com, facebook.com, reddit.com
More will come in the next version and per request (you can find my email at http://www.anegdote.com).
Installation
- Install plugin per usual.
- Activate plugin per usual.
- Upload icons (from icons.zip) to your website (e.g. http://url/images/social)
Usage
- Include txp:cab_social in the article form.
- Use any of the following attributes:
- sites (default: delicious,digg,reddit,facebook,stumbleupon).
- A list of social bookmarking sites you would like to use, separated by commas. NO SPACES.
- tag (default: p)
- tag that will enclose each social bookmarking link (e.g. p, li, div, span, etc.)
- class (default: social)
- class for the tag above
- imgdir (disabled by default)
- An URL to directory where you stored icons (e.g. http://url/images/social or /images/social)
- imgclass (defualt: socialimage)
- class for the icon image
- sites (default: delicious,digg,reddit,facebook,stumbleupon).
Icons
You can download the icons from: http://www.anegdote.com/fajlovi/social.zip
Example
To get a bar like at the bottom of this article, I used the following in my form:
<ul class="sociallist">
<txp:cab_social tag="li" imgdir="/slike/social" />
</ul>
And following in my stylesheet:
.sociallist
{
padding: 0;
margin: 0;
list-style: none;
}
.sociallist li
{
padding-right: 15px;
}

Comment
Oct 12, 07:23 AM #
Hey Dejan – really pleased your site’s back up. Been wanting to try your cab_social plugin for a few days. Will try tonight! Facebook support will be very handy.
Oct 12, 04:47 PM #
On second thoughts, I notice that the download path isn’t available?
Oct 14, 09:58 AM #
Tim,
Sorry about that – follow the link up there and you should be able to download both the icons and the plugin itself.
Let me know if you run into any problems.
Oct 16, 06:30 AM #
Thanks Dejan. Installed and running fine.
Could you advise a way to have the bookmark links open in a new tab/screen (like target=”_blank”), so that the user isn’t taken away from your site?
Also, I notice the Facebook link seems to hang indefinitely (once you log into Facebook) meaning a browser restart – could be a Facebook issue…
Oct 16, 06:58 AM #
Tim,
I will implement functionality as attribute in 0.3.
Meanwhile, go to your Amin/Plugins tab, click on “Edit” for cab_social, and substitute the line:
$ahp = ‘< a href=”’;
with
$ahp = ‘< a target=”_blank” href=”’;
(There should be no space between < and a, I had to put it in this comment because Textpattern keeps parsing it, but it isn’t there in the plugin).
I can’t recreate the Facebook problem, so it’s probably a temporary issue.
Oct 16, 07:36 AM #
Thanks for the swift reply Dejan, certainly appreciated!
Oct 11, 12:15 AM #
hi Dejan!
So i’m really new to text pattern so I have some questions for you.
- Do I set up a NEW form for just this plugin? If so, what should I call it and what should I put in the PAGE so that it is called upon?
- If I add it to an existing form, where in the form do I put it?
- I just want my whole site to be clickable (not individual articles), can i just add it to the footer form?
I’m sorry these are probably such basic questions but when I tried to figure this out myself I got some big errors and the CSS stoped working for my whole site. Any help you have would be greatly appreciated!
thanks!
jackie
Oct 16, 09:11 PM #
Jackie,
I recommend you best try to search for another plugin for textpattern. There are several of them with the same funcitonality now, and I don’t maintain this one actively. I can’t guarantee it works with recent versions of TXP!
May 10, 10:32 PM #
Is there anyway to get some sites added or a way I could do it myself? technorati, designfloat, tweeter??? Thanks, Camxso
Mar 11, 02:17 AM #
Please ad a way to have people send a tweet over twitter with a predefined text (article title?) and the URL shortened via is.gd or tinurl or anything. That would be awesome.