![]() |
banner in content
Hello, i searched the forum but maybey this is very simple, i couldn not found help.
what i want is to show (on home page) a banner with delivery cars. How do i put this in the content: {if $bestsellers} {capture name=menu} <br /> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_bestsellen menu_content= $smarty.capture.menu } {/if} |
Re: banner in content
Please don't double post, I have removed your second post on this topic. Can you explain a bit more about what you are trying to do? The code above is for showing bestsellers in the side menu, but it has no content?
|
Re: banner in content
sorry, i colud not find the first one, all i want is ont the right column a bar wich shows a banner or a foto. i do not know how to make this work so i copied a file that was already on the site.
so i want tekst (with a bar) and then the banner (or foto) |
Re: banner in content
Probably the easiest way would be to create a new template and then name it banner.tpl.
Code:
{* $Id: banner.tpl *} Put {include file="banner.tpl" } wherever you want it to appear. |
Re: banner in content
Jwait,
This is good idea but can you recommend any good free PHP banner rotetor script which supports flash file also ? so if we put banner code inside banner.tpl & site will start showing new banners on each page refresh. |
Re: banner in content
I don't know of any "PHP banner rotetor script which supports flash files", but there are several that use Javascript to rotate banner graphics after a specified time. There is one at
http://www.abiglime.com/webmaster/articles/jscript/021298.htm that looks interesting. |
Re: banner in content
Quote:
http://www.xcartmods.co.uk/x-cart-rotating-flash-banners-v4x-mk2-x-cart-mods-pr-46.html |
Re: banner in content
Quote:
I just forund this free php banner script which support jpg,gif, flash & google addsense also. http://ledbetter.freepgs.com/wordpress/?page_id=186 We just need to insert the line <?php include("http://yoursite.com/revolver/banners.php"); ?> in the template where we want to display the banner but I don't have any idea how to add above line in template file. I tried to run it between {php} & {literal} tags also but it's still giving me smarty file not found error even though folder "banner" is there with banner files html banner files. This would be very nice script if we can customize to use it on x-cart. Thanks in advance. |
Re: banner in content
Have you tried putting {include "revolver/banners.php} where you want it?
|
Re: banner in content
I tried to include {include "revolver/banners.php} & this way also {include file="{$xcart_web_dir}/revolver/banners.php"} but it gives me smaty file not found error !
|
All times are GMT -8. The time now is 05:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.