Hello,
I've installed the commuinity module Modules:share. Now I want to make possible to share each photo of each of my albums in Facebook.
I get in SharBlock.tpl:
<a href="http://www.facebook.com/share.php?u=<url>" class="fb_share_button" onclick="return fbs_click()" target="_blank" style="text-decoration:none;">{g->text text="Share"}</a>
I would like to kno how I have to correct "http://www.facebook.com/share.php?u=<url>" so that just the photo where the icon of FB appear, is imported.
Anyway, is there a method to add this fature to any photo of any gallery avoiding to go in each albut for to set the block 'share'?
Thank all,
rocsca
Posts: 16504
What pages did you add the block to? See Site Admin > Themes > YourTheme > did you add the Link Share button to the photo pages?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 75
I have added the Block share the photo page of an album. And the fb button has appeared on every photo page of the album. I would like that this happens for every album that I've loaded without have to go to change the settings (i.e.: adding the share block) to every album.
When I click on fb button appearing inside a photo page of that album, any image inside the page is added, instead of just the image of the album that I'm browsing.
I have thought that this happens because I have to specify the URL of the photo instead of simply '<url>'? But what is it the URL of the current photo?
Thanks,
rocsca
Posts: 75
Any answer?
Thanks,
rocsca
Posts: 16504
If you change the setting under Site Admin > Themes > YourTheme that's site-wide versus album by album.
The other option is to change it under your main page and that should cascade down to all sub-albums.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 75
OK. Thank you nivekiam.
But I haven't solved the main problem. Please take a look at one of my album in my gallery, for example:
http://www.rocsca.it/gallery2/v/guest/genova/
If you look at the link on the button 'Share' you see that it is valued as:
http://www.facebook.com/share.php?u=<url>
Indeed, I wound like that it is valued as:
http://www.facebook.com/share.php?u='http://www.rocsca.it/gallery2/guest.php?g2_itemId=11543&&g2_GALLERYSID=960c769bae84d3b18a934940c3a66c45'
Is it possible? How I have to do? Please note that the link is not static, but have to change as photo changes..
Moreover, I would like to put this button just before of the button 'I like' just below the photo.
Finally, I would like that the 'I like' button refers also (just as the link 'Share' to the current page or photo) just because it refers statically at:
<fb:like ref="Home_Tempo_Libero">
<iframe src="http://www.facebook.com/widgets/like.php?locale=it_IT&href=http%3A%2F%2Fwww.rocsca.it%2Findex.html%23Tempo"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:20px; padding:0px 0px 0px 0px;"></iframe>
Thank you very much,
rocsca
Posts: 75
Any suggestion?
Thanks,
rocsca
Posts: 16504
If you want an answer now, here's mine.
It's probably possible, you'd probably need to dump the Share plugin and edit your template to have the necessary code. You can use the Smarty Debug popup window to view variables.
FAQ: How to set/use Gallery in debug mode?
If you'd like more help it's going to take me awhile to find a bit of time to dig into this.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 75
Thanks nivekiam...
my fear was that the trouble that I need to solve was not well understood..
Anyway, I will try to debug my custom template along the share plugin.. But, anyway, as soon as you can come to my help..
Thanks,
rocsca
Posts: 75
Hello nivekiam.
I really can't succeed in solve thr problems above. I turned G2 in debug mode and try to browse one of my album. I get a very verbose Smarty output but I can't find anything that let to think an error.
You can take a look at:
http://www.rocsca.it/debug.html
Moreover, I report a text file that has appeared while I have browse the album in debug mode, at the bottom of the page:
http://www.rocsca.it/debug.txt
Hoping that you can find there good info to point me on how to solve the issues above..
Thanks,
rocsca
Posts: 75
Hello,
I have solved using a different approach:
1) I have disinstalled module Modules:share
2) I went on AddThis web site and create the code for my sharing bar.
3) I have customized so the bar code:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook_like" fb:like:layout="button_count" addthis:url="{g->theme arg1="itemId=`$theme.item.id`"}" addthis:title="<snip..> {$theme.item.title|markup:strip|default:$theme.item.pathComponent}"></a>
<a class="addthis_button_tweet" addthis:url="{g->theme arg1="itemId=`$theme.item.id`"}" addthis:title="<snip..> {$theme.item.title|markup:strip|default:$theme.item.pathComponent}"></a>
<a class="addthis_counter addthis_pill_style" addthis:url="{g->theme arg1="itemId=`$theme.item.id`"}" addthis:title="<snip..> {$theme.item.title|markup:strip|default:$theme.item.pathComponent}"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=<assigned username>"></script>
<!-- AddThis Button END -->
4) Finally, I have pasted it in the album.tpl of the themes that I'm interested.
Hope that this can help someone...
PS: Indeed, the buttons as defined above point at (i.e.: share, like, twit and so on) the entire album not just a photo of the album. But it was a little bit hard to point to a single phot within my customized album. In other cusomization, anyway, it shouldn't be hard to 'point at' a single photo of an album for each of the buttons above.
Thanks all,
rocsca