Page 1 of 1

Random Image Module just shows jpg. file name

Posted: Sat Jan 21, 2012 7:39 pm
by rpj
I have added the Random Image Module that comes with the Joomla! 1.7 install. I have a folder of small .jpgs (between 5k and 30k) in a folder on the server and set the folder's path in the Basic Options.

I know the module can see the folder because a random file name appears under the module title bar and changes with each refresh. When I move the folder the module reports 'No images'

I have also tried with a .png just incase the module did not like my - same non-result.

Why no images? Any ideas?

Thanks - RPJ

Re: Random Image Module just shows jpg. file name

Posted: Sun Jan 22, 2012 4:50 am
by imanickam
What is your site's URL so that others can see what is happening and suggest solutions?

Re: Random Image Module just shows jpg. file name

Posted: Sun Jan 22, 2012 8:01 am
by rpj
The module is at
www.skyminer.co.uk
on the left. It is titled VEEQ Pix

RPJ

Re: Random Image Module just shows jpg. file name

Posted: Thu Feb 16, 2012 2:13 pm
by rpj
Hi.

This module is still not working.

www.skyminer.co.uk
Module is titled VEEQ Pix in position 7 (left hand column)

Anyone got any ideas?


Thanks

RPJ

Re: Random Image Module just shows jpg. file name

Posted: Thu Feb 16, 2012 4:48 pm
by imanickam
Do you mean the module titled VEEQ People and Activities?

If so, this is not the core Random Image module. It is an extension (an I believe that it is NivoSlider).

Even in this I observer that some of the file names are simple such as 015-200.jpg and some of them are long with spaces in the file name such as Gardening group visit to Fleurs du Sud 7.07.09 (3)-200.jpg.

IMHO, it is better to avoid file names with spaces and special characters such as period (.).

--------------------------------------

If you want to use the Random Image Module, the default image type is jpg. If you want you could change this value to png or gif in the option Type of Image in the module.

Re: Random Image Module just shows jpg. file name

Posted: Thu Feb 16, 2012 5:11 pm
by rpj
Hi Imanickam

You are correct that it is NivoSlider. I just tried it instead of the Random Image. Then I took the Random Image off and forgot that someone may look at it from the forum. Doh!

I have put the module back and just left a dozen small images with simple short names (IMG_XXXX-200.jpg) but it still does not work.

Thanks

RPJ

Re: Random Image Module just shows jpg. file name

Posted: Thu Feb 16, 2012 5:42 pm
by imanickam
Reviewed the site again and if you analyze the HTML source created for the image that is shown below, you would notice that there are two // before images. The src should be "/images/front_page_pix/IMG_5928-200.jpg" - NOT "//images/front_page_pix/IMG_5928-200.jpg".

Code: Select all

<a href="/images/front_page_pix">
	<img src="//images/front_page_pix/IMG_5928-200.jpg" alt="IMG_5928-200.jpg" width="100" height="75" /></a>
</div>
I believe that is caused by the value of the parameter you have entered for the option Image Folder. I suspect, that you have entered the value /images/front_page_px instead of images/front_page_px

[Solved] Re: Random Image Module just shows jpg. file name

Posted: Thu Feb 16, 2012 5:56 pm
by rpj
You are quite correct. I removed the opening "/" in the Image Folder and the images appeared.

I am just starting out on Joomla after static HTML/PHP sites and am finding the method and underlying code quite baffling. I hope it will make sense one day.

Thanks for moving me on one more step.

Best

RPJ

Re: Random Image Module just shows jpg. file name

Posted: Wed Feb 22, 2012 4:05 pm
by Naboo32
Sorry, you can ignore this post. I thought that the solution to my problem (similar to the one above) was harder than it turned out to be and have now fixed it.

What a momentus debut that was to the these forums :-[ .

Re: Random Image Module just shows jpg. file name

Posted: Fri Jun 14, 2013 5:46 pm
by JoyP
Joomla 2.5.11

Hi all - I'm having this problem after moving my site out of a sub-directory & this seems to be the only feature that has gone AWAL.

I've checked that the path is correct, but it just displays a container momentarily and then leaves just the image title, so I know it's connecting to the image folder - just won't actually display the images (they are all JPEGs). Am I missing something glaringly obvious?

Many thanks for any pearls of wisdom!

Re: Random Image Module just shows jpg. file name

Posted: Sat Jun 15, 2013 6:14 am
by imanickam
JoyP: What is your site's URL so that others can see what is happening?

Re: Random Image Module just shows jpg. file name

Posted: Sun Jun 16, 2013 4:35 pm
by JoyP
Hi - imanickam - thanks for taking a look: it's at

www.apauto-tech.com

Re: Random Image Module just shows jpg. file name

Posted: Sun Jun 16, 2013 4:44 pm
by Per Yngve Berg
You also have a "//" at the start of the image path.

Re: Random Image Module just shows jpg. file name

Posted: Sun Jun 16, 2013 5:15 pm
by JoyP
Really? I've deleted and re-entered the path to try to make sure I haven't - but I'm using the parameters area to do this in the module editing window - is there a better place to do this?

Thanks for any advice you can give.

Re: Random Image Module just shows jpg. file name

Posted: Sun Jun 16, 2013 5:17 pm
by JoyP
AHA! I've got it now - what I had entered in

Basic Options / Image Folder settings was:

/images/random


This actually creates

//images/random
in the code

SO the solution is to change this to:

images/random

MANY thanks for helping me find my way to this :)

I'm sure I won't be the last to need it!

Best regards - Joy