PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[MODULE] Carousel

256 replies to this topic
#1
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
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 Files


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

#2
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
Thanks for sharing :-)

Added to modules list

#3
Cipboy

    PrestaShop Newbie

  • Members
  • Pip
  • 24 posts
Thx for the fix.

#4
antonpas_bcn

    PrestaShop Apprentice

  • Members
  • PipPip
  • 111 posts
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 Files



#5
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
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.

#6
antonpas_bcn

    PrestaShop Apprentice

  • Members
  • PipPip
  • 111 posts

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

  • US Moderators
  • 9988 posts
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.

#8
antonpas_bcn

    PrestaShop Apprentice

  • Members
  • PipPip
  • 111 posts

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

  • Members
  • PipPipPip
  • 519 posts
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

  • Members
  • Pip
  • 17 posts
Hi

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

Regards

#11
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
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.

#12
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
@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.

#13
antonpas_bcn

    PrestaShop Apprentice

  • Members
  • PipPip
  • 111 posts

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

  • Members
  • PipPip
  • 128 posts
hi good job
how i can change the text and the links.
thanks

#15
ps93

    PrestaShop Apprentice

  • Members
  • PipPip
  • 172 posts

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

  • US Moderators
  • 9988 posts
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.

#17
lindberg123

    PrestaShop Newbie

  • Members
  • Pip
  • 17 posts
in m case i have the shop on my localhost..?

#18
Winno

    PrestaShop Newbie

  • Members
  • Pip
  • 22 posts
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

  • Members
  • PipPip
  • 172 posts
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

  • US Moderators
  • 9988 posts
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.