share gallery picture with facebook?

Phoca Gallery - image gallery extension
sumanguj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 08 Jun 2010, 19:39

share gallery picture with facebook?

Post by sumanguj »

is this possible to share individual pictures with facebook? Please check the demo if you fail to understand.

check the demo here for jwallpapers which has "Share on facebook": http://jwallpapers.wextend.com/editors- ... h-columbia
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48704
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: share gallery picture with facebook?

Post by Jan »

Hi, just use any Joomla! plugin or module which add the facebook icon on your site, you can display it everywhere, see e.g.:


https://www.phoca.cz/documents/2-phoca-g ... ca-gallery

at the bottom, you can see: share (facebook), buzz, tweet icons, such were added by module and can be displayed on detail site of an image too (e.g. if no popup is used)

Jan
If you find Phoca extensions useful, please support the project
NielsK
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 12 Jul 2013, 15:46

Re: share gallery picture with facebook?

Post by NielsK »

Hi,
i really searched for a whole time now, but i did not found, which module position i have to chose for the facebook module so that i can share a single picture from the detail view on facebook. Or where i can create a module position for that.
Please let me know how i could do.
Thanks and best regards
Niels
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48704
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: share gallery picture with facebook?

Post by Jan »

Hi, if you will use module, and such module does not have filter for view (e.g. in phoca gallery view=detail) then it needs to be customized, so you add some php code to the plugin:

e.g.:

Code: Select all

$component = JRequest::getWord('option');
$view = JRequest::getWord('view');
if ($component == 'com_phocagallery' && $view = 'detail') {

} else {
    return true;// the plugin will be not translated
}
(I didn't test this code, so it can include errors - needs to be tested.)

Jan
If you find Phoca extensions useful, please support the project
Post Reply