In progress of building a new extension, help needed

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
Post Reply
supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

In progress of building a new extension, help needed

Post 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 :)
supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

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

Post by supersonictt »

No replies! :(
User avatar
BaconFries
 
 
Posts: 5799
Joined: Thu Aug 16, 2007 7:32 pm

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

Post 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.
supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

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

Post 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 :)
supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

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

Post 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 :)
Post Reply