led-watches.co.uk Posted January 18, 2012 Share Posted January 18, 2012 Hi, With the BlockSocial module v1.0 for the prestashop_new theme adds twitter, facebook and rss links into the footer but they do not open in a new window so how and where can the code this be modified and changed to do this?? The same problem exists for the advertisers block aswell. Also, is it possible to add more links such as Youtube etc...or perhaps this will be an option in v1.5 I have looked at the source code so I guess you could duplicate the code to add more links and just change the image file to suit, Yes?. Thanks if anyone can help 1 Link to comment Share on other sites More sharing options...
potezno Posted July 11, 2012 Share Posted July 11, 2012 Same question here... Link to comment Share on other sites More sharing options...
shacker Posted July 14, 2012 Share Posted July 14, 2012 edit the file blocksocial.tpl of the module blocksocial and add in the links <a href="{$facebook_url}"> this <a href="{$facebook_url}" target="_blank"> 3 Link to comment Share on other sites More sharing options...
Lustfull Posted September 6, 2012 Share Posted September 6, 2012 (edited) when I add my facebook link it ads www.shopname.com before. Where do I change this? /Susanne Edited September 6, 2012 by Lustfull (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted September 7, 2012 Share Posted September 7, 2012 you need to put the url with http http://www.facebook.com/...... Link to comment Share on other sites More sharing options...
JayPro Posted April 30, 2013 Share Posted April 30, 2013 (edited) Was this solved? I'm trying to add a YouTube link as well. I adjusted blocksocial.tpl, blocksocial.php, and img/sprite_pict_social_block.png. It seems to work in the backend, but the front end completely ignores any TPL changes. I'm on PrestaShop 1.5.4.1 with Social Networking Block v1.0 Edited April 30, 2013 by JayPro (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted April 30, 2013 Share Posted April 30, 2013 Can you paste you tpl file, so we can see where is the problem Link to comment Share on other sites More sharing options...
JayPro Posted April 30, 2013 Share Posted April 30, 2013 sure.. From blocksocial.tpl ------------------------- <div id="social_block"> <h4 class="title_block">{l s='Follow us' mod='blocksocial'}</h4> <ul> {if $facebook_url != ''}<li class="facebook"><a href="{$facebook_url|escape:html:'UTF-8'}">{l s='FaceBook' mod='blocksocial'}</a></li>{/if} {if $youtube_url != ''}<li class="youtube"><a href="{$youtube_url|escape:html:'UTF-8'}">{l s='YouTube' mod='blocksocial'}</a></li>{/if} {if $twitter_url != ''}<li class="twitter"><a href="{$twitter_url|escape:html:'UTF-8'}">{l s='Twitter' mod='blocksocial'}</a></li>{/if} {if $rss_url != ''}<li class="rss"><a href="{$rss_url|escape:html:'UTF-8'}">{l s='RSS' mod='blocksocial'}</a></li>{/if} </ul> </div> Link to comment Share on other sites More sharing options...
JayPro Posted April 30, 2013 Share Posted April 30, 2013 I even created a version that completely replaces 'twitter' with 'youtube', so that there is only 3 possible links. it still completely ignores youtube in the front end. Link to comment Share on other sites More sharing options...
yaniv14 Posted April 30, 2013 Share Posted April 30, 2013 About what you said when you replaced youtube with twitter, did you force compile on and cache off in back office? did you clear your browser cache (ctrl + f5 2-3 times)? Do you see the links in the back office module? Check that you don't have a blocksocial.tpl in your 'themes/theme_name/modules' because if you do it will override the one that you have in root/modules Link to comment Share on other sites More sharing options...
JayPro Posted April 30, 2013 Share Posted April 30, 2013 OHhh I see.. I didn't realize there were more modules in the themes folder. got it! Thanks! force compile on, cache off, cleared browser cache, yes i do see links in back office module. I see 'YouTube' in the front end now, but no image icon. I was expecting to see the twitter icon since I didn't change the image, but it's just blank. Link to comment Share on other sites More sharing options...
yaniv14 Posted April 30, 2013 Share Posted April 30, 2013 You add a new class called youtube so you need to add it also to global.css look for ".twitter" and add you new style under ".youtube" Link to comment Share on other sites More sharing options...
JayPro Posted April 30, 2013 Share Posted April 30, 2013 awesome! thank you very much for your quick responses! helped me out tremendously! thanks, yaniv! Link to comment Share on other sites More sharing options...
goodbreeze Posted January 26, 2014 Share Posted January 26, 2014 Was this solved? I'm trying to add a YouTube link as well. I adjusted blocksocial.tpl, blocksocial.php, and img/sprite_pict_social_block.png. It seems to work in the backend, but the front end completely ignores any TPL changes. I'm on PrestaShop 1.5.4.1 with Social Networking Block v1.0 Do you mind sharing this updated module? I would like to have those changes as well. Link to comment Share on other sites More sharing options...
JayPro Posted January 27, 2014 Share Posted January 27, 2014 Hey goodbreeze, I don't remember exactly as it was awhile back, but I believe I just opened the pertaining files and replaced the word "Twitter" with "YouTube". The files that you have to adjust are: /themes/default/modules/blocksocial/blocksocial.tpl /modules/blocksocial/blocksocial.tpl /modules/blocksocial/blocksocial.php and with an image editor /modules/blocksocial/img/sprite_pict_social_block.png https://www.dropbox.com/s/m0f7i2todpki3sx/sprite_pict_social_block.png Let me know if you need more info Link to comment Share on other sites More sharing options...
Recommended Posts