Skip to content
This repository

Add a 'Share on' entry for StatusNet #213

Closed
wants to merge 2 commits into from

4 participants

Jean Baptiste Favre Tobias Zeising Sean Rand Guillaume Hayot
Jean Baptiste Favre
  • Add StatusNet icon with same layout as other share entries
  • Make it configurable, everyone can have its own StatusNet instance
  • Default goes to identi.ca
Tobias Zeising
Owner

StatusNet seems to be a very unknown system. I didn't know it before. I will not add to much elements in the ui and think the biggest social networks are enough. Hmm, soon we need a plugin system ;)

Tobias Zeising SSilence closed this
Jean Baptiste Favre

"Very unknown system" ?
identi.ca is a more than 100k active users platform.
I know many people operating their own StatusNet instance, some of them also using Selfoss (don't have figures though).
Most identi.ca/Statusnet users are free software advocates as well.

Anyway, will maintain & keep that patch public. Could help some folks outthere

Sean Rand

In the meantime, I created a wiki page to keep track of all the patches to Selfoss that didn't make it into upstream but which will hopefully be kept up-to-date anyway: https://github.com/SSilence/selfoss/wiki/Maintained-feature-patches

Guillaume Hayot

That patch is awesome ! Thank you @jbfavre. Besides, I don't agree with the "unknown system" for identi.ca / StatusNet. Yes, there's less people on identi.ca / statusnet than on Twitter or Facebook, but most of them are geeks, nerds and techies that can configure a webserver. So they'd be, I think, most of the users of Selfoss.

Merging this patch on my branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Mar 31, 2013
Jean Baptiste Favre jbfavre Add a 'Share on' entry for StatusNet. Make it configurable, everyone …
…can have its own StatusNet instance, with default to identi.ca
8e4f32e
Apr 01, 2013
Jean Baptiste Favre jbfavre Add CSS for 'share on statusnet' entry b901fca
This page is out of date. Refresh to see the latest.
3  defaults.ini
@@ -22,4 +22,5 @@ rss_mark_as_read=0
22 22 homepage=newest
23 23 language=0
24 24 auto_mark_as_read=0
25   -anonymizer=
  25 +anonymizer=
  26 +share_sn_url=https://identi.ca
4 public/css/style.css
@@ -541,6 +541,10 @@ input {
541 541 background-image:url(images/pocket.png);
542 542 }
543 543
  544 + .entry-statusnet {
  545 + background-image:url(images/statusnet.png);
  546 + }
  547 +
544 548 .entry-smartphone-share li.entry-shareemail,
545 549 .entry-toolbar li.entry-shareemail {
546 550 background-image:url(images/mail.png);
BIN  public/images/statusnet.png
9 public/js/selfoss-events-entriestoolbar.js
@@ -60,6 +60,13 @@ selfoss.events.entriesToolbar = function(parent) {
60 60 e.preventDefault();
61 61 return false;
62 62 });
  63 +
  64 + // share with StatusNet
  65 + parent.find('.entry-statusnet').unbind('click').click(function(e) {
  66 + window.open(" "+(share_sn_url?share_sn_url:"https://identi.ca")+"/index.php?action=newnotice&status_textarea="+encodeURIComponent($(this).parents(".entry").children(".entry-title").html())+" "+encodeURIComponent($(this).parents(".entry").children("a").eq(0).attr("href")));
  67 + e.preventDefault();
  68 + return false;
  69 + });
63 70
64 71 // only loggedin users
65 72 if($('body').hasClass('loggedin')==true) {
@@ -194,4 +201,4 @@ selfoss.events.entriesToolbar = function(parent) {
194 201 return false;
195 202 });
196 203 }
197   -};
  204 +};
2  templates/item.phtml
@@ -59,6 +59,7 @@
59 59 <li class="entry-sharefacebook" title="facebook">facebook</li>
60 60 <li class="entry-sharepocket" title="pocket">pocket</li>
61 61 <li class="entry-shareemail" title="email">email</li>
  62 + <li class="entry-statusnet" title="statusnet">StatusNet</li>
62 63 </ul>
63 64 </div>
64 65
@@ -73,6 +74,7 @@
73 74 <li class="entry-sharefacebook entry-share" title="facebook">&nbsp;</li>
74 75 <li class="entry-sharepocket entry-share" title="pocket">&nbsp;</li>
75 76 <li class="entry-shareemail entry-share" title="email">&nbsp;</li>
  77 + <li class="entry-statusnet entry-share" title="statusnet">&nbsp;</li>
76 78 <li class="entry-close"></li>
77 79 </ul>
78 80 </div>

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.