category random replaced by a more generic category : list. You give a list

of element identifiers and it creates a page virtual temporary
category. random.php generates a randomized list of element id visible to
the user (according to permissions) and redirects to category.php.

Major problem : elements order is in id ascending order, I don't know how to
change order when having id1,id2,id3 and id2,id3,id1 (the display order is
the same)


git-svn-id: http://piwigo.org/svn/trunk@605 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2004-11-15 23:13:24 +00:00
parent b138e8aa07
commit 973e0f8806
5 changed files with 94 additions and 23 deletions
+4
View File
@@ -105,6 +105,10 @@ while ($row = mysql_fetch_array($result))
{
$url_link.= '&search='.$_GET['search'];
}
else if ($page['cat'] == 'list')
{
$url_link.= '&list='.$_GET['list'];
}
$template->assign_block_vars(
'thumbnails.line.thumbnail',