w1dg3t Posted October 18, 2012 Share Posted October 18, 2012 (edited) hello i just uploaded my picture and set the link in the modules tab in prestashop back office. it all works but i want it to open up the link in a new tab or window. in the code i see it says "_blank" which i have been reading should do what i want but it dont. i wanted to link it a my facebook page for biz. Thanks w1dg3t Edited October 18, 2012 by w1dg3t (see edit history) Link to comment Share on other sites More sharing options...
w1dg3t Posted October 19, 2012 Author Share Posted October 19, 2012 bump Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 19, 2012 Share Posted October 19, 2012 better results if you post a link...after you get it resolved remove the link...suerte Link to comment Share on other sites More sharing options...
w1dg3t Posted October 19, 2012 Author Share Posted October 19, 2012 (edited) thanks I have been trying to get rid of that template monster link to no avail. Edited October 19, 2012 by w1dg3t (see edit history) Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 19, 2012 Share Posted October 19, 2012 (edited) I looked at at native tmbannerblock.tpl file it does not have the _blank Here is the code with the _blank (not tested as I don't use it) modules/tmbannerblock/tmbannerblock.tpl {if $page_name == 'index'} <!-- tmbannerblock --> <div id="tmbannerblock"> {counter name=banner_count start=0 skip=1 print=false} {foreach from=$xml->link item=home_link name=links} <a href='{$home_link->url}' target="_blank" class="banner{counter name=banner_count}"><img src='{$this_path}{$home_link->img}'alt="" border="0" title="{$home_link->desc}" /></a> {/foreach} </div> <div class="clearblock"></div> <!-- /tmbannerblock --> {/if} please note: you will need to set force compile to see any changes to a .tpl file. Edited October 19, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
w1dg3t Posted October 19, 2012 Author Share Posted October 19, 2012 ok now the fun begins thanks. i just got to wack that in somewhere. lol Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 19, 2012 Share Posted October 19, 2012 make sure to always BACK UP any file. This is little nicky stuff and good for you to know.... Link to comment Share on other sites More sharing options...
w1dg3t Posted October 19, 2012 Author Share Posted October 19, 2012 <form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data"> <fieldset><legend>'.$this->l('Advertising block configuration').'</legend> <a href="'.$this->adv_link.'" target="_blank" title="'.$this->adv_title.'">'; if ($this->adv_img) This code is in the tmbanner2. you see it says _blank this in the tmbanner2.php what do you think i should do. I couldnt find a .tpl Thanks Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 19, 2012 Share Posted October 19, 2012 I apologize, that's a different module than what I looked at and I don't have a tmbanner2 module...you can send me the module at [email protected] and I'll be glad to take a look at it. Link to comment Share on other sites More sharing options...
w1dg3t Posted November 4, 2012 Author Share Posted November 4, 2012 bump Link to comment Share on other sites More sharing options...
Ron morales Posted November 22, 2012 Share Posted November 22, 2012 such'm Ron my problem is that I block banner tm works fine but I only need minimum 11 photos inserted one more as you might know, you can duplicate the module? Link to comment Share on other sites More sharing options...
Recommended Posts