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: Excluding entire category from meta albums?  (Read 2196 times)

0 Members and 1 Guest are viewing this topic.

dills84

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Excluding entire category from meta albums?
« on: March 06, 2009, 05:03:50 pm »

Hi there, I was just curious if anyone knew of a quick way to remove an entire Categorys albums from being displayed in the meta albums (lastup,lastcom,ect...). I tried using the "unwanted_metas" plugin, but i'd rather just have the gallery exclude it automaticly so i dont have to keep adding albums manually.

I tried changing this code in index.php
Code: [Select]
$result = cpg_db_query("SELECT description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid = '$cat'");
To

Code: [Select]
$result = cpg_db_query("SELECT description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid = '$cat' AND !cid = '41'");category ID 41 is the cid i'm trying to ignore from the query. But only being a php novice this didnt work. And i got a database error whenever i clicked on a thumbnail view page.

Any suggestions? Thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.