Author Topic: Top 10 (or more) images in ACP?  (Read 4397 times)

0 Members and 1 Guest are viewing this topic.

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Top 10 (or more) images in ACP?
« on: July 19, 2005, 12:24:20 AM »
Is there a Mod, or can one be made, that will show the Top 10 (or more) categories by hits, images by hits/rating/votes/downloads in the ACP? I'd like to be able to see more than the Top 5. I'd like to see the top 10-20:) Thanks!
Namaste,
Tina

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: Top 10 (or more) images in ACP?
« Reply #1 on: July 19, 2005, 01:11:17 AM »
admin/home.php:
Code: [Select]
$stats_limit = 5;
;)
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 IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: Top 10 (or more) images in ACP?
« Reply #2 on: July 19, 2005, 01:16:39 AM »
Thanks, once again, V@no!  :D
Namaste,
Tina

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: Top 10 (or more) images in ACP?
« Reply #3 on: July 19, 2005, 01:28:25 AM »
Quick question V@no (or anyone else). I was just scanning through the code while changing the setting and was wondering what these do? I'm just wondering if these are something I may want to change for my own preference.

$per = intval($row['cat_hits'] / $max * 100);


$per = intval($row['image_hits'] / $max * 100);


$per = intval($row['image_rating'] / $max * 100);


$per = intval($row['image_votes'] / $max * 100);


$per = intval($row['image_downloads'] / $max * 100);






Namaste,
Tina

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: Top 10 (or more) images in ACP?
« Reply #4 on: July 19, 2005, 02:52:45 AM »
these are simple mathematic alghoritm to calculate procentage.
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)