Page 2 of 3
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 22 Sep 2010, 15:27
by domfitty
Internet Explorer 8. All OK with Firefox
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 22 Sep 2010, 21:00
by Jan
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 22 Sep 2010, 21:46
by domfitty
Thanks for the new features
Edited by Jan:
https://www.phoca.cz/download/category/1 ... -component
Download link doesn't work for me

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]
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 22 Sep 2010, 23:28
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
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 30 Sep 2010, 11:30
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
I was thinking about a joomla plugin with some parameters that everyone can enable or disable

Re: ADD to Facebook Button for Phoca Gallery?
Posted: 04 Feb 2011, 00:09
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.
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 05 Feb 2011, 19:31
by Jan
Hi, added into feature request list. For now you can use Phoca Gallery Facebook Comments where the button is included.
Jan
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 09 Feb 2011, 18:07
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.
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 13 Feb 2011, 16:05
by Jan
Hi, sorry I don't understand:
change button add comment Facebook in image to share button
Jan
Re: ADD to Facebook Button for Phoca Gallery?
Posted: 04 Jun 2011, 23:48
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>