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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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 2 Guests 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