jtlswanson Posted June 6, 2011 Share Posted June 6, 2011 I guess my topic title says it all? Using PS 1.4.2.5. I just want the link when you click on the advertising block to open in a new window...thanks!JTLS Link to comment Share on other sites More sharing options...
jtlswanson Posted June 12, 2011 Author Share Posted June 12, 2011 Any ideas on how to do this? Please? Link to comment Share on other sites More sharing options...
Site Posted June 13, 2011 Share Posted June 13, 2011 Hi,The best thing to do would be Edit the .tpl file in the advertisingblock modules folder Link to comment Share on other sites More sharing options...
jtlswanson Posted June 13, 2011 Author Share Posted June 13, 2011 I'm sorry but i really don't know php coding. I understand the principle behind it, but don't know the coding. What/where do I add/change the "_blank" option? Thanks in advance!JTLS Link to comment Share on other sites More sharing options...
Site Posted June 13, 2011 Share Posted June 13, 2011 Change it from this to Link to comment Share on other sites More sharing options...
jtlswanson Posted June 13, 2011 Author Share Posted June 13, 2011 Thank you Site! It worked! I appreciate your help!I don't know if you can help on 1 more issue sort of related to this one:http://www.prestashop.com/forums/viewthread/113295/I'm trying to add the align="center" option to both this advertising block as well as the PayPal block...I have tried adding it to different sections on the .tpl file, to no avail...ideas?JTLS Link to comment Share on other sites More sharing options...
Kumarr31 Posted July 28, 2011 Share Posted July 28, 2011 Hi, I am using PrestaShop™ 1.4.3 and cannot open target in new window when clicking on the advertising picture. I can't see the pictures uploaded to this post. Can you reload? What I did is: went to modules/blockadvertising\blockadvertising.tpl and modified it like this: <a href="{$adv_link}" title="{$adv_title}" target="_blank"><img src="{$image}" alt="{$adv_title}" title="{$adv_title}" width="155" height="163"/></a> No luck. I uninstalled the module and re-installed but still not working. Can you tell me how to get it to work? Thanks in advanced Link to comment Share on other sites More sharing options...
Elin-BioLivs Posted October 5, 2011 Share Posted October 5, 2011 I also want the blockadvertising to open in a new window! I am using PrestaShop™ 1.4.4.0 I am going to do the changes in the blockadvertising.php file? Would be greatful if someone could instruct me how to do it! Link to comment Share on other sites More sharing options...
Astro1176 Posted October 7, 2011 Share Posted October 7, 2011 Change it from this [url="{$adv_link}"][img={$image}][/url] to [url="{$adv_link}"][img={$image}][/url] I can't see the images in the above post. I have tried doing as Kumarr suggested - which seems to make sense from an html point of view, but it has not worked here either. Help appreciated Link to comment Share on other sites More sharing options...
jtlswanson Posted October 7, 2011 Author Share Posted October 7, 2011 Hey guys, below is how I did it. It also centers the advertising block...make sure your change it in the .tpl file...not the .php file! Afterward, make sure you delete the files (not the index.php) in the compile folder (prestashop ---> tools ---> smarty ---> compile) and then reload your page to view the changes. The code below has worked on 1.4.2.5 up to 1.4.4.1 for me. Hope it helps! JTLS Prestashop ---> modules folder ---> blockadvertising folder ---> blockadvertising.tpl <!-- MODULE Block advertising --> <div class="advertising_block"> <p align="center"><a href="{$adv_link}" title="{l s='Advertising' mod='blockadvertising'}" target="_blank"><img src="{$image}" alt="{l s='Advertising' mod='blockadvertising'}" width="155" height="163" /></a></p> </div> <!-- /MODULE Block advertising --> 1 Link to comment Share on other sites More sharing options...
Astro1176 Posted October 7, 2011 Share Posted October 7, 2011 Thank you so much! I was missing the deleting the compiled files stage, this has been baffling me for days. All working now. Link to comment Share on other sites More sharing options...
jtlswanson Posted October 7, 2011 Author Share Posted October 7, 2011 It took me weeks to figure out the whole "compile folder thingy"...Wish someone told me about it a long time ago. It woulda saved my hair from going grey... Link to comment Share on other sites More sharing options...
Elin-BioLivs Posted October 18, 2011 Share Posted October 18, 2011 Hey guys, below is how I did it. It also centers the advertising block...make sure your change it in the .tpl file...not the .php file! Afterward, make sure you delete the files (not the index.php) in the compile folder (prestashop ---> tools ---> smarty ---> compile) and then reload your page to view the changes. The code below has worked on 1.4.2.5 up to 1.4.4.1 for me. Hope it helps! JTLS Prestashop ---> modules folder ---> blockadvertising folder ---> blockadvertising.tpl <!-- MODULE Block advertising --> <div class="advertising_block"> <p align="center"><a href="{$adv_link}" title="{l s='Advertising' mod='blockadvertising'}" target="_blank"><img src="{$image}" alt="{l s='Advertising' mod='blockadvertising'}" width="155" height="163" /></a></p> </div> <!-- /MODULE Block advertising --> THANKS!!! Now a stupid question! Which files should be deleted in the compile-folder? Can and should all, but the index file be deleted? Thank you!!! Link to comment Share on other sites More sharing options...
jtlswanson Posted October 18, 2011 Author Share Posted October 18, 2011 Never a stupid question: delete all the files except for the index.php. 1 Link to comment Share on other sites More sharing options...
Elin-BioLivs Posted October 19, 2011 Share Posted October 19, 2011 Thanx a lot!!! Link to comment Share on other sites More sharing options...
DIT Posted December 15, 2011 Share Posted December 15, 2011 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now