Author Topic: Show DOWNLOAD COUNT of image on the CATEGORY pages ?  (Read 8060 times)

0 Members and 1 Guest are viewing this topic.

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Show DOWNLOAD COUNT of image on the CATEGORY pages ?
« on: December 02, 2002, 03:13:34 PM »
On the categories.php pages that come up when you select a certain catgegory that contains all the thumbs ....

I'd like to add the download count underneath HITS on my category pages so all at one glance I can see how popular which images are.

Can someone please help me with this???  I'm pretty good at following instructions if someone can tell me where to add the codes.

Thanks,
Becky

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
Show DOWNLOAD COUNT of image on the CATEGORY pages ?
« Reply #1 on: December 02, 2002, 09:48:12 PM »
Two steps:
1. edit thumbnail_bit.html file
add this:
Code: [Select]
{lang_downloads}{image_downloads}
2. edit categories.php
search for:
Code: [Select]
 "upload_button" => $upload_button,
and add after:
Code: [Select]
 "lang_downloads" => $lang['downloads'],
done.
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 seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
THANK YOU!
« Reply #2 on: December 02, 2002, 10:13:15 PM »
Thank you so much. That worked perfectly! Saves me so much work trying to figure out which images to keep after several months!

I appreicate your tips!!!

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
Show DOWNLOAD COUNT of image on the CATEGORY pages ?
« Reply #3 on: December 08, 2002, 09:24:03 PM »
just noticed that with this modification it shows " 0 " in main page, under new images.
so, u'll need open index.php file, search for:
Code: [Select]
 "msg" => $msg,
and add after:
Code: [Select]
 "lang_downloads" => $lang['downloads'],
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 seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Thank you!
« Reply #4 on: December 10, 2002, 04:58:20 PM »
Yes thank you so much. I've added that to the index.php file. Worked like a charm.

Offline Vraxor

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • http://tc-revolution.net
Show DOWNLOAD COUNT of image on the CATEGORY pages ?
« Reply #5 on: December 11, 2002, 11:15:11 AM »
Hmm, might be that I'm wrong, but to do it totally correct, you will need to add it to the search.php and the lightbox.php files too.

I'm at work at the moment and so I cannot give you the location where to post it in the files, but maybe V@no knows.

Cheers,
Vraxor

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
Show DOWNLOAD COUNT of image on the CATEGORY pages ?
« Reply #6 on: December 14, 2002, 09:52:34 PM »
Ops....just found another way to edit just one file:
in functions.php search for
Code: [Select]
   "image_file_name" => $image_row['image_media_file'],
and add after:
Code: [Select]
 "lang_downloads" => $lang['downloads'],
with this changes u dont need do anything with any other .PHP files.  :oops:  :wink:
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 seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
functions.php ??
« Reply #7 on: December 20, 2002, 09:11:24 PM »
Hmmm... as far as I can tell I don't see a "fuctions.php" file in my 4images directory anywhere...  maybe I'm blind though...

Becky

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
Show DOWNLOAD COUNT of image on the CATEGORY pages ?
« Reply #8 on: December 20, 2002, 11:07:04 PM »
it's in /includes/ folder ;)
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 seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Hmmmm.....
« Reply #9 on: December 21, 2002, 10:34:19 PM »
tried that on a friends gallery. It didn't work.  But I had no problems with the other method... Thanks anyway.