• [Mod] Keep Track Of What Each User Has Downloaded 4 0 5 1
Currently:  

Author Topic: [Mod] Keep Track Of What Each User Has Downloaded  (Read 225148 times)

0 Members and 1 Guest are viewing this topic.

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: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #60 on: August 12, 2005, 12:00:50 AM »
using any mysql managers (phpmyadmin or such) find the user account u are testing with (in 4images_users  table) and look if the account has anything in 'downloaded_image_ids' field (wait, u should be able see that from ACP -> Edit users ;))
If you see some numbers, then there is something wrong with your search.php, if the field is empty, then there is something wrong with download.php. Perhaps u were trying to test with administrator's account, and didnt change the needed line in download.php as suggested in the tutorial (by default downloads being saved only for regular members, not admins)
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 Funix

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #61 on: August 12, 2005, 01:24:09 PM »
i love you, now it's working!! i'm using the mod which is for the admins as well.... but befor i didnt use the admin, but it was not working...crazy....but now everything is sweet, thanks!!! :-)


is it possible to see how many times a user downloaded the same file?

cheers,
funix

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #62 on: October 09, 2005, 12:51:37 PM »
Hello,

the mod works fine, thx for this !!!!!!!

If i get it right you can see it in the member profile box, and in the acp how much each user has downloaded.
But for this you have to click on the users name, 1 by one.
Is there a way to get a summary ?
Like in the memberlist. Now you can see in the memberlist how much each user has uploaded, could you see there how much they have downloaded ?

Offline Buster

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #63 on: November 17, 2005, 10:55:49 PM »
Hi Chris, hi V@no,
installation went quite well with no errors at all, but in my database downloaded_image_ids remains NULL and downloaded_lastaction 0 as well. I tried downloads with various testusers, but nothing happens.
No reaction as well after I changed the Mod to admin-mode.
Any suggestion?
Regards,
Reiner

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: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #64 on: November 17, 2005, 11:55:07 PM »
perphaps made a misstake in download.php
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 Buster

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #65 on: November 18, 2005, 08:45:42 AM »
perphaps made a misstake in download.php
So did I :(
Just inserted your code there where it should not be :)
Works fine now!
Regards,
Reiner

Offline Buster

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #66 on: November 18, 2005, 10:06:53 AM »
Hello,

the mod works fine, thx for this !!!!!!!

If i get it right you can see it in the member profile box, and in the acp how much each user has downloaded.
But for this you have to click on the users name, 1 by one.
Is there a way to get a summary ?
Like in the memberlist. Now you can see in the memberlist how much each user has uploaded, could you see there how much they have downloaded ?
That would be excellent!
Regards,
Reiner

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #67 on: December 26, 2005, 12:37:32 AM »
Is it possible to show the last 10 downloaded files with this mod?

Project offline

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: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #68 on: December 26, 2005, 07:14:41 AM »
This mod does not store the time the file was downloaded, therefore no way to know which file was downloaded when.
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 Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #69 on: December 26, 2005, 03:28:34 PM »
Okay

anyway a great MOD  :D

Project offline

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #70 on: December 30, 2005, 11:55:28 PM »
I dont know if this will be enough for u, but try this:
For ACP:
replace in admin/users.php
Code: [Select]
   $additional_user_fields['downloaded_image_ids'] = array("<a href=\"".ROOT_PATH."search.php?user_downloads=".$user_row['user_id']."\" target=\"_blank\">".$lang['downloaded_image_ids']."</a>", "textarea", 0); // Mod: Track User DownloadsWith this:
Code: [Select]
  $additional_user_fields['downloaded_image_ids'] = array("<a href=\"".ROOT_PATH."search.php?user_downloads=".$user_row['user_id']."\" target=\"_blank\">".$lang['downloaded_image_ids']."</a> (".(empty($user_row['downloaded_image_ids']) ? 0 : count(explode(" ", trim($user_row['downloaded_image_ids'])))).")", "textarea", 0); // Mod: Track User Downloads

For member profile:
In member.php find:
Code: [Select]
      "url_user_downloads" => ($user_info['user_level'] == ADMIN) ? $site_sess->url(ROOT_PATH."search.php?user_downloads=".$user_row['user_id']) : "" // Mod: Track User DownloadsInsert below:
Code: [Select]
      "count_user_downloads" => ($user_info['user_level'] == ADMIN) ? "(".(empty($user_row['downloaded_image_ids']) ? 0 : count(explode(" ", $user_row['downloaded_image_ids']))).")" : "" // Mod: Track User DownloadsIn member_profile.html add {count_user_downloads}

HI there, when i do the changes in member.php i have a blank page. Can anyone say me why???

No other question ;)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #71 on: December 31, 2005, 01:09:00 AM »
I've updated the code you are referring to, remove the changes and try again with the updated instructions. (now you'll need insert it above, not below and the new line has a comma at the end.)
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 fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #72 on: January 08, 2006, 10:26:22 PM »
Thank you guys!
The MOD works excellent.
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #73 on: January 10, 2006, 09:33:54 PM »
It seems I have a problem with this MOD  :?

It shows me files which I never have downloaded! I cleared this listof image IDs in ACP, but it logs again files which I don´t have downloaded :|

Project offline

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: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #74 on: January 11, 2006, 01:03:11 AM »
1) Are you testing it as regular member or as admin?
2) have you tryed different member?
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)