4images Issues / Ausgaben > Discussion & Troubleshooting

Exclude Category from New Images

(1/3) > >>

sigma.:
Hi,

Is there a way to exclude images being added to the latest images from a certain category, or one that has certain user group permissions attached to it?

I basicly dont want images from a certain category to show up in the 'New Images' area of my site.

Is this possible?

mawenzi:
...if you want to exclude certain categories (e.g. 1,2,3), than use in your new_images_query ...

--- Code: ---AND i.cat_id NOT IN (1,2,3)

--- End code ---

sigma.:
Hi mawenzi,

are saying this is only possible in phpMyadmin?

What Im just trying to do is exclude a certain category from the {new_images} section on my site. So basicly no new thumbnails/images get displayed in {new_images} from for example cat_id=24

mawenzi:
... in index.php find in //--- Show New Images ---- the following ...

--- Code: ---WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")

--- End code ---

... and add after ...

--- Code: ---AND i.cat_id NOT IN (24)

--- End code ---

sigma.:
dam man, i wish i had your skills. Thank you very much AGAIN. Ive excluded multiple categories by seperating them using a comma. (192,67,84) and so on.
Works great :)

Navigation

[0] Message Index

[#] Next page

Go to full version