Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
arc_social_share - A Social Bookmarking Plugin
Current version: v1.4.0
A simple Textpattern plugin for easily adding links to share pages on various social media sites. These include Facebook, Google+, LinkedIn and Twitter, as well as Delicious, Reddit and StumbleUpon.
Full documentation and download link
Last edited by monkeyninja (2016-01-25 22:10:32)
Offline
Re: arc_social_share - A Social Bookmarking Plugin
This is a no thrills plugin. See the plugin announcement on my blog for further information.
Offline
Re: arc_social_share - A Social Bookmarking Plugin
I’m always happy to do everything I need with tags…
It seems to be very simple and easily customizable, I’ll test it soon!
Thx!
Edit: Do you think to add more networks, like Pinterest and Tumblr?
…Edit#4: I’m not a coder but this seems to work for Pinterest and Tumblr.
It gets the article image and its caption. You can override the default settings with the ‘image’ attribute.
Feel free to use and/or correct it!
function arc_social_share_pinterest($atts, $thing=null)
{
global $thisarticle;
extract(lAtts(array(
'class' => '',
'image' => null,
'url' => null
), $atts));
$thing = ($thing===null) ? 'Share on Pinterest' : parse($thing);
$url = $url===null && !empty($thisarticle['thisid']) ? urlencode(permlinkurl_id($thisarticle['thisid'])) : $url;
$image = $image===null && !empty($thisarticle['article_image']) ? ($thisarticle['article_image']) : $image;
$thisimage = imageFetchInfo('id = '.intval($image));
$media = urlencode(imagesrcurl($thisimage['id'], $thisimage['ext']));
$desc = ($thisimage['caption']);
$html = href($thing, "http://www.pinterest.com/pin/create/button?url=$url&media=$media&description=$desc", ' data-pin-do="buttonBookmark"'
, ' class="'.$class.'"');
return $html;
}
function arc_social_share_tumblr($atts, $thing=null)
{
global $thisarticle;
extract(lAtts(array(
'class' => '',
'image' => null,
'url' => null
), $atts));
$thing = ($thing===null) ? 'Share on Tumblr' : parse($thing);
$url = $url===null && !empty($thisarticle['thisid']) ? urlencode(permlinkurl_id($thisarticle['thisid'])) : $url;
$image = $image===null && !empty($thisarticle['article_image']) ? ($thisarticle['article_image']) : $image;
$thisimage = imageFetchInfo('id = '.intval($image));
$source = urlencode(imagesrcurl($thisimage['id'], $thisimage['ext']));
$caption = ($thisimage['caption']);
$html = href($thing, "http://www.tumblr.com/share/photo?source=$source&caption=$caption"
, ' class="'.$class.'"');
return $html;
}
Last edited by NicolasGraph (2014-01-03 12:52:46)
Offline
Re: arc_social_share - A Social Bookmarking Plugin
I’ve added support for Pinterest, Pocket and Tumblr.
Offline
Re: arc_social_share - A Social Bookmarking Plugin
v1.2.1 out now, fixes bugs in the previous release and updates the Facebook URL (old one has been deprecated).
Offline
Re: arc_social_share - A Social Bookmarking Plugin
I’ve updated the plugin to v1.3.0 today adding support for Google Analytics’ UTM parameters. More info on my blog
Offline
Re: arc_social_share - A Social Bookmarking Plugin
v1.3.1 released. Fixes bug with arc_social_share_pocket.
Offline
#8 2015-08-17 16:23:44
- riquialon
- Member
- Registered: 2015-08-08
- Posts: 11
Re: arc_social_share - A Social Bookmarking Plugin
Hello friends, my problem is this; I have installed the plugin ARC_SOCIAL_SHARE VERSION 1.3.2 but no pictures are shown after compatir … Look -> http://slacklinevzla.cuccfree.org/tp/ ! ! ! HELP PLEASE ! ! !
Last edited by riquialon (2015-08-17 16:25:14)
Offline
Re: arc_social_share - A Social Bookmarking Plugin
Did you enable the plugin after installing it?
If so, switch the website (via preferences) to debug mode, so we can see what happens underneath when the page is built.
Offline
Re: arc_social_share - A Social Bookmarking Plugin
riquialon wrote #294166:
Hello friends, my problem is this; I have installed the plugin ARC_SOCIAL_SHARE VERSION 1.3.2 but no pictures are shown after compatir … Look -> http://slacklinevzla.cuccfree.org/tp/ ! ! ! HELP PLEASE ! ! !
I don’t understand what you mean by “no pictures are shown”. arc_social_share only generates links to share a URL with the relevant social site. The share links on your page look correct.
If you are referring to the shared link not showing images on the social site (for example on Facebook), then you need to use something like my arc_meta plugin to generate Open Graph markup (using arc_meta_open_graph). arc_meta_open_graph will tell sites like Facebook which image is associated with the URL.
Last edited by monkeyninja (2015-08-17 19:10:34)
Offline
#11 2015-08-17 20:00:29
- riquialon
- Member
- Registered: 2015-08-08
- Posts: 11
Re: arc_social_share - A Social Bookmarking Plugin
monkeyninja wrote #294171:
I don’t understand what you mean by “no pictures are shown”. arc_social_share only generates links to share a URL with the relevant social site. The share links on your page look correct.
If you are referring to the shared link not showing images on the social site (for example on Facebook), then you need to use something like my arc_meta plugin to generate Open Graph markup (using arc_meta_open_graph). arc_meta_open_graph will tell sites like Facebook which image is associated with the URL.
Andy exact finally understand me what I meant, I’ll take your recoendacion arc_meta plugin installed, I hope to work;) … Many thanks and greetings from Venezuela brother
Offline
#12 2015-08-17 20:02:51
- riquialon
- Member
- Registered: 2015-08-08
- Posts: 11
Re: arc_social_share - A Social Bookmarking Plugin
ruud wrote #294167:
Did you enable the plugin after installing it?
If so, switch the website (via preferences) to debug mode, so we can see what happens underneath when the page is built.
Thanks for the brother bounding
Offline