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   Go Down

Author Topic: Facebook sharer for cpg1.5.x  (Read 76328 times)

0 Members and 2 Guests are viewing this topic.

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #60 on: January 26, 2011, 04:38:51 pm »

If you are using the latest version of this plugin (v.1.6), then it means that DISPLAYIMAGE_PHP is also defined somewhere else than in displayimage.php.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #61 on: January 31, 2011, 07:11:03 pm »

A new version of this plugin has been added to the initial post.

Changes in version 1.7:
- Fixed compatibility issue with other plugins
- Fixed the detection of displayimage.php's being loaded (fix in 1.6. didn't work as excepted)
Logged

Mikaelft

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: Facebook sharer for cpg1.5.x
« Reply #62 on: February 13, 2011, 08:00:09 pm »

Is there a way to change the button to another language?
Logged

TeknoSounds

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 83
    • TeknoSounds
Re: Facebook sharer for cpg1.5.x
« Reply #63 on: February 14, 2011, 03:24:28 am »

The text of the button is in the file (codebase).  Change the text to whatever you wish, it works like a normal <a link text.

maanu

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Facebook sharer for cpg1.5.x
« Reply #64 on: March 22, 2011, 11:41:05 am »

hi together ...

i have a problem ...

http://www.usv2.li/gallerie/

Plugin: Facebook sharer (facebook): v1.7

if i click the Facebook share button: the thumbnail does not show and there comes following post at facebook:
Login - Your gallery name here
http://www.usv2.li/gallerie/displayimage...

i have named the gallerie in the admin session
must i change the displayimage.. but i have no clue what i have to change ... :-(

thanks a lot for your help !

Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #65 on: March 22, 2011, 09:38:37 pm »

I can't reproduce your issue. The gallery name and the thumbnail are both shown correctly in FB. What browser are you using? Try to empty your browser's cache too. There's nothing to change for displayimage.php; the gallery name in your gallery's settings is the only thing to change.
Logged

maanu

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Facebook sharer for cpg1.5.x
« Reply #66 on: March 23, 2011, 12:34:33 am »

mmh... i have broken my brain about that problem !

now it works ! maybe it was a temporary file problem on IE and Mozzilla !

sorry for waste your time!  i works now perfekt!  .... so now i try the "thumbs up" bottom ! :-)

greetz from Liechtenstein!
Maanu
Logged

prokop

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Facebook sharer for cpg1.5.x
« Reply #67 on: March 23, 2011, 03:59:59 am »

Hi  papukaija

Excellent work, thank you very much for the dev work on the sharer.
My question is: is there any way I can use your plug to share albums instead of individual pics ?

my gally using your plug: http://www.prokop.dk/gallery/index.php
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #68 on: March 23, 2011, 12:18:49 pm »

Unfortunately that's not (yet?) possible. I'll look if it can be added to the plugin.
Logged

jmcreis

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: Facebook sharer for cpg1.5.x
« Reply #69 on: December 03, 2011, 02:34:47 pm »

Hi  papukaija

I use your plugin (version 1.7) in my site (http://www.fotopointpt.com)

However I have some problems.

Letīs see:

It displays in Facebook a thumbnail, a kind of title and a link to the site.

In what I call "title" we can see the same that we read at the top of the browser, like this:

"Last additions - Photo name - Site name" (if your share from main page)
or
"Album name - Photo name - Site name" (if you share from displayimage page)

But if you go to the displayimage page coming from the user profile we see in our browser:

Last additions - User name - Name of the Photo - Site name

OMG Just what I wanted !!!!

But I got a error when sharing !!! Just like "Error - Site name" :)
Logged

Russ_

  • Coppermine regular visitor
  • **
  • Country: nz
  • Offline Offline
  • Posts: 57
Re: Facebook sharer for cpg1.5.x
« Reply #70 on: December 08, 2011, 01:07:25 am »

This installed fine. Thank you.

Is Google Bookmarks different from Google+ ? (Never used either)

http://www.chainsawphotos.co.nz/gallery/index.php

Russ_

  • Coppermine regular visitor
  • **
  • Country: nz
  • Offline Offline
  • Posts: 57
Re: Facebook sharer for cpg1.5.x
« Reply #71 on: December 08, 2011, 01:16:43 am »

oops, delete above and this one, wrong thread, sorry.

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #72 on: December 09, 2011, 04:53:28 pm »

But if you go to the displayimage page coming from the user profile we see in our browser:

Last additions - User name - Name of the Photo - Site name

OMG Just what I wanted !!!!

But I got a error when sharing !!! Just like "Error - Site name" :)
That error message occurs only if javascript is enabled which means that the bug is in FB's code. The share button isn't supported anymore by FB so they won't fix the bug.

If you need that feature on last additions by a user pages, then I suggest you to remove the javascript from line 33 of codebase.php.

You should upgrade your gallery asap!
Logged

jmcreis

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: Facebook sharer for cpg1.5.x
« Reply #73 on: December 09, 2011, 07:04:41 pm »

Hi papukaija
Thanks very much for your help
I removed the javascript and it works quite well.
Now, from the main page I got "User name - Name of the Photo - Site name"
But I lost the FB image. I have only the word "Share" below the pic. How can I put the image there again? Please.

Btw Thanks also for your advise on the upgrade of the gallery. It is just done.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #74 on: December 18, 2011, 11:15:52 pm »

Sorry for the delay but I've been very busy during this week. The FB image is actually part of a file with multiple FB logos, the correct one is shown with css. You can try to hotlink to the css and image files by replacing line 33 of codebase.php with

Code: [Select]
<a type="button" href="http://www.facebook.com/sharer.php?u={$CONFIG['site_url']}displayimage.php?pid={$CURRENT_PIC_DATA['pid']}&t={$picture_title}" class="FBConnectButton">Share</a>
and line 52 with
Code: [Select]
$header = '<link rel="stylesheet" type="text/css" href="http://static.ak.fbcdn.net/connect.php/css/share-button-css" /><link rel="image_src" href="'.$CONFIG['ecards_more_pic_target'].get_pic_url($row, 'thumb').'" />';
I haven't tried the above code so it may not work, look horrible or just work. The css file lists all the sizes available of the logo and then just adapt the css class for the link.

You can also try to use one of the alternative Facebook images in the original plugin package written for cpg1.4.x (there's a link to that in the first message of this topic).
Logged

ninoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Facebook sharer for cpg1.5.x
« Reply #75 on: January 29, 2012, 12:09:57 am »

hello
I followed your advice but when I share photos and text content are wrong
Practically shared the link works but the miniature and the text no
How can I fix this?
thanks

Logged

ninoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Facebook sharer for cpg1.5.x
« Reply #76 on: January 29, 2012, 12:00:06 pm »

OK solved.
The problem that the photos could not be seen by registered users.
I made this change:
1) Configuration
2) Allow access to users not logged in (visitors or unknown)
3) Yes: Thumbnails and intermediate images

hello
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Facebook sharer for cpg1.5.x
« Reply #77 on: July 18, 2012, 06:20:52 pm »

It seems the FACEBOOK SHARE icon is gone !!!
Only the text "Share" is visible.

I have this issue on all websites where I use this plugin.

Any thoughts ??

Edward
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Facebook sharer for cpg1.5.x
« Reply #78 on: July 18, 2012, 06:43:03 pm »

Please post a link to your gallery as required by board rules. Thanks.
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Facebook sharer for cpg1.5.x
« Reply #79 on: July 18, 2012, 06:48:31 pm »

Logged
Pages: 1 2 3 [4] 5   Go Up
 

Page created in 0.033 seconds with 20 queries.