• [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 225039 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 #30 on: March 23, 2005, 12:44:22 AM »
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 above:
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}
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 Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #31 on: March 23, 2005, 01:46:05 AM »
I translate your answer to my "could you help me?" question as "no"  :wink:
It's actually more accurate to translate it as "I have no time right now"  :roll:

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #32 on: March 23, 2005, 08:12:27 AM »
It's actually more accurate to translate it as "I have no time right now"  :roll:
Your answer was so... "effective" that I could not leave it. :D Sorry if you feel offended.
I was just kidding and did not mean it as an insult

@V@no: I will try that! And I'm somehow sure this is all I wanted to have :D
I guess I may once again write the words "thank" and "you" addressed to you ;)
MAяTRIX


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #33 on: March 23, 2005, 03:02:22 PM »
Sorry if you feel offended.
I was just kidding and did not mean it as an insult
None taken

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #34 on: March 23, 2005, 11:56:44 PM »
@ V@no - this is exactly, what I wanted! :)
Thank you again for your help!
MAяTRIX


Offline Schmidti

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #35 on: March 28, 2005, 04:33:11 PM »
I'm not able to download the attachment, why?

Offline syndrom

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #36 on: March 28, 2005, 04:53:36 PM »
same here...

Quote
An Error Has Occurred!   
It seems that you are not allowed to download or view attachments on this board.

:?:



Offline Schmidti

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #37 on: March 29, 2005, 05:40:04 PM »
Can anyone upload this file again? Please!

Offline Schmidti

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #38 on: March 29, 2005, 09:55:18 PM »
Thanks now the script works!!!

But i have a question.
I have a picture with an ID.
How can i look who downloaded this picture?

I only found this function, where i can see what pictures a user has downloaded.
« Last Edit: March 30, 2005, 09:58:12 AM by V@no »

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 #39 on: March 29, 2005, 09:56:56 PM »
sorry with the method this mod stores the downloaded images, it would be difficult and require alot of server resources.
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 renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #40 on: June 13, 2005, 12:08:54 AM »
The MOD does the job great, but if you click "log out" from details.php it hangs (if you click another link right after it will continue to log out) Do you know why? How can I fix this?

 :?:

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 #41 on: June 13, 2005, 05:53:00 AM »
hangs? I dont think this mod has anything to do with logout function..
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 renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #42 on: June 13, 2005, 06:10:31 AM »
Thanks for the response! When I say "hangs" i mean is does not proceed to the homepage.  It stalls until another link is clicked?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #43 on: June 13, 2005, 04:49:10 PM »
You must have done a mistake somewhere else - when adding this MOD you don't edit logout.php - so it can't affect the logout process...  :|
Or am I wrong?
MAяTRIX


Offline renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #44 on: June 14, 2005, 03:38:46 AM »
Thanks!