ADD to Facebook Button for Phoca Gallery?

Phoca Gallery - image gallery extension
domfitty
Phoca Member
Phoca Member
Posts: 10
Joined: 21 Sep 2010, 09:44

Re: ADD to Facebook Button for Phoca Gallery?

Post by domfitty »

Internet Explorer 8. All OK with Firefox
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ADD to Facebook Button for Phoca Gallery?

Post by Jan »

Hmm, I see this one in my IE8:

Image



For other users reading this topic:

Phoca Gallery and Facebook comments (news):
https://www.phoca.cz/news/30-phoca-news/ ... 5-released

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

Demo:
https://www.phoca.cz/demo/facebook-comments
If you find Phoca extensions useful, please support the project
domfitty
Phoca Member
Phoca Member
Posts: 10
Joined: 21 Sep 2010, 09:44

Re: ADD to Facebook Button for Phoca Gallery?

Post by domfitty »

Thanks for the new features :D :D :D

Edited by Jan:
https://www.phoca.cz/download/category/1 ... -component

Download link doesn't work for me :idea: It is correct?

Edit:

I use facebook integration also in other section of my website so I added in the joomla template files the facebook java sdk code

Code: Select all

<div id="fb-root" class=" fb_reset"><script type="text/javascript" src="http://connect.facebook.net/en_US/all.js" async=""></script><div style="position: absolute; top: -10000px; height: 0pt; width: 0pt;"></div></div>
It's useful to add an option in gallery's backend to disable this additional code.[/color]
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ADD to Facebook Button for Phoca Gallery?

Post by Jan »

Hi, there was some problem on joomlacode.org - it should be ok now:
https://www.phoca.cz/download/category/1 ... -component

I think adding some if clause will help:

e.g.
if ($option != 'com_phocagallery) {
then load the framework
}


Jan
If you find Phoca extensions useful, please support the project
domfitty
Phoca Member
Phoca Member
Posts: 10
Joined: 21 Sep 2010, 09:44

Re: ADD to Facebook Button for Phoca Gallery?

Post by domfitty »

Code: Select all

http://connect.facebook.net/[b]en_US[/b]/all.js
There's a localization string in the SDK code...

A backend customization will be usefull :idea:

I was thinking about a joomla plugin with some parameters that everyone can enable or disable :lol:
hopekiah
Phoca Member
Phoca Member
Posts: 38
Joined: 05 Apr 2010, 19:19
Location: Santa Fe, NM
Contact:

Re: ADD to Facebook Button for Phoca Gallery?

Post by hopekiah »

Adding a Facebook LIKE plugin would be great. I like the Nurte Facebook LIKE plugin:
http://extensions.joomla.org/extensions ... lish/14004

It would be great if we could use the {fblike} code in a PhocaGallery description. It tried it but it doesn't work. I wonder if that's because it only works in regular articles that are in categories.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ADD to Facebook Button for Phoca Gallery?

Post by Jan »

Hi, added into feature request list. For now you can use Phoca Gallery Facebook Comments where the button is included.

Jan
If you find Phoca extensions useful, please support the project
godsilken
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 09 Feb 2011, 17:59

Re: ADD to Facebook Button for Phoca Gallery?

Post by godsilken »

Hi.

I try to change button add comment Facebook in image to share button. Because I whant share image by image.
I test to change this code :

Code: Select all

<fb:comments xid="<?php echo $xid ?>" simple="1" width="<?php echo (int)$this->tmpl['fb_comment_width'] ?>"></fb:comments>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
   FB.init({
     appId: '<?php echo $this->tmpl['fb_comment_app_id'] ?>',
     status: true,
	 cookie: true,
     xfbml: true
   });
 }; 
To

Code: Select all

<fb:share-button xid="<?php echo $xid ?>" simple="1" width="<?php echo (int)$this->tmpl['fb_comment_width'] ?>"></fb:share-button>
   <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({
          appId  : '<?php echo $this->tmpl['fb_comment_app_id'] ?>', 
          status : true, // check login status
          cookie : true, // enable cookies to allow the server to access the session
          xfbml  : true  // parse XFBML
        });
      };
Can you help me.

Sorry for my english, but I am french.

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ADD to Facebook Button for Phoca Gallery?

Post by Jan »

Hi, sorry I don't understand:
change button add comment Facebook in image to share button
Jan
If you find Phoca extensions useful, please support the project
tanoli
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Jun 2011, 22:14

Re: ADD to Facebook Button for Phoca Gallery?

Post by tanoli »

If you want to add the "share on facebook, twitter and buzz" buttons on your gallery, you need to in follow the steps mentioned below:

Go to
yourdomain.com/components/com_phocagallery/views/category/tmpl

open the file "default_categories.php"
and find <div class="phoca-hr"> using ctrl+f

and add the following code after this.

<table width="100%"><tr>
<td width="70%"style="background-image: url('images/date_bg.png'); background-repeat: no-repeat;padding-left:25px"width="150"height="25"><b>Dated: 2011-06-05</td>
<td width="30%"align="right"><a name="fb_share" type="none" href="http://www.facebook.com/sharer.php">share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></td>
<td align="right"width="10%"><a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-button"></a>
<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></td>
<td align="left"width="10%"><a href="http://twitter.com/share" class="twitter-share-button" data-text="Latest News at Hazara.com.pk" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td>
</tr></table>
Post Reply