Facebook sharer for cpg1.5.x - Page 4 Facebook sharer for cpg1.5.x - Page 4
 

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

Facebook sharer for cpg1.5.x

Started by papukaija, June 27, 2010, 02:43:04 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

papukaija

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.

papukaija

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)

Mikaelft

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

TeknoSounds

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

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 !


papukaija

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.

maanu

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

prokop

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

papukaija

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

jmcreis

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

Russ_

This installed fine. Thank you.

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

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

Russ_

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

papukaija

Quote from: jmcreis on December 03, 2011, 02:34:47 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!

jmcreis

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.

papukaija

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

<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
$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).

ninoo

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


ninoo

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

altenae

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

papukaija

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

altenae

Sorry I forgot

www.wildlife-photos.net
www.planepix.nl
www.aviationpix.nl