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.
You are not logged in.
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
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
I think maybe he means the image share menu when presentation type is slideshow? I don't see a php hook for that.
Charlie
www.stalkinglight.com
Offline
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
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
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.
Charlie
www.stalkinglight.com
Offline
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
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'.
Charlie
www.stalkinglight.com
Offline
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
Robert
www.robertwroblewski.com
Offline
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
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
Charlie
www.stalkinglight.com
Offline
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
Offline
Thanks for your answers. I'll try with this code...
In my gallery i only have two icons
Last edited by Routlaw (2017-09-12 06:41:15)
Robert
www.robertwroblewski.com
Offline
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
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)
Robert
www.robertwroblewski.com
Offline
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.
Offline
There is sense... Gallery is build for my clients. Pictures with them and their wedding guests can be shared by themselfs
Robert
www.robertwroblewski.com
Offline
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.
Offline
There is sense... Gallery is build for my clients. Pictures with them and their wedding guests can be shared by themselfs
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
What about all the business cards with link to "client zone" that i gave guests in last 3 years?
Sorry, I cant change the way i work to fit Blacklight
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
Robert
www.robertwroblewski.com
Offline
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.
Offline
I missed your previous post Matthew. I understand it. I have to figure out different way... Thanks
Robert
www.robertwroblewski.com
Offline
But...
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
Robert
www.robertwroblewski.com
Offline
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)
Charlie
www.stalkinglight.com
Offline