Author Topic: Exclude Some Categories from {new_images}  (Read 4536 times)

0 Members and 1 Guest are viewing this topic.

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Exclude Some Categories from {new_images}
« on: December 31, 2010, 06:09:00 PM »
Is it at all possible to remove / exclude certain categories from showing up in the new images section of the home page?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Exclude Some Categories from {new_images}
« Reply #1 on: December 31, 2010, 06:57:24 PM »
In index.php find:
Code: [Select]
        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").")

Replace it with:
Code: [Select]
        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").",1,2,3,4,5)
(1,2,3,4,5 - are the categories IDs that should be excluded)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: Exclude Some Categories from {new_images}
« Reply #2 on: December 31, 2010, 07:40:37 PM »
perfect thank you very much!