Author Topic: Remove subcategory picture in "new entry"  (Read 3505 times)

0 Members and 1 Guest are viewing this topic.

Offline BEIJA

  • Pre-Newbie
  • Posts: 5
    • View Profile
Remove subcategory picture in "new entry"
« on: January 08, 2009, 02:39:30 PM »
Hi,
How can i remove the subcategory picture in "new entry" in main page? I donīt want that subcategory pictures show in "new entry".

Thanks

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Remove subcategory picture in "new entry"
« Reply #1 on: January 08, 2009, 03:39:11 PM »
... it is not a subcategory ... new images will found by search ...
... and how to remove the link : delete
Code: [Select]
<a href="{url_new_images}">{lang_new_images}</a>in /templates/<your_template>/home.html ...
« Last Edit: January 08, 2009, 04:22:46 PM by mawenzi »
Your first three "must do" before you ask a question ! ( Đ by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline BEIJA

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove subcategory picture in "new entry"
« Reply #2 on: January 11, 2009, 11:54:06 AM »
Hi mawenzi,
I did not justify myself well. I do not want that the loaded images in subcategories appear as new images in main page.

Regards

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: Remove subcategory picture in "new entry"
« Reply #3 on: January 11, 2009, 08:11:22 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").") AND NOT c.cat_parent_id
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 BEIJA

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Remove subcategory picture in "new entry"
« Reply #4 on: January 13, 2009, 04:02:32 PM »
Thanks a lot V@no


Regards