X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   banner in content (https://forum.x-cart.com/showthread.php?t=43564)

BeansMedia 11-10-2008 12:14 PM

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}

balinor 11-11-2008 03:23 AM

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?

BeansMedia 11-11-2008 10:44 AM

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)

JWait 11-12-2008 05:23 AM

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 *}
{capture name=menu}
Your text here
<hr />
<img src="{$ImagesDir}/banner.gif" alt="Banner" />
{/capture}
{ include file="menu.tpl"

dingbats="dingbats_categorie.gif" menu_title="Banner"
menu_content= $smarty.capture.menu }


Put {include file="banner.tpl" } wherever you want it to appear.

anandat 01-10-2009 03:11 AM

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.

JWait 01-10-2009 07:00 AM

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.

photo 01-10-2009 07:24 AM

Re: banner in content
 
Quote:

Originally Posted by anandat
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.


http://www.xcartmods.co.uk/x-cart-rotating-flash-banners-v4x-mk2-x-cart-mods-pr-46.html

anandat 01-12-2009 02:36 AM

Re: banner in content
 
Quote:

Originally Posted by JWait
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.

JWait,
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.

JWait 01-12-2009 04:22 AM

Re: banner in content
 
Have you tried putting {include "revolver/banners.php} where you want it?

anandat 01-12-2009 04:38 AM

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 04:22 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.