Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Random Images  (Read 3198 times)

0 Members and 1 Guest are viewing this topic.

thomas1981

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Random Images
« on: April 05, 2006, 11:05:56 am »

Hi folks,
in the admin area I set "breadcrumb/catlist/alblist". In this case the random pictures are disabled. That is ok. But now I need help:
I want to create a site called random_images.php and in this file I only want to show random images.
What is to do, showing "breadcrumb/catlist/alblist" in the cpg144\index.php and only "random,2/lastup,2" in the "random_images.php"?

Kind regards
« Last Edit: April 05, 2006, 06:17:05 pm by GauGau »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Random Images
« Reply #1 on: April 05, 2006, 12:48:08 pm »

/**
 * display_thumbnails()
 *
 * Generates data to display thumbnails of pictures in an album
 *
 * @param mixed $album Either the album ID or the meta album name
 * @param integer $cat Either the category ID or album ID if negative
 * @param integer $page Page number to display
 * @param integer $thumbcols
 * @param integer $thumbrows
 * @param boolean $display_tabs
 **/

function display_thumbnails($album, $cat, $page, $thumbcols, $thumbrows, $display_tabs)

eg:
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Random Pics');
display_thumbnails('random'01$CONFIG['thumbcols'], 2false);
pagefooter();
?>

thomas1981

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Random Images
« Reply #2 on: April 05, 2006, 05:59:33 pm »

Hello,
thanks for your answer! Everything works! :)

Kind regards



Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.