-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace AddThis with SocialSharePrivacy (hopefully fixes #36) #57
base: master
Are you sure you want to change the base?
Conversation
To avoid leaking of URLs to the ad/intelligence cartel :) Also disabled crazyegg unless it runs from sharefest.me (similar to what is done with google analytics)
@@ -0,0 +1 @@ | |||
../../../socialshareprivacy/jquery.socialshareprivacy.min.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how does this link suppose to work. or did you mean I just need to copy the original .min.js file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do git submodule update --init
it should work (see change to README).
I prefer submodules to copying for 2 reasons:
- It's easier to pull if there's an update (e.g. if there's a change in the way fb/twitter/g+ do things)
- It also gives credit to the maintainer in a big-data kinda way ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did try the git submodule update --init, but still I"m left with a .js
that "../../../socialshareprivacy/jquery.socialshareprivacy.min.js" is its
content.
On another note,
Do socialshareprivacy have share buttons? We used the share buttons of
addthis where you can control the content you are advertising and even
private message someone in facebook, as opposed to "like/+1"?
Thanks,
Shachar
On Wed, Sep 11, 2013 at 1:53 AM, Nimrod S. Kerrett <[email protected]
wrote:
In sharefest/public/js/jquery.socialshareprivacy.min.js:
@@ -0,0 +1 @@
+../../../socialshareprivacy/jquery.socialshareprivacy.min.jsIf you do git submodule update --init it should work (see change to
README).
I prefer submodules to copying for 2 reasons:
- It's easier to pull if there's an update (e.g. if there's a change
in the way fb/twitter/g+ do things)- It also gives credit to the maintainer in a big-data kinda way ;)
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/57/files#r6281158
.
Is it possible to automatically .click() after the share button is activated (the user will need to click only once) but still if he doesn't click it won't load the buttons? |
These buttons are iframes AFAIK, so browser security policy (which sometimes coincides with reasonable security considerations) wouldn't let us do this, or you could make your users auto-like your page :) Anyway - Heise (with a huge readership in the land of CCC) tried their best and came up with this. I guess 1 click is either impossible or a vulnerability. |
Conflicts: README.md
* Fix working dir for npm start * Some path juggling to make submodule work when installing from zip * Explain how to install submodule from zip in README
Note: even if you reject this pull request, the package.json patch is a bug fix ( |
There was a discussion on @shacharz hanging on a blame on an outdated diff, so for the sake of convenience, I'm moving the text here:
Note that I've moved the submodule's location @074c4ff from
The default in Ssp is indeed a share button (in fact - this is Heise's default, but @patrickcheck decided to use the like button in his demo). The only problem is that since he probably only used the like option in everything he did, the button image for "share" (they call it "recommend") is in German 🙀. The simplest workaround would be to create an English button ourselves and provide its URL in the settings to the Long term (i.e. if/when this works and you want it):
|
It's worse than I thought. Patched my code to "recommend", and indeed the button that comes from FB (after the first click) says "recommend", but what it actually does is a like. Worse. I've now noticed the url there was plaintext http: (ZOMG ❗). I've found @panzi/SocialSharePrivacy (demo). It doesn't support FB share "out of the box", but it has a plugin architecture - so I might be able to add a sharer into it. It also does SSL (if current url is SSL), and seems to be a lot more up to date and feature rich than @patrickcheck's in general. Let's hope it solves the problem. |
OK. It's a complete rewrite, and it's much better and simpler now (if you look at the diff, not the commits 😉). Hope it's OK now. |
Panzi's SocialSharePrivacy fork has a build.sh that generates a compact distribution (this is where you define which share button modules you want to include - if you want to change that). sharefest/public/SocialSharePrivacy/ is a result of such a build, and contains a README explaining how to regenerate it. This is not a git submodule in order to simplify zip installation, and minimize zip size.
Nicely done,
|
I'll take a loook at it. Let's hope that once it works, it looks like "share" and not "like". Worst case, I'll write another module :)
No problem.
OK.
Thing is - I'm color blind and CSS deaf 😏. If you want to change stuff, note that the files under
🙏 Thank you for the other 99% of the code. |
oops accidentally clicked the "close" button.
Looks sweet!
We should totally take care of that, adding an issue |
With partial success :(. See Peer5#57 (comment)
Latest commit tries to satisfy requests by @shacharz
Can't get it to work 😦. Looks like Google has changed something. Opened an issue regarding this. If you want, I can add some other button instead (maybe reddit?).
Done
Done, except for fb share, because it always takes the title from the actual page (without running js on it, of course 😉), even if you specify the title explicitly. |
Also disabled crazyegg unless it runs from sharefest.me
(similar to what is done with google analytics)