Random Image in Mambo

Jace1311

Joined: 2004-01-25
Posts: 45
Posted: Tue, 2005-02-15 23:46

Hi, I am using Mambo CMS and would like to display random images from my Gallery on the CMS random image module, can anybody help me out? Tried to put the url in Mambo but didn't display anything.

:)

 
cferd
cferd's picture

Joined: 2005-02-14
Posts: 2
Posted: Wed, 2005-02-16 00:06

Hello Jace, Hello board.

Try the attached mod. It works pretty well for me. Only thing is after you install it, you can't choose to have it show on the Gallery "embedded" component page. I also found out that it can't be viewed in the DWodp Web Directory component either. Other than those 2, no problems.

AttachmentSize
mod_block_random.zip1.72 KB
 
Jace1311

Joined: 2004-01-25
Posts: 45
Posted: Wed, 2005-02-16 00:31

Hi cferd! Thanks! that worked... Except!: Can I point the Parameter to a particular Album only instead of entire Gallery content?

Thanks in advance anyone!

:)

 
Jace1311

Joined: 2004-01-25
Posts: 45
Posted: Wed, 2005-02-16 00:53

Another question, is there a way to edit the links and image, ie. there's a break <br> between image and name and url of album, making it too spaced apart. As well as if it's possible to change the pic size.

????
:)

 
Jace1311

Joined: 2004-01-25
Posts: 45
Posted: Wed, 2005-02-16 06:22

the Random image is working, except now when I click on the image, the image shows on the CMS content body area and in place of where the random image icon was, I'm getting this error:

Fatal error: Cannot redeclare editfield() (previously declared in /home/diygiftp/public_html/'site'/'gallery'/util.php:27) in /home/diygiftp/public_html/'site'/'gallery'/util.php on line 27

anyideas??