random image only from one album? random image only from one album?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

random image only from one album?

Started by DaBe, January 09, 2008, 07:47:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DaBe

Hello

How I can display only the random images from one album on the frontpage?



                    case 'random':
                        if ($cat == 0) display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;




is there the code or what other...?

pls help

just_some_guy

Yes. The code that you have found is simply telling coppermine to activate the "Random" section on the front page. You will need to find the code for calling up the images. Probebly the simplest way to make it for one album only would to add. WHERE aid= the id of the album to the database query.

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

phill104

The frontpage of what? Your site or coppermine?

If it's the frontpage of your site take a look at cpmfetch by vuud.

http://cpmfetch.fistfullofcode.com/
It is a mistake to think you can solve any major problems just with potatoes.

DaBe

on the frontpage from the coppermine gallery..

thx both

just some guy ..im noob in the php...in which database query i must take it in?

phill104

It is a mistake to think you can solve any major problems just with potatoes.

DaBe