Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-07-11 22:29:24

PatrickMonagin
New Member
Registered: 2017-07-08
Posts: 2

Pangolin Share Menu

Is there a switch to enable/disable the share menu? Also is there a way to customize it (i.e. add a button to share on Google+ etc)

Offline

#2 2017-07-11 22:38:00

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

To disable the social profiles button, remove clear out all the social media fields in the Social Media section.

If you need more than four, you can add additional buttons via phplugins http://backlight.theturninggate.net/doc … _phplugins


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2017-07-11 22:52:10

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Pangolin Share Menu

I think maybe he means the image share menu when presentation type is slideshow? I don't see a php hook for that.

Offline

#4 2017-07-11 22:52:59

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

In fact, the phplugins code is already in place in the phplugins-pangolin-sample.php file included in your Pangolin download. There's even code for the Google+ icon.
Look under backlight/custom/phplugins. It's the last sample function. All you'll need to do is choose the appropriate function to place new icons where you want it to appear (before or after existing links) and add your social profile link.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2017-07-11 22:55:44

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

You're probably right Charlie..

there are the ttg_single_top and ttg_single_bottom hooks if using the single html presentation


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2017-07-11 23:01:07

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Pangolin Share Menu

I use those hooks, but on the slideshow there are already some social media share buttons unlike the single image and I wonder if he wants to change those. Just a guess, though.

Offline

#7 2017-07-11 23:04:47

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

I don't see any way to add/edit/disable the Fancybox sharing icons.
And probably no way to hook into them since it's a third-party application.

Might be nice to have something in the template settings or Backlight Settings to choose the social sharing sites we want to use. Or if we want to use them.

Probably easier said than done...


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2017-07-11 23:12:31

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Pangolin Share Menu

I agree easier said than done. There are so many social sites and their sharing syntax is all different, whereas the follow syntax is just a link to the site with your 'userid'.

Offline

#9 2017-09-12 01:51:21

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

Hi,
Im new to TTG/Backlight. Can you write me how to add photo sharing options e.g. on facebook?
Of course if it's possible for Backlight and Cart.

Thanks
Robert

Offline

#10 2017-09-12 02:21:39

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

This depends on the Photo Presentation you're using in your template,
If using the Slideshow presentation, then when you look at the large images in the album, click on the photo icon in the upper right. A vertical bar will appear with sharing options that include Facebook, Pinterest, and Twitter, along with permalink, and map icons, and a download icon if downloads are enabled.
These icons are there by default. No set up needed.
See Matt's Demo here: http://theturninggate.net/galleries/01- … ssic-grid/ and click on any of the images to get to a large image.

The Single Image presentation option doesn't have social sharing icons


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2017-09-12 02:25:47

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Pangolin Share Menu

Using cuson css and phplugins you can add sharing to single image pages, there is an example here: http://community.theturninggate.net/vie … hp?id=7849

Offline

#12 2017-09-12 03:23:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

That's such a good tip that I've made it sticky and changed the title to reflect the usage for adding social sharing to Single Image pages.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2017-09-12 03:28:42

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Pangolin Share Menu

Nice.

Offline

#14 2017-09-12 06:39:31

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

Thanks for your answers. I'll try with this code...
In my gallery i only have two icons
icons.png

Last edited by Routlaw (2017-09-12 06:41:15)

Offline

#15 2017-09-12 06:42:39

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pangolin Share Menu

they should be there. can you post the url to that album?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#16 2017-09-12 15:24:53

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

I think i can...
http://www.robertwroblewski.com/klient/ada-jason
user: tls
pass: 35

By the way, this Charlie's code with socialmedia sharing should be pasted in...?
/backlight/modules/pangolin-album/dynamic/view/single.php ?

Last edited by Routlaw (2017-09-12 18:05:22)

Offline

#17 2017-09-12 16:26:03

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Pangolin Share Menu

Password protecting an album automatically disables sharing. There's no sense sharing an image with the public if the public cannot access that image without logging in.


Matt

The Turning Gate, http://theturninggate.net

Offline

#18 2017-09-12 16:31:21

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

There is sense... Gallery is build for my clients. Pictures with them and their wedding guests can be shared by themselfs smile

Offline

#19 2017-09-12 16:48:55

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Pangolin Share Menu

That's not how sharing to Facebook works, though. When something is shared from a website, then you're sharing a URL to that item, not the item itself. Which is to say, sharing an image from a gallery is NOT the same as uploading that image directly to your Facebook wall.

And so, if the URL of the item being shared is inaccessible by public visitation, then there is no use in sharing that item. Otherwise, anyone clicking the shared item would be presented with the login screen, for which they do not have credentials.


Matt

The Turning Gate, http://theturninggate.net

Offline

#20 2017-09-12 16:49:14

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Pangolin Share Menu

Routlaw wrote:

There is sense... Gallery is build for my clients. Pictures with them and their wedding guests can be shared by themselfs smile

In this case, you might just hide the album. This way, the guests need the direct link to the gallery and other visitors will not see it.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#21 2017-09-12 17:13:18

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

What about all the business cards with link to "client zone" that i gave guests in last 3 years? wink
Sorry, I cant change the way i work to fit Blacklight wink
I hope Charlie's code will work http://community.theturninggate.net/vie … hp?id=7849
But i need to know in which file should i paste it tongue

Offline

#22 2017-09-12 17:24:32

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Pangolin Share Menu

Neither can we change the way that sharing works on Facebook. Charlie's code will amount to the same; you're sharing a page URL to Facebook, and that share will link back to the source page. Again, this is not the same as uploading an image directly to your wall, which is the behavior you are seemingly expecting.

This is not a limitation native to Backlight; it's a limitation native to Facebook.

If you want to share something from a webpage, then that Share, as it appears on Facebook, will link back to its source. That source should therefore be publicly accessible, else anyone clicking the shared item will find themselves stuck on a login screen for which they have no access.

Share buttons cannot post raw images to a user's wall/feed, and so you will not get the same behavior viewing a shared image as you would when viewing an image uploaded directly to a Facebook wall or album.


Matt

The Turning Gate, http://theturninggate.net

Offline

#23 2017-09-12 17:58:48

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

I missed your previous post Matthew. I understand it. I have to figure out different way... Thanks

Offline

#24 2017-09-12 18:04:49

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Pangolin Share Menu

But... smile
If share on facebook button would use link to direct jpg url it would work...
This is picture from password protected album http://www.robertwroblewski.com/klient/ … J_0195.jpg

Offline

#25 2017-09-12 21:32:05

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Pangolin Share Menu

To share the link to the .jpg on facebook instead of the link to the page you would change '.$actual_link.' to '.$imgfullpath.' in my example. When they click on the image in FB, though, it will still take them back to the image in your gallery.

You would not want to put the code in any of backlight modules themselves though as that would cause you version control problems down the road, you would want to activate phpplugins and put the code in either the ttg_single_top or ttg_single_bottom hooks.

Last edited by charlie.choc (2017-09-12 22:27:07)

Offline

Board footer

Powered by FluxBB