• [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 224928 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: Help please....
« Reply #15 on: June 11, 2003, 01:07:46 AM »
Quote from: crazy4ke
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/casafeli/public_html/darkroom/includes/functions.php on line 128

Fatal error: Call to undefined function: get_php_version() in /home/casafeli/public_html/darkroom/global.php on line 248

No, this error has nothing to do with trailing space.
Check on lines 127-129 make sure u did not any mistakes there (extra or missing quote, bracket)
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 crazy4ke

  • Pre-Newbie
  • Posts: 7
    • View Profile
[Mod] Keep Track Of What Each User Has Downloaded
« Reply #16 on: June 11, 2003, 01:14:57 AM »
Thanks.

That was odd.  That code I didn't modify at all.  Must have been the file editor I used from my site's control panel.  I'm up now.

Nice mod!

Offline bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
mod revision for downloaded images [mod]
« Reply #17 on: June 11, 2003, 02:59:30 PM »
v@no or chris -

any chance you can create a plug-in or modify the code so that it can show the admin how many different users have downloaded a specific image(s) ==>

image id: user 1 (date/time), user 2 (date/time) , user 3 (date/time) ..

with the abilty for the admin to print an image id report with a variable range for ==> user, date/yr .. etc

this would be very helpful to tracking/accounting purposes

thanx
bruce

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[Mod] Keep Track Of What Each User Has Downloaded
« Reply #18 on: June 11, 2003, 03:22:43 PM »
Can't speak for v@no but I won't have time to tackle anything like this until Sept/Oct.  This time of the year is the busiest for me.  :cry:

Offline gpunto

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.gpunto.com
[Mod] Keep Track Of What Each User Has Downloaded
« Reply #19 on: June 25, 2003, 07:37:15 PM »
Hello to all, thanks for this aid. For my it is very important that
this works but gives the following errors me, me could throw a cable?

Parse error:  parse error, unexpected T_GLOBAL in /home/tele/public_html/includes/functions.php on line 1224
 
 Parse error:  parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/tele/public_html/includes/sessions.php on line 35

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
[Mod] Keep Track Of What Each User Has Downloaded
« Reply #20 on: June 25, 2003, 09:30:20 PM »
Quote from: gpunto
Parse error:  parse error, unexpected T_GLOBAL in /home/tele/public_html/includes/functions.php on line 1224
 
 Parse error:  parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/tele/public_html/includes/sessions.php on line 35

this means, that u did something wrong while installing this mod, restore your backups and try again. ;)
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 syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
Getting errors Help pls
« Reply #21 on: June 28, 2003, 12:17:54 AM »
when i open the 4i_install_tud.php
i get these errors
Quote
Parse error: parse error in /Library/WebServer/Documents/2ddata/includes/functions.php on line 1118

Parse error: parse error, expecting `')'' in /Library/WebServer/Documents/2ddata/includes/sessions.php on line 46



when i open index.php i get these errors after trying to install this mod
Quote

Parse error: parse error in /Library/WebServer/Documents/2ddata/includes/functions.php on line 1118

Parse error: parse error, expecting `')'' in /Library/WebServer/Documents/2ddata/includes/sessions.php on line 46

DB Error: Bad SQL Query: SELECT a.cat_id, a.auth_viewcat, a.auth_viewimage, a.auth_download, a.auth_upload, a.auth_directupload, a.auth_vote, a.auth_sendpostcard, a.auth_readcomment, a.auth_postcomment FROM imgem_2d_groupaccess a, imgem_2d_groupmatch m WHERE m.user_id = AND a.group_id = m.group_id AND m.groupmatch_startdate <= 1056752066 AND (groupmatch_enddate > 1056752066 OR groupmatch_enddate = 0)
You have an error in your SQL syntax near 'AND a.group_id = m.group_id AND m.groupmatch_startdate <= 105675206' at line 4

Fatal error: Call to a member function on a non-object in /Library/WebServer/Documents/2ddata/includes/page_header.php on line 69
any help

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[Mod] Keep Track Of What Each User Has Downloaded
« Reply #22 on: June 28, 2003, 04:28:43 PM »
Restore your backups and try installing again.  Somewhere along the way you've missed a closing " ) or ;

Recheck your work carefully.  Good luck.

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #23 on: March 20, 2005, 09:07:44 PM »
I'm using this mod more for a general overview of how many times users had downloaded some pics...
How is it possible to count the number of pictures the user downloaded if I have installed this modification  :?:

Thank you in advance...  :)

MAяTRIX


Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #24 on: March 21, 2005, 06:03:46 AM »
I think there is an error with this code, it looks as though it was rewritten by dreamweaver or something:
Code: [Select]
<option value="<?php echo get_user_table_field&#40;"", "download_lastaction"&#41;; ?>"><?php echo $lang&#91;'field_download_lastaction'&#93;; ?></option>should actually say this
Code: [Select]
<option value="<?php echo get_user_table_field("""download_lastaction"); ?>"><?php echo $lang['field_download_lastaction']; ?></option>
 :D

Now back to implementing this mod to see how it works :)

Robert
« Last Edit: March 23, 2005, 12:26:50 AM by V@no »
As long as I can finish my site before I die.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #25 on: March 21, 2005, 06:58:37 AM »
It looks as though the php install file also has to be corrected 8O
As long as I can finish my site before I die.

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 #26 on: March 21, 2005, 02:47:04 PM »
Actually it looks like the forum barfed somehow.  When I clicked the modify button for the original post, the code was just fine.

It should be fixed now and I also uploaded the database installer.  No more need to copy and paste it

I also have additional code that's not posted yet which sends you an email with the details of each download.  If the user does a ZIP download, you get the details of all the files in the ZIP.  Not sure when I'll have time to post this.  :roll:

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #27 on: March 21, 2005, 03:32:18 PM »
Not sure when I'll have time to post this.  :roll:

We hope soon ;)

Could you help me with the "downloads-sum"?
I guess that it is not really hard to code, but I don't know how to write MySQL queries.  :cry:
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 #28 on: March 22, 2005, 06:31:20 PM »
NOTE: This is NOT a download stats or counter mod

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #29 on: March 22, 2005, 09:37:54 PM »
 :) I am able to read and I did also understand what you wrote, Chris ;)

Is it really so hard to get this one "number"? Just the sum of entries...   :|

I translate your answer to my "could you help me?" question as "no"  :wink:
MAяTRIX