mantas779 Posted May 23, 2014 Share Posted May 23, 2014 I want a temporary advertising banner in the footer just above the information block. The alt name i gave is showing on the website down in the left corner only the banner not. What goes wrong? I tried different places for the .gif like in root, img folder , with the /www infront and without , same result every time ! http://www.scooterdumper.nl/ Here the code which i put in the footer.tpl </div><!-- .columns-container --> <!-- Footer --> <img scr=/www/img/"deal.gif" alt="50-50 deal" height="90"width="728"> <div class="footer-container"> <footer id="footer" class="container"> <div class="row">{$HOOK_FOOTER}</div> </footer> </div><!-- #footer --> </div><!-- #page --> Link to comment Share on other sites More sharing options...
vekia Posted May 23, 2014 Share Posted May 23, 2014 path to image is wrong scr=/www/img/"deal.gif" use correct path, the best thing: with http (full url) Link to comment Share on other sites More sharing options...
mantas779 Posted May 24, 2014 Author Share Posted May 24, 2014 I changed it now to: Named the image to 5050.gif and put in root dir. <!-- Footer --> <img scr="5050.gif" alt="50-50 deal" height="90"width="728"> <div class="footer-container"> <footer id="footer" class="container"> <div class="row">{$HOOK_FOOTER}</div> When i look at http://scooterdumper.nl/5050.gif then it shows the banner. But not in the footer only the alt name. I tried the whole URL , still the same. Link to comment Share on other sites More sharing options...
misthero Posted May 24, 2014 Share Posted May 24, 2014 (edited) look at your tag.. should be src=".." not scr="" and the image tag must be closed with a / at the end try this: <img src={$base_dir}5050.gif /> ps: or you can try the module in my signature Edited May 24, 2014 by misthero (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2014 Share Posted May 24, 2014 {$base_dir} will return unsecured url if the website will run under ssl connections in this case it's better to use {$content_dir} - it returns always correct url :-) 1 Link to comment Share on other sites More sharing options...
misthero Posted May 24, 2014 Share Posted May 24, 2014 good to know the difference Link to comment Share on other sites More sharing options...
mantas779 Posted May 26, 2014 Author Share Posted May 26, 2014 (edited) It finally shows now. Cache off helps also i noticed, to show the new uploaded file. thx Edited May 26, 2014 by mantas779 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts