The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Random image module
PostPosted: Sat Nov 05, 2005 12:40 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 05, 2005 10:15 am
Posts: 26
Is it possible to get the random image module to auto scroll on the mainpage? ???


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 1:22 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Oct 06, 2005 6:33 pm
Posts: 455
Location: Lugano - CH
you mean if you scroll page up and down to be present on every state?


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 1:35 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 05, 2005 10:15 am
Posts: 26
Like the one on this site top left  http://kvitel.com/


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 2:50 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Oct 06, 2005 6:33 pm
Posts: 455
Location: Lugano - CH
it depends which gallery you use and if they have a module which will do that. If they don't have it you have to code it :)


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 11:13 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Aug 24, 2005 10:33 am
Posts: 170
Location: Greece
Is there any way to that? Nice example

_________________
http://www.joomlamania.com


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 11:23 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 22, 2005 2:29 pm
Posts: 346
Location: Gent - Belgium
I think that site is using the newsflash scroller.
If that's the case, then you'd have to put the images in one or more content items. So, that's no random images.

I'm sure it's a site from someone in this community, just can't remember who.  ???
Maybe you could ask him how he's done it?

edit:I found him! I'll drop him a pm about this.


Last edited by benedikt on Sat Nov 05, 2005 11:31 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 11:32 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Aug 24, 2005 10:33 am
Posts: 170
Location: Greece
Thanks benedikt

_________________
http://www.joomlamania.com


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sat Nov 05, 2005 11:52 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 22, 2005 2:29 pm
Posts: 346
Location: Gent - Belgium
I just got word back from Avrik:
avrik wrote:
the module on the Kvitel site is RSGALEERY scroll mod

It work with images from a category in the gallery component .

sorry. but I don't know if there is a way to use it with random images.

So, it's not a random image scroller  :(
If you're better at php than me, it wouldn't be too hard to to combine the random image module and the newsflash scroller.

edit: btw, there are random image modules for specific galleries but also for the images in your images/stories folder


Last edited by benedikt on Sat Nov 05, 2005 11:55 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sun Nov 06, 2005 9:23 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 22, 2005 2:29 pm
Posts: 346
Location: Gent - Belgium
Here is an image slideshow I found in the dutch language forum:
http://www.joomlaos.de/Downloads/Joomla ... aShow.html

Differences in the 'slide effects' have been reported between display in FF & IE

To make it display random images do this:
risp wrote:
Code:
var diashowCounter = 1;

Replace with
Code:
var diashowCounter = Math.floor(Math.random() * Picture.length);


Now it starts random; but images are still in the same order.
To make it completely random:
Code:
diashowCounter = diashowCounter + 1;
if (diashowCounter > (PictureArrayLength)) diashowCounter=1;

Replace with
Code:
diashowCounter = Math.floor(Math.random() * Picture.length);


If you want it scrolling instead of sliding, you're gonna have to borrow some code from the newsflash scroller  ;)


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sun Nov 06, 2005 9:38 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 05, 2005 10:15 am
Posts: 26
Thanks!! this looks really good used wat i was looking for.. i can get it to scroll i think ..or i wil try :)


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sun Nov 06, 2005 9:42 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 22, 2005 2:29 pm
Posts: 346
Location: Gent - Belgium
If you can get it to scroll, I'm sure others would be interested too.


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sun Nov 06, 2005 10:11 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 05, 2005 10:15 am
Posts: 26
Is there a way of showing 3 pics instead of one ...
or is it possible to install the same mod  a few times, i get an error if i copy the mod in joomla.


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Sun Nov 06, 2005 11:02 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Oct 06, 2005 6:33 pm
Posts: 455
Location: Lugano - CH
maybe you can change module name but I think that will make big problems when someone visit your site.


Top
 Profile  
 
 Post subject: Re: Random image module
PostPosted: Thu Nov 10, 2005 2:43 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 23, 2005 6:41 am
Posts: 860
I was able to copy my module.  Try updating your Joomla install.

I am using 5 random image modules on a page.  However, they are showing duplicates.

How can I make it so it only shows one of each picture?

Thanks  ;D

_________________
TY2U.com Designs http://ty2u.com - Professional Joomla! Extensions


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 



Who is online

Users browsing this forum: Google Adsense [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group