Author Topic: "Top Bilder" Bestimmte Bilder ausschließen /Exclude Images from statistic  (Read 3937 times)

0 Members and 1 Guest are viewing this topic.

Offline ipicture

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • Ipicture - Die Welt im Bild
Bei der Statistik "Top Bilder" (höchste/meiste Bewertungen bzw. meisten Hits/Downloads) möchte ich bestimmte Bilder ausschließen, die man anhand des Bildnamens erkennen soll.

Ist dies möglich?

I´d like to exclude special images from the statistic "top images", which are should find by the image name.
Is that possible?

Danke
Thanks
Klaus

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
In top.php search for
Code: [Select]
        WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id(there should be atleast 4 instances of such line)
Replace all of them with:
Quote
        WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id AND i.image_id NOT IN (2,20,1,1500)
Replace 2,20,1,1500 with the image ids u dont want to show.
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)