Quote:
Originally Posted by Wayne Luke
Can we exclude galleries by ID?
|
Plugin -
Forumhome: Gallery Main
Try this:
Find:
Code:
$getrand = $db->query_read("
SELECT imageid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");
Replace
Code:
$getrand = $db->query_read("
SELECT imageid, catid, images.title, filename, thumbname, originalname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1 $ignquery
AND catid in (1,2,3,4,5,6,7,8,9)
ORDER BY $galleryorderby
LIMIT $galleryimagelimit
");
The
RED can be filled in by Cat ID's
Quote:
Originally Posted by dbembibre
No, is based in gallery permissions
|
True, but limits of cats is handy to promote ideas you wish to convay to the plublic vs. random all cats.