• [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 225076 times)

0 Members and 1 Guest are viewing this topic.

Offline animecivil

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #75 on: January 14, 2006, 06:03:55 AM »
The download seems to be down

Offline animecivil

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #76 on: January 14, 2006, 06:05:41 AM »
Lol, nvm

Offline binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #77 on: January 25, 2006, 03:17:37 AM »
Hai,
 I have installed the MOD, there are no erors and there are no results as well.While installing the 4i_install_tud.php, the database password is written wrong and I cant change it as well. Where would I have gone wrong. I have reinstalled this 3 times. Kindly someone help.
Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

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 #78 on: January 25, 2006, 03:22:16 AM »
The database password is being taken from config.php if its wrong there, then I dont know how your gallery is working at all...
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 binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #79 on: January 25, 2006, 05:11:04 PM »
Hai,
 To start from scratch, how do I UNINSTALL 4i_install_tud.php . Also since I am changing the orginal files, can someone post the changed files ( ver.1.71). This would be immensely helpful as there would be absolutely no chance of error. I hope all MODS provide a .zip download of all changed files.
Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

Offline ktwenrick

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #80 on: March 12, 2006, 01:05:11 AM »
does this work with ver. 1.7.2 ?

Offline derStephan

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • Foto-Stadtallendorf
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #81 on: March 14, 2006, 07:47:12 PM »
does this work with ver. 1.7.2 ?

In admin/users.php  (1.7.2)  i could not find  "show_input_row($lang['field_lastaction'].$lang['date_desc'], "user_lastaction", $user_row['user_lastaction'], $textinput_size);"

In that case i think, there must be different changes to work with 1.7.2.

Who can help?

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 #82 on: March 15, 2006, 02:45:23 AM »
instead of show_input_row search for show_date_input_row (plus the rest of the line)

If that is the only issue, I'll update the orignal topic with v1.7.2 update.
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 derStephan

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • Foto-Stadtallendorf
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #83 on: March 15, 2006, 05:49:11 PM »
Thank you V@no.

It works with 1.7.2 ! GREAT MOD!!!

A Question:
If i will erase the saved "Image_ID"s for a special User, should i edit the users.php and add something like "if ($action == "clear_image_ids")" with a following select-funcion for deleting the table?

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #84 on: March 15, 2006, 09:46:26 PM »
just do it by editing the user.
then you find in admincp an text field, with the image ids,
which you can just delete.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline derStephan

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • Foto-Stadtallendorf
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #85 on: March 16, 2006, 12:27:42 PM »
If i will editing an user, i got a DB Error

Bad SQL Query: UPDATE 4images_users SET user_level = 2, user_name = 'bbb', user_email = 'bbb@test.com', user_showemail = 1, user_allowemails = 1, user_invisible = 0, user_joindate = UNIX_TIMESTAMP('2006-03-15 19:53'), user_lastaction = UNIX_TIMESTAMP('2006-03-15 21:46'), user_homepage = '', user_icq = '', downloaded_image_ids = '34 31 32 2', download_lastaction = '2006-03-15 01:20' WHERE user_id = 6

If the download_transaction field is "1" or above (only a number), the user will be edited correctly.

I'm not a php specialist... i was searching in the users.php and found the $sql = "UPDATE ".USERS_TABLE." with ...".$additional_sql." at the end of the SET Command. Could it be, that in the "$additional_sql" the UNIX_TIMESTAMP ist missing???

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 #86 on: March 16, 2006, 02:07:08 PM »
what 4images version?
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 IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #87 on: March 17, 2006, 10:30:21 AM »
should the value for  download_lastaction you have is an date format,
but shouldn't be this not an unix timestamp?

Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline derStephan

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • Foto-Stadtallendorf
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #88 on: March 17, 2006, 11:29:46 AM »
what 4images version?
I've modified the 1.7.2 Version.
Everything is ok. The downloaded image ID's will be displayed, the last date of downloaded image etc.
Remeber: the problem occurs only by pressing the button to update the user. If the field "download_lastaction" is filled with a number, there is no error.

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 #89 on: March 17, 2006, 03:18:37 PM »
I guess, you've missed some steps, the UNIX_TIMESTEMP is present in the tutorial, and missing in your error message
Btw, the error message you've showed does not looks like full, you've cut out the last, most important part of it. next time please post the exact message.
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)