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

FREE Banner Rotator with Links

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 12-29-2011, 02:29 PM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: FREE Banner Rotator with Links

Quote:
Originally Posted by Mat2012
I am realy desperate for this banner, I copied the code into my welcome.tpl and I deleted the space that caused the issue, but it did not work, I got:

Error: Smarty error: [in customer/main/welcome.tpl line 48]: syntax error: unrecognized tag 'for' (Smarty_Compiler.class.php, line 590) in /home/easyqura/public_html/include/lib/smarty/Smarty.class.php on line 1093

Anyone can help? please?

Smarty is telling you the problem.. somewhere in the .tpl (on line 48 ) there is a "for" statement that isn't recognized. It may or may not have anything to do with the code that was added.
__________________
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
  #32  
Old 02-29-2012, 11:05 AM
 
sanjuansports sanjuansports is offline
 

Newbie
  
Join Date: Feb 2012
Posts: 1
 

Default Re: FREE Banner Rotator with Links

Just wanted to share a modification I made - so that the slideshow was FLUID WIDTH:

1. Created a new language label:
lbl_banner_rotator
and added the code from the original post (deleted space in "length")

2. placed a div tag around the code in the language label:
Code:
<div id="slideshow"> ... </div>

3. Added the following CSS to my altskin.css file:
Code:
#slideshow { width: 100%; position: relative; } #slideshow img { width: 100%; max-width: 1300px; min-width:800px; height: auto; min-height:300px; }

4. In /common_files/customer/main/welcome.tpl
I placed this:
Code:
{$lng.lbl_banner_rotator}

just before this:

Code:
{$lng.txt_welcome}<br />


I'm using XCART 4.4.3 - www.sanjuansports.com/index.php
__________________
sanjuansports
Reply With Quote

The following 2 users thank sanjuansports for this useful post:
bibi (03-03-2012), qualiteam (03-06-2012)
  #33  
Old 07-11-2012, 10:07 PM
 
jl1 jl1 is offline
 

Member
  
Join Date: Jun 2012
Posts: 10
 

Cool Re: FREE Banner Rotator with Links

Quote:
Originally Posted by Dan.roh
Hi Guys,

I found this very useful banner rotator online and thought the right thing to do would be to share it.

Useful things about this banner rotator:

- Your banners do not all have to be the same size as it allows you to specify a background and you can set the background to be the size of your largest banner.
- You can have as many banners as you like and you can specify where they link to.
- You can set the cycles of your rotator for as many times as you want or you can just set it continuous.
- You can set the rotator to randomize your banners or have them display in order.
- You can also set the time before the next banner must display.
- You can set it to pre-load all your banners or not.


**Hope someone would find this useful, you can display it anywhere on your site or even within a language variable.

Looks good Dan,

Just not sure how to embed this?

Can you tell me how to embed it right where the welcome_image.jpg is?

v 4.5
__________________
X-Cart Gold v4.5.0
Reply With Quote
  #34  
Old 02-28-2013, 04:49 AM
 
brian_trader brian_trader is offline
 

Newbie
  
Join Date: Feb 2013
Posts: 8
 

Default Re: FREE Banner Rotator with Links

hi.... On what page do i stick the block of code?
__________________
br
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 05:39 PM.

   

 
X-Cart forums © 2001-2020