X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   FREE Banner Rotator with Links (https://forum.x-cart.com/showthread.php?t=52351)

JWait 12-29-2011 02:29 PM

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.

sanjuansports 02-29-2012 11:05 AM

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

jl1 07-11-2012 10:07 PM

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

brian_trader 02-28-2013 04:49 AM

Re: FREE Banner Rotator with Links
 
hi.... On what page do i stick the block of code?


All times are GMT -8. The time now is 03:31 AM.

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