Hi Lars
Thanks for this great plugin! I’m using it on my site and it works well.
I was wondering, for accessibility, if there is a way to only have it displayed if the user has javascript enabled? Or perhaps degrade to a link which can take the user to another page designed to help non-javascript users?
I’m thinking not just of people with javascript turned off, but also screen readers, and perhaps mobile devices.
Thanks again for a great tool! - Adam
Hi Adam,
I’ve thought about that too, but the problem is that it is a plugin in it’s current state and as far as I know it’s not possible to create a specific page with a plugin.
I think it’s easy to put in a switch if javascript is disabled. And just as a I am writing I am thinking to change the way the plugin works. So maybe we need to put the share this plugin tags around the whole article layout in the template. Therefore the plugin can decide wether to display the article content or or the sharethis links depending on a url parameter.
I’ll give it a try.
ciao Lars
Hi Lars
Re: the accessibility issue - there is a potential easy fix which works as far as I know.
In the plugin, about line 228, add a default URL to the link:
<a href="/site-help/social-networking/" onclick="share_this_show(\\'' . $article_id . '\\', \\'' . $orientation .'\\', \\'' . $url . '\\', \\'' . $title . '\\', \\'' . $bodytext . '\\'); return false;" title="E-mail this, post to del.icio.us, etc." class="share_this_link" id="share_this_link_' . $article_id . '">' . $linktext . '</a>
This means that if the user has javascript on the ‘return false’ will void the link and things will happen as normal, but if they don’t have javascript on, they will go to /site-help/social-networking/ which could be a page that has the links to delicious, etc, on it - you could pass $article_id and $linktext as a variable or a url segment.
This could work, what do you think?
EDIT: It would still be preferable to have the javascript degrade into a list of links on the original page though.
One problem I’ve had with this plugin is getting my pages to validate when I include it on a page with multiple entries. It’s because div ids are supposed to be unique and they end up repeating themselves when the plugin is used on a multi-entry page.
Any thoughts on how to correct this?
yes this only seems compatible with pages containing only one entry.
i believe it involves generating IDs that are unique to each entry (appending entry_id to it, for example) and then styling the layout using classes rather than ID’s in the css.
i have to imagine that many people want to enable sharing on pages with more than one entry… so if someone has a solution out there, let me know.
Issue of Blank Email-To_Friend Tab
Hello all on this thread of the Share This plugin.
I know some time has elapsed here since this thread was discussed, but I have just installed the plugin and have everything working … except the Email_To_Friend tab… it is blank.
I am running EE 1.6.7.
Is there a solution on the blank Email tab ?
Thank you in advance.
Just FYI, all of this functionality can be had with very minimal effort by grabbing the ShareThis script from http://sharethis.com/. No need to code up new templates or use EE’s built-in Tell-A-Friend form. Just in case anyone’s looking for a simpler route.
I use the ShareThis service all the time on client sites, and it works great.
For using it on multi-entry pages, see this thread: http://ellislab.com/forums/viewthread/66212/
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.