Jump to content

Block Social module - open links in new window 1.4.6.2


Recommended Posts

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 :)

 

vfy0sh.jpg

  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...
  • 7 months later...

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 by JayPro (see edit history)
Link to comment
Share on other sites

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

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

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

  • 8 months later...

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

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

×
×
  • Create New...