Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-12-08 18:08:42

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#2 2013-12-08 18:09:45

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#3 2013-12-22 13:45:17

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#4 2014-01-13 22:50:20

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_social_share - A Social Bookmarking Plugin

I’ve added support for Pinterest, Pocket and Tumblr.

Offline

#5 2014-01-18 12:59:22

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#6 2014-07-31 20:06:54

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#7 2015-03-26 18:27:34

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#9 2015-08-17 16:31:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#10 2015-08-17 19:09:42

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

Board footer

Powered by FluxBB