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  [ 5 posts ] 
Author Message
PostPosted: Fri Sep 09, 2005 1:25 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Aug 26, 2005 5:52 pm
Posts: 2
Location: Dyersville, Iowa USA
I've worked with both the standard mod_random_image and with random_image_linker by Ben Jones, but neither of them appears to be capable of doing what I'm looking for.

Does anyone know of a module that will display a random image that will allow a different link for each image?  I know I can probably do a workaround by making a link out of an {mosimage} in the newsflash module, but I would like to have a little more  straightforward solution.

Any ideas? ???

Mark Schuster

PostPosted: Tue Oct 04, 2005 6:09 am 
Joomla! Guru
Joomla! Guru

Joined: Thu Aug 18, 2005 9:12 pm
Posts: 980
Location: UK
I am looking for something similar, I have random image based quotes that I would like to link through to a specific page,

i.e quote_1 link through to quote_1.htm
    quote_2 link through to quote_2.htm

Anyway of doing this, I don't mind hacking the code.


PostPosted: Tue Oct 04, 2005 3:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 19, 2005 7:02 pm
Posts: 17
Quoted from the old forums (UltraMagna, March 2005):

In the Random Image admin area, just enter a "#" sign in the Link Parameter . Then, go to your "mod_random_image.php" file and change this (around line 65):

echo "\n";

with this:

echo "

Also, be sure to use your image directory location above and change _blank back to _self if you don't wish link to another page.

PostPosted: Thu Oct 06, 2005 8:55 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 20, 2005 9:03 pm
Posts: 249
Location: Elsewhere

I needed to do the same thing, I found this module 'Piks' on Joomla France, you can have a different link for each image -

PostPosted: Wed Dec 07, 2011 9:21 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 26, 2009 6:11 pm
Posts: 21
I was trying to do the same thing and couldn't find a plugin or module to do it, so I came up with a work around.

On refresh, randomly rotate images each with it's own link.

I made 3 .html files - one for each of my images with this code:

<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<body style="margin: 0px; padding: 0px;">
<a href="" target="_parent">
<img src="images/home_btn3.gif" />

Then I used the wrap module that comes with joomla to iframe a .php file with this in it. (randomly grabs the file type you designate '.html')
$files = glob('{*.html}', GLOB_BRACE);

Then used "modules anywhere" to place it where I wanted in the site.

There maybe a cleaner way to do this, but it works. Hope it helps.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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