Author Topic: need one simple mod (maybe only help)  (Read 4302 times)

0 Members and 1 Guest are viewing this topic.

Offline idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
need one simple mod (maybe only help)
« on: June 01, 2006, 05:36:05 PM »
ok... becouse i have on my site category for adult, so i want to make that, to dont show that category new images in main page at new images... and when you click on that category, to show first some text becouse its for adult and links ENTER,QUIT, if click QUIT he will back to main page... i think you understand  8) so help me  :mrgreen:

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: need one simple mod (maybe only help)
« Reply #1 on: June 02, 2006, 12:24:31 AM »
http://www.4homepages.de/forum/index.php?topic=7113.0 (even though it talks about images only, it also supports per-category terms)

as of new images on index page, you can exlude categories by replacing in index.php:
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").")With this:
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").",XX,XX,XX,XX)Replace XX with the category IDs you would like to exclude, or if you want to automaticaly exclude categories with "terms" from the mode above, you can replace that line with this:
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").") AND c.terms = 0
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 idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: need one simple mod (maybe only help)
« Reply #2 on: June 02, 2006, 10:35:12 AM »
Thanks. Terms mod not installed yet but that code to dont show new images works perfect  8)

Offline idijotaz

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • CLON Entertainment
Re: need one simple mod (maybe only help)
« Reply #3 on: June 02, 2006, 11:22:21 AM »
now 1 more question...
how to make to dont show that category images in random image?  8)