[SOLVED] Modules:share template customization
rocsca
![]()
Joined: 2009-05-12
Posts: 75 |
![]() |
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 |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
rocsca
![]()
Joined: 2009-05-12
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 |
|
rocsca
![]()
Joined: 2009-05-12
Posts: 75 |
![]() |
Any answer? Thanks, rocsca |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Quote:
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. 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. |
|
rocsca
![]()
Joined: 2009-05-12
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"> Thank you very much, rocsca |
|
rocsca
![]()
Joined: 2009-05-12
Posts: 75 |
![]() |
Any suggestion? Thanks, rocsca |
|
nivekiam
![]()
Joined: 2002-12-10
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. If you'd like more help it's going to take me awhile to find a bit of time to dig into this. |
|
rocsca
![]()
Joined: 2009-05-12
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 |
|
rocsca
![]()
Joined: 2009-05-12
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 |
|
rocsca
![]()
Joined: 2009-05-12
Posts: 75 |
![]() |
Hello, I have solved using a different approach: 1) I have disinstalled module Modules:share <!-- AddThis Button BEGIN --> 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 |
|