Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 3 4 [5] 6   Go Down

Author Topic: Social Sharing Plugin (Facebook Like/FB Share/FB Comments/Twitter/VZ zeigen)  (Read 155400 times)

0 Members and 1 Guest are viewing this topic.

Sonya54

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45

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 :)
Logged

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary

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:
Code: [Select]
.  '<a name="fb_share" type="'.$CONFIG['plugin_social-sharing_fbshare_type'].'" share_url="'
replace with this:
Code: [Select]
.  '<a name="fb_share" class="fb-share-button fb_iframe_widget" data-type="button_count" fb-xfbml-state="rendered" share_url="'
« Last Edit: April 23, 2013, 11:02:17 am by mykee »
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

skyone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 75

Thank you so much for this plugin :-*
Logged

André Müller

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 26

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)
Logged

André Müller

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 26

Hi all,

I finally found a solution to disallow a single category and allow all the others. The expression
Code: [Select]
/^(?:[^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é
Logged

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary

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.
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Lunado

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11

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
Logged

oasisrain

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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
(http://www.oasis-ultimate.com/galleryfb.png)

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



Logged

oasisrain

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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
(http://www.oasis-ultimate.com/galleryfb.png)

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.
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31

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.
Logged

netb

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 82

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
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31

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?
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31

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 :) :)
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31
Re: Social Sharing Plugin (Facebook Like/FB Share/FB Comments/Twitter/VZ zeigen)
« Reply #93 on: September 25, 2015, 10:48:00 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?
Logged

wazzaworld

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

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.

Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31
Re: Social Sharing Plugin (Facebook Like/FB Share/FB Comments/Twitter/VZ zeigen)
« Reply #95 on: September 24, 2016, 01:27:01 am »

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?
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31

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?
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31

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.
Logged

dimangelid

  • Coppermine novice
  • *
  • Country: gr
  • Offline Offline
  • Gender: Male
  • Posts: 31

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
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026

Change all mysqli_ in the plugin to cpg_db_
Logged
Pages: 1 2 3 4 [5] 6   Go Up
 

Page created in 0.04 seconds with 20 queries.