We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Share This Plugin

Development and Programming

Adam George's avatar
Adam George
283 posts
15 years ago
Adam George's avatar Adam George

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

       
Lars Kirchhoff's avatar
Lars Kirchhoff
58 posts
15 years ago
Lars Kirchhoff's avatar Lars Kirchhoff

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

       
ms's avatar
ms
274 posts
15 years ago
ms's avatar ms

Lars, Ayza:

Was there any solution to the blank e-mail tab Ayza reported? It seems I’m running into the same effect if using the plugin (latest version, fresh download from Lars’ website).

-Markus

       
Adam George's avatar
Adam George
283 posts
15 years ago
Adam George's avatar Adam George

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.

       
ChrisClark's avatar
ChrisClark
60 posts
14 years ago
ChrisClark's avatar ChrisClark

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?

       
fogcity's avatar
fogcity
260 posts
14 years ago
fogcity's avatar fogcity

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.

       
journalistone's avatar
journalistone
78 posts
about 14 years ago
journalistone's avatar journalistone

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.

       
Derek Hogue's avatar
Derek Hogue
316 posts
about 14 years ago
Derek Hogue's avatar Derek Hogue

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/

       
First 3 4 5

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.