Making changes to functionality

More
13 years 8 months ago #6744 by teresavance
Hi
Ideally there are several things I'd like to change about the way the slider works on my site, and I wondered if any of them could be changed:

1. Not keen on the way that the images are all scrolled back through to the beginning, rather than just going straight on to the first image again after displaying the last one. Can the scroll back effect be removed

2. Can the number of images be changed?

3. If no description is displayed there is still a black rectangle displayed on the top with no text in it - can this black area be removed?

4. The description displays in all uppercase, despite entering it in the module in a mix of upper and lower - can this be changed?

Sorry for all these questions, hope you can answer some of them!

Please Log in to join the conversation.

More
13 years 8 months ago - 13 years 8 months ago #6769 by ivan.milic
1. It would require source changing.



2. If you want more than 9 images then you could do easy code changing to increase this. We explained that in some older posts on forum.
Change in source 9 to biger number value in
mod_hot_image_slider\tmpl\default.php
and
mod_hot_image_slider\mod_hot_image_slider.php

and add in
mod_hot_image_slider\mod_hot_image_slider.xml

for each extra image you want to enable (example is for 10-th):

<param name="image10" type="text" default="" label="LABEL IMAGE" description="DESC IMAGE" />
<param name="image10title" type="text" default="" label="LABEL IMAGE TITLE" description="DESC IMAGE TITLE" />
<param name="image10desc" type="text" default="" label="LABEL IMAGE DESC" description="DESC IMAGE DESC" />
<param name="image10link" type="text" default="" label="LABEL IMAGE LINK" description="DESC IMAGE LINK" />




3.In mod_hot_image_slider\tmpl\default.php note the line :
...
div#header_hotslider div#slide-holder div#slide-controls {
...
background:url(modules/mod_hot_image_slider/images/slide-bg.png) 0 0;
}
...

4.In mod_hot_image_slider\tmpl\default.php note the line :

p.textdesc {
...
text-transform:uppercase;
...
}
Last edit: 13 years 8 months ago by ivan.milic.

Please Log in to join the conversation.

More
13 years 8 months ago #6852 by procaddy
Heya.

First, kudos on awesome extension.

Second, i'd like to change the "scroll-back" effect aswell. If you could at least point me to the point in the source code where this is coded or where this can be changed, i'd very much appreciate it.

Please Log in to join the conversation.

More
13 years 8 months ago #6874 by ivan.milic
scripts.js

Moment of desizion:

auto: function () {
if (!slider.ar) return false;

var next = slider.cur + 1;
if (next >= slider.num) next = 0;

slider.slide(next);
},

Then in slide: function (pos) {...

It just calculates new left for elements and instruct jQuery animation to that position

Please Log in to join the conversation.

More
13 years 8 months ago #7040 by procaddy
Heya.

Thanks for the reply. I didn't quite get the result i wanted (yet! :) ) but i did change a little bit - when it comes to the end, it starts sliding back one by one all the way to the end and then repeats.

But i do have another question. Do you have to do anything special to have two of these sliders on a same page? I mean...i made two of Hot_image_slider modules in Joomla 1.6 (with different names ofcourse), but they seem to use same options. (for example, i would like to use sliding mode on one, and fade on another)

Please Log in to join the conversation.

More
13 years 8 months ago #7047 by ivan.milic
Basically that is not supported, but you can try and maybe there will be some little issue to fix .

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum