Social Sharing Plugin (Facebook Like/FB Share/FB Comments/Twitter/VZ zeigen) - Page 5 Social Sharing Plugin (Facebook Like/FB Share/FB Comments/Twitter/VZ zeigen) - Page 5
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Social Sharing Plugin (Facebook Like/FB Share/FB Comments/Twitter/VZ zeigen)

Started by 1aB, January 26, 2011, 11:23:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sonya54

Hi everyone,

When i share a page with Twitter, there is an automatic text on the small window with the tittle and the link, I would like to add my twitter account, but i don't find where i can change the code, i think it's on codebase.php but i am lost

Somebody can Help me ?

Thanks :)

mykee

Hmmm... Share link doesn't work to me on my page, but like and twitter does.
What's my problem?  :o

Here is my webpage:
http://foto.acegem.hu/displayimage.php?album=lastup&cat=0&pid=1074#top_display_media

And here is a developer documentation to share (?):
https://developers.facebook.com/docs/reference/dialogs/feed/
https://developers.facebook.com/docs/reference/plugins/like/

Share button was dropped on FB? Or need modify this plugin to FBML?
http://stackoverflow.com/questions/11537996/facebook-share-button-is-it-officially-dead


Update: I found a temporary solution!

Open codebase.php and find this:
.  '<a name="fb_share" type="'.$CONFIG['plugin_social-sharing_fbshare_type'].'" share_url="'

replace with this:
.  '<a name="fb_share" class="fb-share-button fb_iframe_widget" data-type="button_count" fb-xfbml-state="rendered" share_url="'
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

skyone


André Müller

Hi Roland,

first of all, great work with that plugin! Runs nicely so far.
I have one question / suggestion regarding the selection of Categories where you want the share buttons to appear. I realised, that if you allow one category, that does not mean that you allowed subcategories as well. Under certain circumstances that might be a nice option if not too hard to implement.
Further, is it possible to disallow certain categories instead of allowing all the others? What if my category names have special characters? Both does not work for me yet.

Any help on this would be very much appreciated!

Cheers,
André

www.fotowald.de (1.5.24)

André Müller

Hi all,

I finally found a solution to disallow a single category and allow all the others. The expression
/^(?:[^P]+|P(?!rivat))*$/
Disallows the category "Privat" but includes all the others. This is exactly what I was looking for. Just in case this is useful for others as well.

Cheers,
André

mykee

I found a bug with Flash Upload: file uploaded, there is in album, but I get an alert window with thumbnail path, and get "Upload failed" message. If disable this plugin, then flash upload is working correctly.

I attached my plugin version and I use 1.5.24 version.
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Lunado

Hello
I have a little problem with this plugin (which is excellent):
I have forbidden comments powered by Disqus, but it is displayed.
Added comment will be displayed after refresh the whole page
Displays an error has occurred, a warning.

http://www.krajinou.sk/cpg/displayimage-14-4686.html#top_display_media
Cpg 1,5,24   last version plugin

oasisrain

Hello, I've gotten most to work, but having a hard time figuring out facebook comment part. Instructions a bit unclear. I already had an app made for my site while back
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.oasis-ultimate.com%2Fgalleryfb.png&hash=29478b34413eb5b17cd04bc9d713de566b1fac62)

Where it is circled red where i'm stuck. I know I don't have the right info in those boxes? the app id and what's in the other one?

Thanks! Really need the help




oasisrain

Quote from: oasisrain on June 29, 2014, 03:07:28 AM
Hello, I've gotten most to work, but having a hard time figuring out facebook comment part. Instructions a bit unclear. I already had an app made for my site while back
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.oasis-ultimate.com%2Fgalleryfb.png&hash=29478b34413eb5b17cd04bc9d713de566b1fac62)

Where it is circled red where i'm stuck. I know I don't have the right info in those boxes? the app id and what's in the other one?

Thanks! Really need the help
Excuse me, but the image link did not work.

dimangelid

I just installed the plugin to my installation (version 1.5.21) and it works ok but i have an annoying problem. When i use Facebook Object Debugger i see that if i share a picture it should look like the first attachment, which is the right and what i want. But if i share that picture on my profile, in a group or in a page it looks like the second attachment. At the third attachment is what Facebook Object Debugger sees about that picture URL. Of course i have tried to share another photo but i have the same result. Thanks for any help.

netb

You could just use something like the AddThis Sharing buttons script and here's how you can mod the gallery theme to have the Open Graph meta tags. http://forum.coppermine-gallery.net/index.php/topic,76929.0.html

dimangelid

Quote from: netb on August 05, 2015, 09:00:06 PM
You could just use something like the AddThis Sharing buttons script and here's how you can mod the gallery theme to have the Open Graph meta tags. http://forum.coppermine-gallery.net/index.php/topic,76929.0.html

I used some information on the thread you suggested and i managed to set the OpenGraph tags for each picture, except it's description (og:description tag) and now when i share the photo at facebook it looks exactly as i want. But because the Social Sharing Plugin is more easy to configure and use, i would like to use that instead of manually modifying the code. Is there any solution?

dimangelid

Quote from: dimangelid on August 09, 2015, 04:45:02 PM
I used some information on the thread you suggested and i managed to set the OpenGraph tags for each picture, except it's description (og:description tag) and now when i share the photo at facebook it looks exactly as i want. But because the Social Sharing Plugin is more easy to configure and use, i would like to use that instead of manually modifying the code. Is there any solution?

I fixed the problem by removing the following line from codebase.php on the plugin's folder:
$socialmeta .= '<meta name="medium" content="image" />'.$newline;

Now the plugin works exactly as i wanted :) :)

dimangelid

Quote from: mykee on January 12, 2014, 05:49:39 PM
I found a bug with Flash Upload: file uploaded, there is in album, but I get an alert window with thumbnail path, and get "Upload failed" message. If disable this plugin, then flash upload is working correctly.

I attached my plugin version and I use 1.5.24 version.

I noticed the same bug as mykee . I have the latest version of the plugin and i'm trying it on three different coppermine versions: 1.5.20 , 1.5.21 , 1.5.38. The Social Sharing Plugin has helped me a lot and i don't want to disable it but i also need the functionality of the Flash Upload . Is there any solution to fix that?

wazzaworld

Hi All,

Has anyone seen an issue in posts to Facebook where the page title contains an apostrophe? I am seeing the post appear with "&039;" instead of the apostrophe.

Example here:
http://www.creativefilm.com/photos/thumbnails.php?album=26

Twitter seems fine with it.

Hope you can help. Thanks.


dimangelid

Quote from: dimangelid on September 25, 2015, 10:48:00 PM
I noticed the same bug as mykee . I have the latest version of the plugin and i'm trying it on three different coppermine versions: 1.5.20 , 1.5.21 , 1.5.38. The Social Sharing Plugin has helped me a lot and i don't want to disable it but i also need the functionality of the Flash Upload . Is there any solution to fix that?

Hello again,
That problem still remains unresolved. Has anyone found a solution? Or another way to provide our members the ability to upload more than one photos at a time?

dimangelid

Hello,

I updated today my gallery to the latest 1.6 version.

Unfortunately the plugin does not work and when i have it activated in my gallery, it throws the following error when clicking to view a photo:

Fatal error: Uncaught Error: Call to undefined function mysql_num_rows() in /home/leofor/public_html/photos/plugins/social_sharing/codebase.php:840 Stack trace: #0 /home/leofor/public_html/photos/include/plugin_api.inc.php(218): social_sharing_metaheaders('') #1 /home/leofor/public_html/photos/include/functions.inc.php(944): CPGPluginAPI::filter('page_meta', '') #2 /home/leofor/public_html/photos/include/init.inc.php(444): load_template() #3 /home/leofor/public_html/photos/displayimage.php(19): require('/home/leofor/pu...') #4 {main} thrown in /home/leofor/public_html/photos/plugins/social_sharing/codebase.php on line 840

Is there a plan to make the plugin compatible for Coppermine 1.6?

dimangelid

Quote from: dimangelid on January 05, 2020, 09:38:16 PM
Hello,

I updated today my gallery to the latest 1.6 version.

Unfortunately the plugin does not work and when i have it activated in my gallery, it throws the following error when clicking to view a photo:

Fatal error: Uncaught Error: Call to undefined function mysql_num_rows() in /home/leofor/public_html/photos/plugins/social_sharing/codebase.php:840 Stack trace: #0 /home/leofor/public_html/photos/include/plugin_api.inc.php(218): social_sharing_metaheaders('') #1 /home/leofor/public_html/photos/include/functions.inc.php(944): CPGPluginAPI::filter('page_meta', '') #2 /home/leofor/public_html/photos/include/init.inc.php(444): load_template() #3 /home/leofor/public_html/photos/displayimage.php(19): require('/home/leofor/pu...') #4 {main} thrown in /home/leofor/public_html/photos/plugins/social_sharing/codebase.php on line 840

Is there a plan to make the plugin compatible for Coppermine 1.6?

At all files under the plugin directory ( /public_html/photos/plugins/social_sharing ) , i changed mysql_ to mysqli_ and the error disappeared. However, at Facebook debugger ( https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fleoforeia.gr%2Fphotos%2Fdisplayimage.php%3Fpid%3D17639 ) it does not fetch any information from my gallery.

dimangelid

Quote from: dimangelid on January 05, 2020, 09:47:47 PM
At all files under the plugin directory ( /public_html/photos/plugins/social_sharing ) , i changed mysql_ to mysqli_ and the error disappeared. However, at Facebook debugger ( https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fleoforeia.gr%2Fphotos%2Fdisplayimage.php%3Fpid%3D17639 ) it does not fetch any information from my gallery.

Note that prior the update, i was using PHP 5.6 and now PHP 7.3

ron4mac