forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: thomas1981 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
-
/**
* 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:
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
pageheader('Random Pics');
display_thumbnails('random', 0, 1, $CONFIG['thumbcols'], 2, false);
pagefooter();
?>
-
Hello,
thanks for your answer! Everything works! :)
Kind regards