PrestaShop Forums: [MODULE] Carousel - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[MODULE] Carousel


[MODULE] Carousel

#1 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 18 October 2009 - 05:19 AM

This module displays images in a sliding carousel with many options including pause, rewind and fast forward buttons, slide captions and links. Place your images in the modules/carouselnc/agile_carousel_slides directory and they will be automatically read by the module. No code changes are required. To change the slide captions, modify the slide_captions variable in modules/carouselnc/carouselnc.tpl and enter each caption in the order the slides are displayed separated by the | character. To change the slide links, modify the slide_links variable and enter each link separated by the , character. See the Plugin Options section here for more information about the carousel settings. To change the appearance of the carousel, change modules/carouselnc/carouselnc.css.

You can see a demo of the module here and download the FREE version without a configuration page from the DOWNLOAD TAB (compatible with PrestaShop v1.3.7 and earlier only). There is also a paid version available compatible with PrestaShop v1.3 and v1.4 that has a configuration page to make it easy to manage images and change settings here.

UPDATE v1.1

* Added Winno's make_slide.php so that it works on localhost installations
* Fixed so that it will work together with my Sliding Accordion Categories v1.6 module
* Fixed bug that caused the carousel to appear above thickbox

UPDATE v1.1.1

* Moved module to Nethercott Constructions section

UPDATE v1.1.2

* Module now uses PrestaShop's base URL in the slide image links

UPDATE v1.2

* Improved performance by compressing Javascript by 50%
* Improved structure of module

Attached File(s)


Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#2 jolvil

    PrestaShop Fanatic

  • 22 Dec 2007
  • Members
  • PipPipPipPip
  • 2676 posts
  • Location:Paris

Posted 18 October 2009 - 08:19 AM

Thanks for sharing :-)

Added to modules list

#3 Cipboy

    PrestaShop Newbie

  • 26 Aug 2009
  • Members
  • Pip
  • 24 posts

Posted 19 October 2009 - 04:41 AM

Thx for the fix.

#4 antonpas_bcn

    PrestaShop Apprentice

  • 11 Dec 2008
  • Members
  • PipPip
  • 111 posts

Posted 19 October 2009 - 11:00 PM

Hi Rocky, I've installed this module, but i have a problem, i'm using the Sliding Accordion Categories Block and what happens to me is what you see in the screenshot, I only if I have activated the module carousel. Thanks and sorry for my bad English.

Attached File(s)

  • Attached File  Dibujo.jpg (41bytes)
    Number of downloads: 23660


#5 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 20 October 2009 - 01:19 AM

I wrote both modules and can't see how that could happen. Have you tried going to the configuration page of my sliding accordion categories block and changing the "Block height" to "Variable"?
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#6 antonpas_bcn

    PrestaShop Apprentice

  • 11 Dec 2008
  • Members
  • PipPip
  • 111 posts

Posted 20 October 2009 - 07:53 AM

From 1255997994:

I wrote both modules and can't see how that could happen. Have you tried going to the configuration page of my sliding accordion categories block and changing the "Block height" to "Variable"?


Yes, i've this configuration, and i've tried with the other configuration, but it's the same, it only happen in the home page with the carousel "module".

Thanks!

#7 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 20 October 2009 - 09:12 AM

Can you give me a link to your website so I can investigate?
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#8 antonpas_bcn

    PrestaShop Apprentice

  • 11 Dec 2008
  • Members
  • PipPip
  • 111 posts

Posted 20 October 2009 - 09:22 AM

From 1256026375:

Can you give me a link to your website so I can investigate?


I send u the url by PM. Thanks!

#9 maxhome

    PrestaShop Addict

  • 05 Feb 2009
  • Members
  • PipPipPip
  • 519 posts

Posted 20 October 2009 - 10:43 AM

Thanks for this great mod. It remains only to manage the images in the BO.... Thanks
Presta prod 1.2.5 /svn
Faites un don aux developpeurs qui nous offrent ici leur travail, c'est important.

#10 lindberg123

    PrestaShop Newbie

  • 04 Sep 2009
  • Members
  • Pip
  • 17 posts

Posted 20 October 2009 - 03:28 PM

Hi

The carousel isnt working for me, the ajax_loader image is just there all the time.

Regards

#11 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 21 October 2009 - 12:28 AM

I thought I fixed that bug. It should use the module's directory. Can you give me a link to your site so I can see what path is causing it problems?
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#12 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 21 October 2009 - 12:35 AM

@antonpas_bcn

I checked out your site and I see the problem. It works on every page except the homepage. There must be some kind of Javascript conflict between the two modules. I'll investigate further when I have time.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#13 antonpas_bcn

    PrestaShop Apprentice

  • 11 Dec 2008
  • Members
  • PipPip
  • 111 posts

Posted 21 October 2009 - 07:39 AM

From 1256081753:

@antonpas_bcn

I checked out your site and I see the problem. It works on every page except the homepage. There must be some kind of Javascript conflict between the two modules. I'll investigate further when I have time.


Ok! Thanks!

#14 adiboo

    PrestaShop Apprentice

  • 10 Sep 2008
  • Members
  • PipPip
  • 128 posts

Posted 21 October 2009 - 03:26 PM

hi good job
how i can change the text and the links.
thanks

#15 ps93

    PrestaShop Apprentice

  • 26 Apr 2009
  • Members
  • PipPip
  • 172 posts

Posted 21 October 2009 - 10:06 PM

From 1256048883:

Hi

The carousel isnt working for me, the ajax_loader image is just there all the time.

Regards



Same problem (PS v1.4)
Thanks and Congratulations to all developpers and team PS !

#16 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 21 October 2009 - 11:35 PM

Once again, I have the problem of it working for some people and not for others. :-S

This problem is caused when the path in make_slides.php is incorrect. Can you give me a link to your shop so I can investigate why it isn't working for you?
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#17 lindberg123

    PrestaShop Newbie

  • 04 Sep 2009
  • Members
  • Pip
  • 17 posts

Posted 22 October 2009 - 01:14 PM

in m case i have the shop on my localhost..?

#18 Winno

    PrestaShop Newbie

  • 14 Oct 2009
  • Members
  • Pip
  • 20 posts

Posted 22 October 2009 - 02:47 PM

The problem is (after some php debugging) with error_reporting variable in php.
Some variables are just not defined ( $custom_data_arr for instances...)

Try to put

error_reporting(0); on top of make_slides.php
ex:
<?php
error_reporting(0);
function has_no_emailheaders($text)
{
return preg_match("/(
|
|\n+|\r+)(content-type:|to:|cc:|bcc:)/i", $text) == 0;
}


Localy this works for me, but in my ISP i can't override these settings.

Trying to make a cleaner make_slides.php now :)

[EDIT]
My problems until now:
problems with FILTER_SANITIZE_STRING
problems with function json_encode > function doesn't exist in my php version: created a new one.
[/EDIT]

cheers

#19 ps93

    PrestaShop Apprentice

  • 26 Apr 2009
  • Members
  • PipPip
  • 172 posts

Posted 22 October 2009 - 05:46 PM

Still the same even if I put the code above...
My shop is on localhost also
Thanks and Congratulations to all developpers and team PS !

#20 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 22 October 2009 - 11:33 PM

Thanks localhost users for alerting me to this problem. I personally work on all my websites from the server, so I haven't encountered this problem. I think in the future I'll need to install Prestashop locally and test all my modules on it to make sure this doesn't happen again.

@Winno

I would appreciate it if you sent me the cleaned-up make_slides.php when you are done so I can update the archive for everyone.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users