forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: vegascoug on May 18, 2007, 09:01:27 pm
-
I have read the docs and posts on this board, but cannot find an answer to this. I know where to configure the number of rows for lastup,2, etc. If I change the 2 to a 3 I will see 3 rows of 4 thumbs vs. 2. My questions is how do I add the ability to go to the next group of latest additions? I don't use Coppermine all that often, this is for a customer of mine. She said that version 1.4.3 used to have those links, so maybe it was a mod. I didn't set this up for her, only helping her update it.
Is it a mod, or a setting within the config I cannot find to display all images. I don't want them all on the home page, but let's say I can set the value to 1 so it displays the first 4 thumbs, but I want to scroll through the images and see what the 4 before that was. On other pages there are links (numbers) in the nav bar so it seems that this should be possible.
Thank you!
Mike
-
Meta albums don't have pagination by default. You can edit index.php here
switch ($matches[1]) {
case 'breadcrumb':
// Added breadcrumb as a separate listable block from config
if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) theme_display_breadcrumb($breadcrumb, $cat_data);
break;
case 'catlist':
if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
if (isset($cat) && $cat == USER_GAL_CAT) {
list_users();
}
flush();
break;
case 'alblist':
list_albums();
flush();
break;
case 'random':
display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'lastup':
display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'lastalb':
display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
break;
case 'topn':
display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'toprated':
display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'lastcom':
display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'lasthits':
display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'anycontent':
if ($cat == 0) {
ob_start();
/**
* Any php code or HTML can be put in this file and will be displayed
*/
include('anycontent.php');
$anycontent = CPGPluginAPI::filter('anycontent',ob_get_contents());
ob_end_clean();
echo ($anycontent);
}
flush();
break;
}
And change false to true to enable tabs. I don't know how well that would work though.
-
hello
thx nibbler.
i have change the false to true. there display:
"0 files on 0 sites 1"
but when I go the the archive(../thumbnails.php?album=lastup&cat=0), then they display:
"32 files on 2 site(s) 1 2"
is everywhere a mistake ?
cpg the newest version with modpack 1.4.16 and the page is www.54art.ch
-
You can't paginate random files. That would make no sense.
-
ah yes..is my mistake..is tooo late.. ::)
thx very much!
-
hello
I search the same but a bit modify.
On the Gallery frontpage I want display only 4 rows and 4 cols...with the paged links..when I clicked on page two, than it display the next 4 rows and 4 cols...but when I go on "thumbnails.php?album=lastup" page..than I want display all pictures...is this possible and who can me help?
-
You're looking for something completely different and therefor you shouldn't have hijacked this thread. Locking. Start a thread of your own.