Page 1 of 1

In progress of building a new extension, help needed

Posted: Thu Aug 16, 2012 8:28 pm
by supersonictt
I was searching the forum for an extension that does this:
http://sorgalla.com/projects/jcarousel/ ... imple.html
I believe that [rz] layers extension can do something almost the same. But what I was looking for is that the script slides -let's say- one image per click, and the link above has this script.
I have the source code and I built the extension, but need some help with some few stuff, and if there is anyone who is Java guru, this would be really helpful :)

Extension Builder help:
I managed to modify almost every aspect of the extension, except for two things:
1. I believe there must be a .xml file that allow people to add the images they want. I have a sample .xml file but I tried to modify it with no luck.
2. I want people to choose the next/prev buttons and publish them to a specified folder PLUS adding there file names in the script css file.

Javascript help:
The script has some values that can be modified, I studied most of them and will be integrated in the Extension Builder, but:
1. Easing: as I read in the documentation of the script, adding easing is not as easy as I expected, a math calculations should be taken into consideration. Here is an example:
http://sorgalla.com/projects/jcarousel/ ... asing.html
View the source code of the html file and you will see how the easeOutBounce easing is added. Is there a simple way to do it? Just like specifying the easing name and that's it?
2. There is an option in the script where you can wrap on arrow click, that means upon reaching the last image, if the wrap is set to null, the next arrow will disappear (and even if it is visible it will be disabled). If the wrap is set to "last" then the arrow will remain visible and upon clicking it it will slide the whole container to the first image. I was trying to do the following: upon reaching the last image the next arrow changes to another image (I was successful doing that) and it is disabled, now if I set the wrap to "last", the image won't change. So can I reach the last image, arrow image changes to another image and be clickable to slide the whole container to the first image?

I included extension project file. The images are added in a very simple way (not using .xml file), so if some one can have a look at it that would be really appreciated :)
Thanks :)

Re: In progress of building a new extension, help needed

Posted: Fri Aug 17, 2012 4:01 pm
by supersonictt
No replies! :(

Re: In progress of building a new extension, help needed

Posted: Fri Aug 17, 2012 4:35 pm
by BaconFries
@supersonictt ok I have just read this and I will take a look at this for you and see what can be done.

Re: In progress of building a new extension, help needed

Posted: Fri Aug 17, 2012 5:22 pm
by supersonictt
Thanks a lot BaconFries :)
By the way I found another slider that is much better.
Regarding the easing, in the second slider I found, it is straight forward, so this problem is solved.
There are some differences between the two sliders, like wrapping. In the first one, if the wrap is set to last, then clicking the next arrow when you reach the last image will slide all images back to the first image. In the second one, there is an infinite loop, that means upon reaching the last slide, clicking next will display the first image in a normal manner and not by sliding all images to the first one. So I will try to implement this function in the second slider (by trial and error :))
If you want I can attach the second slider so you can have a look at it too.
The help regarding EB4 is still needed, actually I didn't have the time to figure it out as I was searching the internet for the best slider and see how I can modify its stuff.
Thanks a lot for the help :)

Re: In progress of building a new extension, help needed

Posted: Sat Aug 18, 2012 11:20 pm
by supersonictt
Ok.
So I managed to have the .xsl file to add images. Now everything is almost under control.
One more thing is left:
The slider has prev/next buttons, their file names should be added to the css file and the images of those buttons should be published to the images folder, how can I do that with EB4?
Thanks a lot.

*****EDIT*****
I figured it out :D
The extensions are on the way :)