tony84 Posted October 8, 2009 Share Posted October 8, 2009 Hi,On my homepage i would like to have a slider. I dont have enough knowledge to make this into a module and dont have enough money to pay someone to do it.What i was hoping was that i could go into the theme and just paste the code of the slider in there. However it doesnt seem to be quite that easy. Could anyone help please?CheersTony Link to comment Share on other sites More sharing options...
Cipboy Posted October 12, 2009 Share Posted October 12, 2009 If you didn't find a solution yet, just search the forums for slide modules. You'll find what you need. Link to comment Share on other sites More sharing options...
andybr1ggs Posted October 12, 2009 Share Posted October 12, 2009 There is two great modules out there that provide this there is the homefeaturedcarousal module and home featured slide module LQQK http://www.prestashop.com/forums/viewthread/8671/home_featured_slide_show Link to comment Share on other sites More sharing options...
rocky Posted October 12, 2009 Share Posted October 12, 2009 I programmed the theme for Tony's website and also wrote this module for him. I've attached the module in case anyone is interested. You can see a demo of it on his website here. carousel.zip Link to comment Share on other sites More sharing options...
Cipboy Posted October 12, 2009 Share Posted October 12, 2009 Very nice module! I'll give it a try.Thx! Link to comment Share on other sites More sharing options...
iecsp Posted October 13, 2009 Share Posted October 13, 2009 Look for some module available! That will be very easy to meet your requirement. Link to comment Share on other sites More sharing options...
tony84 Posted October 13, 2009 Author Share Posted October 13, 2009 Just to let you know i would highly recommend rocky, the theme and module are great. Really good experience working with Adrian. Link to comment Share on other sites More sharing options...
uinteraju Posted October 13, 2009 Share Posted October 13, 2009 Hello to all!My name Antonio and I am here for the first time.I saw the 'Carousel module' and i want to use it on my page.My page is www.e-de-toate.ro and i have a picture in the header . I want to replace the picture with the carousel module.Would you be so nice to learn me how can i do this? Thank you so much! Cheers! Link to comment Share on other sites More sharing options...
Cipboy Posted October 13, 2009 Share Posted October 13, 2009 Just disable the module above the carousel. Or change their order in backoffice. Link to comment Share on other sites More sharing options...
uinteraju Posted October 13, 2009 Share Posted October 13, 2009 Thank you Apprentice , but i have no idea how can i put some pictures in that carousel.Help me pls if u have some free time for me.See ya...Cheers! Link to comment Share on other sites More sharing options...
ysco Posted October 13, 2009 Share Posted October 13, 2009 He rocky nice module mate Will give it a try.Thanks for sharing.Regards, ysco.. Link to comment Share on other sites More sharing options...
tony84 Posted October 13, 2009 Author Share Posted October 13, 2009 You need to edit carousel.tpd for the links, and message bit.To change the image you can go to slides and change slide_01.jpg etc. Link to comment Share on other sites More sharing options...
uinteraju Posted October 14, 2009 Share Posted October 14, 2009 I see tony84 , but have u idea about the html code?...How can i edit this carousel?Thank you! Link to comment Share on other sites More sharing options...
rocky Posted October 14, 2009 Share Posted October 14, 2009 Hi uinteraju,What is it that you want to edit?The slideshow images are in modules/carousel/slides. You just need to add images to that folder and the module should automatically pick them up. You don't need to add any links for the images to appear.To change the captions that appear for each image, you need to modify modules/carousel/carousel.tpl and modify the slide_captions value. Enter the captions separated by | for each image in the order the images appear.To change the links for when you click on each image, you need to modify the slide_links value. Enter the links separated by ,There are many other options there you can also change in carousel.tpl.If you want to change the appearance of the carousel, you need to modify modules/carousel/carousel.cssIf I get time in the future, I'll add a configuration page that lets you change these options without modifying code. Link to comment Share on other sites More sharing options...
Cipboy Posted October 15, 2009 Share Posted October 15, 2009 A page like that would be much of a help and would be much appreciated. Hope you'll find some time to do that in the near future.Thx! Link to comment Share on other sites More sharing options...
jordy007 Posted October 16, 2009 Share Posted October 16, 2009 Thanks but block to "loading" :s?? Link to comment Share on other sites More sharing options...
Cipboy Posted October 16, 2009 Share Posted October 16, 2009 Try reloading the page or delete cookies etc. You can also try using another browser to see if it works.It is compatible with IE, Mozilla, Chrome ... I have sometimes problems when using Mozilla (it gets stuck) but after deleting cookies and history all works fine. I think 4 you it's just a glitch. Good luck! Link to comment Share on other sites More sharing options...
jordy007 Posted October 16, 2009 Share Posted October 16, 2009 Always block to "LOADING" Link to comment Share on other sites More sharing options...
lionhell Posted October 16, 2009 Share Posted October 16, 2009 Not working here (on prestashop 1.2.4Install: OKdisplay: Only ajax-loader.gif -> slides do not loadHelp ! Link to comment Share on other sites More sharing options...
rocky Posted October 16, 2009 Share Posted October 16, 2009 Hi jordy007 and lionhell,I think I may have figured why it isn't working for you but is for others. Is your shop in a subdirectory like shop? If it is, I think you will need to modify modules/carousel/carousel_behavior_min.js and change: /modules/carousel/make_slides.php with: /shop/modules/carousel/make_slides.php Change shop to subdirectory where you uploaded Prestashop. Link to comment Share on other sites More sharing options...
lionhell Posted October 16, 2009 Share Posted October 16, 2009 I tried your suggestion, but no change.I tried to use url of my site (local for the time), http://127.0.0.1/BLEU-PASTEL/modules/carousel/make_slides.php , and this time the frame and buttons are displayed, sliding is working, but with no picture ! And on 1st frame a list of errors is displayed ...ie:Notice: Undefined variable: slide_type in C:\Users\LionHell\Documents\prestashop\modules\carousel\make_slides.php on line 131Same for lines 183 and 217.It seems to be the variable used with switch test ... slide_typeThis occurs with my change in carousel_behavior_min.js using url instead of path as mentioned above. Link to comment Share on other sites More sharing options...
lionhell Posted October 16, 2009 Share Posted October 16, 2009 I thought the prob. was with definitions of tests defining $slide_type.So I decided to set $slide_type = 'image_slide'; in the last else{} for testing :I got 2 new errors regarding offset line 135. (former errors vanished)But sliding is working with this anomaly:I got 8 frames for 5 pictures :frames 1,2,3 are displaying errorsframes 4,5,6,7,8 are displaying the pictures ... Link to comment Share on other sites More sharing options...
jordy007 Posted October 16, 2009 Share Posted October 16, 2009 Hi jordy007 and lionhell,I think I may have figured why it isn't working for you but is for others. Is your shop in a subdirectory like shop? If it is, I think you will need to modify modules/carousel/carousel_behavior_min.js and change:/modules/carousel/make_slides.php with: /shop/modules/carousel/make_slides.php Change shop to subdirectory where you uploaded Prestashop. Thanks, it's good for me Link to comment Share on other sites More sharing options...
lionhell Posted October 16, 2009 Share Posted October 16, 2009 OK, thx for your answer .... on distant site (online) it's working fine !The problem is that I'm unable to make it work on local install ...THXps: if you have an idea for local, I'm very interested ! Link to comment Share on other sites More sharing options...
Iamcaptain Posted October 16, 2009 Share Posted October 16, 2009 You should all learn about url hooks.instead of /modules/carousel/make_slides.php use {$module_dir}make_slides.php That will automatically insert the url of the module folder. So it doesn't matter if it's local host or live, it'll detect it accordingly. Link to comment Share on other sites More sharing options...
lionhell Posted October 16, 2009 Share Posted October 16, 2009 Does it work inside a js file ?? Link to comment Share on other sites More sharing options...
rocky Posted October 16, 2009 Share Posted October 16, 2009 No, that code won't work inside a js file. I think you would have to add another variable to the js and pass it in from the tpl. I'll do that when I have time. Link to comment Share on other sites More sharing options...
lionhell Posted October 17, 2009 Share Posted October 17, 2009 For my information, is there a documentation where the core is described ?For example, were could I find the description of {$module_dir} ? Link to comment Share on other sites More sharing options...
uinteraju Posted October 17, 2009 Share Posted October 17, 2009 Thank you mister moderator Rocky.I apreciate ur carousel's explicationes.I am not from UK or usa...and for me it's hard to understand in english.Ty again for all what you do for me.Cheers! Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2009 Share Posted October 18, 2009 @lionhellHave a look at the bottom of init.php to see what variables are available. There is one set of variables when v1.1 compatibility is enabled and another set of variables when it is disabled. Link to comment Share on other sites More sharing options...
rocky Posted October 18, 2009 Share Posted October 18, 2009 I've fixed the module and made it available for download in a separate post here to make it easier to find. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now