Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

banner in content

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-10-2008, 12:14 PM
 
BeansMedia BeansMedia is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 45
 

Default 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}
__________________
Version 4.1.9
x cart gold
Windows
Reply With Quote
  #2  
Old 11-11-2008, 03:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-11-2008, 10:44 AM
 
BeansMedia BeansMedia is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 45
 

Default 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)
__________________
Version 4.1.9
x cart gold
Windows
Reply With Quote
  #4  
Old 11-12-2008, 05:23 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 01-10-2009, 03:11 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default 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.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #6  
Old 01-10-2009, 07:00 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #7  
Old 01-10-2009, 07:24 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #8  
Old 01-12-2009, 02:36 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default 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.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #9  
Old 01-12-2009, 04:22 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: banner in content

Have you tried putting {include "revolver/banners.php} where you want it?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #10  
Old 01-12-2009, 04:38 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default 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 !
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:12 PM.

   

 
X-Cart forums © 2001-2020