Random Image Module just shows jpg. file name

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

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.
User avatar
rpj
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Sat Jan 21, 2012 4:08 pm

Random Image Module just shows jpg. file name

Postby rpj » Sat Jan 21, 2012 7:39 pm

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

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 24772
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Random Image Module just shows jpg. file name

Postby imanickam » Sun Jan 22, 2012 4:50 am

What is your site's URL so that others can see what is happening and suggest solutions?
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
rpj
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Sat Jan 21, 2012 4:08 pm

Re: Random Image Module just shows jpg. file name

Postby rpj » Sun Jan 22, 2012 8:01 am

The module is at
www.skyminer.co.uk
on the left. It is titled VEEQ Pix

RPJ

User avatar
rpj
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Sat Jan 21, 2012 4:08 pm

Re: Random Image Module just shows jpg. file name

Postby rpj » Thu Feb 16, 2012 2:13 pm

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
Joomla 2.5 / MySQL5 / PHP 5.2 / Apache
Windows7 / Firefox 3.6 (usual browser)

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 24772
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Random Image Module just shows jpg. file name

Postby imanickam » Thu Feb 16, 2012 4:48 pm

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.
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
rpj
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Sat Jan 21, 2012 4:08 pm

Re: Random Image Module just shows jpg. file name

Postby rpj » Thu Feb 16, 2012 5:11 pm

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
Joomla 2.5 / MySQL5 / PHP 5.2 / Apache
Windows7 / Firefox 3.6 (usual browser)

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 24772
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Random Image Module just shows jpg. file name

Postby imanickam » Thu Feb 16, 2012 5:42 pm

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
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
rpj
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Sat Jan 21, 2012 4:08 pm

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

Postby rpj » Thu Feb 16, 2012 5:56 pm

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
Joomla 2.5 / MySQL5 / PHP 5.2 / Apache
Windows7 / Firefox 3.6 (usual browser)

Naboo32
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 22, 2012 3:49 pm

Re: Random Image Module just shows jpg. file name

Postby Naboo32 » Wed Feb 22, 2012 4:05 pm

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 :-[ .

JoyP
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Sat Aug 02, 2008 7:46 am

Re: Random Image Module just shows jpg. file name

Postby JoyP » Fri Jun 14, 2013 5:46 pm

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!

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 24772
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Random Image Module just shows jpg. file name

Postby imanickam » Sat Jun 15, 2013 6:14 am

JoyP: What is your site's URL so that others can see what is happening?
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

JoyP
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Sat Aug 02, 2008 7:46 am

Re: Random Image Module just shows jpg. file name

Postby JoyP » Sun Jun 16, 2013 4:35 pm

Hi - imanickam - thanks for taking a look: it's at

www.apauto-tech.com

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 22034
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Random Image Module just shows jpg. file name

Postby Per Yngve Berg » Sun Jun 16, 2013 4:44 pm

You also have a "//" at the start of the image path.

JoyP
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Sat Aug 02, 2008 7:46 am

Re: Random Image Module just shows jpg. file name

Postby JoyP » Sun Jun 16, 2013 5:15 pm

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.
Last edited by JoyP on Sun Jun 16, 2013 5:19 pm, edited 1 time in total.

JoyP
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Sat Aug 02, 2008 7:46 am

Re: Random Image Module just shows jpg. file name

Postby JoyP » Sun Jun 16, 2013 5:17 pm

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


Return to “Extensions for Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 1 guest