ElkArte Community

Extending Elk => Addons => Topic started by: Spuds on July 25, 2014, 07:02:31 pm

Title: [ADDON] Social Links
Post by: Spuds on July 25, 2014, 07:02:31 pm
This has been done for quite some time ( http://www.elkarte.net/community/index.php?topic=1441.0 ), I'm just closing the old thread and leaving the actual addon in the board.

Social Links


Introduction
This adds social the links for Facebook Like, Twitter Tweet, and Google +1 to the first post of each thread.

License
This modification is released under a MPL V1.1 license, a copy of it with its provisions is included with the package.

Features

Installation
Simply install the package to install this addon.

Download
http://addons.elkarte.net/enhancement/Social-Links.html
Title: Re: [ADDON] Social Links
Post by: Allan on July 26, 2014, 07:41:44 am
Thank you Spuds   :D
Title: Re: [ADDON] Social Links
Post by: pixer on January 02, 2015, 02:21:51 pm
Hello,
I would like to let you know that mod/link point to another mod you can control?

http://addons.elkarte.net/page7/

click on social link and go to solve topic  :D

Regards.
Title: Re: [ADDON] Social Links
Post by: shasha on July 15, 2015, 06:54:51 am
Quote from: Spuds – This has been done for quite some time ( http://www.elkarte.net/community/index.php?topic=1441.0 ), I'm just closing the old thread and leaving the actual addon in the board.

Social Links


Introduction
This adds social the links for Facebook Like, Twitter Tweet, and Google +1 to the first post of each thread.

License
This modification is released under a MPL V1.1 license, a copy of it with its provisions is included with the package.

Features
  • Ability to select which links are shown in the post
  • Ability to turn off the addon

Installation
Simply install the package to install this addon.

Repo
https://bitbucket.org/spuds_/elk_sociallinks
Source
https://bitbucket.org/spuds_/elk_sociallinks/src
Download
https://bitbucket.org/spuds_/elk_sociallinks/downloads


Great. Actually what i was looking for. Was wondering if facebook share could be added to it.
Title: Re: [ADDON] Social Links
Post by: badmonkey on February 28, 2017, 04:42:51 pm
Mighty fine mod, mighty fine.  Have there been API changes since it was written?  G+ link displays but not FB or twitter.  Thanks!
Title: Re: [ADDON] Social Links
Post by: Spuds on March 01, 2017, 04:05:59 pm
Darned if I know ... I'll have to do some looking  ;)
Title: Re: [ADDON] Social Links
Post by: Spuds on March 01, 2017, 07:45:35 pm
Looked over the latest dev guides and did not see anything major, and in fact when I installed the current mod on my local the buttons did show up.  Are you running an add blocker or something like that (both facebook and twitter use iframes to show the buttons).

In any case I did update the mod to use anything new that I saw (still uses iframes but we could do this another way if needed), and added Linked in to the available buttons.

Attached for testing.
Title: Re: [ADDON] Social Links
Post by: kucing on March 01, 2017, 09:21:24 pm
i don't know we have this. :D

requesting whatsapp and telegram if possible.

can we disabled the share count? i just want dumb buttons so it will not query facebook/twitter?

and if this: http://sharingbuttons.io/ can be adapted to this plugin? just asking, i want to use it but don't know how to insert it manually to elkarte.
Title: Re: [ADDON] Social Links
Post by: Spuds on March 02, 2017, 05:31:21 pm
Here is a quick version to add whatsapp and telegram, as well as remove the counter.  Tweaked the layout just a bit to help align the default app buttons since they are all sized a bit differently.

Do note, I don' have accounts to any of these things, so I have no way to test them, I simply went by whatever docs each service provided (or did not in some cases).  So if it works, great, if not, you may be on your own  O:-)

Quote from: kucing – and if this: http://sharingbuttons.io/ can be adapted to this plugin? just asking, i want to use it but don't know how to insert it manually to elkarte.
Somewhat similar so could be adapted, its just replacing the html in this addon with the html they provide.
Title: Re: [ADDON] Social Links
Post by: kucing on March 02, 2017, 07:01:09 pm
awesome @Spuds !

i tried it and it works.

if i may to made another request:
1. can you add facebook share?
2. positioning the social links under the menu for better access. the first post is pretty far if the member read more than page 1.
3. size settings? below I attach what i'm using on my forum (addthis). maybe because it's intended the links inserted after post so it's pretty small. what i want to do is to replace addthis completely.

really2 thank you.
Title: Re: [ADDON] Social Links
Post by: russena on March 03, 2017, 07:53:09 am
Thanks! Missing the telegram icon (paper plane)?
Title: Re: [ADDON] Social Links
Post by: Spuds on March 03, 2017, 08:22:28 am
Quote[font="Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, "Droid Sans", "Helvetica Neue", "Trebuchet MS", Arial, sans-serif]Thanks! Missing the telegram icon (paper plane)?[/font][/size][/color]
That image is in the CSS file (as an SVG image), so as long as sociallinks.css is being loaded it should be visible.  If not what browser are you using?
Title: Re: [ADDON] Social Links
Post by: russena on March 03, 2017, 09:19:13 am
I use MacOS el capitan and google chrome browser.
I attach screenshot(Link-4573)
Title: Re: [ADDON] Social Links
Post by: Spuds on March 03, 2017, 09:53:47 am
That is odd ... its clearly loading the CSS.  I will see if I can reproduce the issue, but I don't have an authentic mac
Title: Re: [ADDON] Social Links
Post by: badmonkey on March 03, 2017, 12:08:32 pm
Perhaps the same issue?
Title: Re: [ADDON] Social Links
Post by: russena on March 03, 2017, 02:10:03 pm
You can try the following link:  www.superscuola.com/portale/index.php?topic=719.0
Title: Re: [ADDON] Social Links
Post by: Spuds on March 03, 2017, 03:15:21 pm
Well dang ... that SVG icon I used was not compatible with 1.0's css compressor (works on 1.1)

So here is another update .. uninstall, delete package and upload this one instead and see if it fixes the issue.
Title: Re: [ADDON] Social Links
Post by: russena on March 03, 2017, 04:10:04 pm
It works well. Thank you
Title: Re: [ADDON] Social Links
Post by: badmonkey on May 28, 2017, 11:51:49 pm
The FB and Twitter icons still don't show for me.  Not sure why?
Title: Re: [ADDON] Social Links
Post by: Spuds on May 29, 2017, 07:59:55 am
When I go to the website in your profile, I see those icons ... is it another site, if not what browser?
Title: Re: [ADDON] Social Links
Post by: badmonkey on May 29, 2017, 05:27:47 pm
Goodness!  You're right!  They show in Edge (don't tell anyone I used that lol).  Twitter and FB aren't showing in the latest FF.  Interestingly enough, they work in Android mobile FF. 
Title: Re: [ADDON] Social Links
Post by: Spuds on May 29, 2017, 07:05:06 pm
I'll take a look in Fx and see what I see  :)
Title: Re: [ADDON] Social Links
Post by: Frenzie on May 30, 2017, 04:34:16 am
The icons look fine for me in Firefox 53 on Xubuntu 17.04.
Title: Re: [ADDON] Social Links
Post by: Spuds on May 30, 2017, 11:21:35 am
Wonder if its being blocked by some ad blocker?
Title: Re: [ADDON] Social Links
Post by: badmonkey on May 30, 2017, 11:30:17 am
Quote from: Spuds – Wonder if its being blocked by some ad blocker?

Had the same thought.  Using a different machine (at the office), same result.  The only FF add ons are:

ADB Helper
ColorZilla
Web Developer
Title: Re: [ADDON] Social Links
Post by: Spuds on May 30, 2017, 12:27:40 pm
Just tied Fx 53 on Windows 10 and I see them just fine .... The mystery continues !
Title: Re: [ADDON] Social Links
Post by: Frenzie on May 30, 2017, 02:25:28 pm
Not all of 'em show up in Netsurf, but its SVG support is oddly bad. See, e.g., what it does with http://fransdejonge.com/2016/08/le-champignon-qui-sest-retire-du-monde/

Yeah, that's not really relevant to the issue at hand. Those icons show up fine in all of my browsers and browser engines, real Opera included. ;)
Title: Re: [ADDON] Social Links
Post by: Spuds on November 26, 2017, 05:36:25 pm
Updated package to support ElkArte 1.1