| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
AJAX based flash/gif banner rotetor | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
AJAX based flash/gif banner rotetor
Guys,
Since many days I was looking for banner system for x-cart which should support flash. I tried many free php scripts but non of them worked with flash support in x-cart. I found open source ajax based javascript from dynamicdrive.com ( http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm ) which runs fine in x-cart to display banners & good thing is that as it's ajax based the new flash/gif banners are loaded without page refresh as per time set by you. Following steps I did & manage to display banners in my x-cart's main page (welcome.tpl) Step1 ---------- create folder "flash" in skin1 directory Open home.tpl & enter following code just before </head> tag Code:
Step2 (optional) ---------- Open Skin1.css & at end put Code:
Note: you need to follow above step if you want to run this as ticker system & not banner roteting system. Don't forget to define width & height as per your requirement Step3 ---------- Open welcome.tpl & after the tag {$lng.txt_welcome} paste Code:
Step 4 ------------ Save ajaxticker.js file & tickercontent.txt files in the folder skin1/flash/ folder Step 5 ---------- I have put 2 sample flash banners code in file tickercontent.txt. You should place your flash banner code between tag <div class="message"> </div>. You can save your swf files in skin1/flash folder or any directory at your web site but make sure to give proper path else banner will not display. For more info about how exatly above code works please visit http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm I have not tried but I guess you can display random products also using this code. Any idea from other members to improve this code is always welcome
__________________
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 ---------------- |
|||||||
#2
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
Will this work in 4.3?
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#3
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
Hi minfinger,
Sorry I haven't tested in 4.3 but I guess it should work in 4.3 without any problem.
__________________
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 ---------------- |
|||||||
#4
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
The head.tpl doesn't have a </head> in it.
I stopped there because I didn't want to screw up the files.
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#5
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
Quote:
Don't worry, just toss it in there and it should work |
|||||||
#6
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
OK I can't get it to work right. This isn't terribly confusing, but I just can't get it to show up.
Here's my head.tpl (I did have the code at the bottom and it didn't work there either) Code:
Here's my welcome.tpl Code:
Here's the tickercontent.txt file. I just want it to rotate the jpgs Code:
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#7
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
I did build it as a simple HTML file and it worked locally on my PC.
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#8
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
Try moving the script include from the head.tpl to meta.tpl
Also, check with firebug to see if its loading but just not on the page. |
|||||||
#9
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
Quote:
/*********************************************** * Ajax Ticker script (txt file source)- ╘ Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ </script> The above code must be put before </head> tag but I guess in 4.3 the head.tpl file doesn't have <head> </head> tag. it must be in some other template file. I have not tried 4.3 version so I am not aware in which file <head> </head> tags are there. Just try to find out that it's there in ustomer/home.tpl or any other template.
__________________
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 ---------------- |
|||||||
#10
|
|||||||
|
|||||||
Re: AJAX based flash/gif banner rotetor
<head> stuff is in meta.tpl for 4.3
|
|||||||
|
|||
X-Cart forums © 2001-2020
|