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

0 Members and 1 Guest are viewing this topic.

Offline WWT

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #150 on: September 22, 2008, 04:00:15 PM »
no answer? no one?  :( Chris?  :roll:

Offline joe007

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #151 on: October 24, 2008, 04:59:53 PM »
Hi Chris,

I did all you told to modify the database (incl. the mods of V@no). But when I want to download, Il get a blank screen at

.../4images/download.php?action=lightbox

I use the newest release (1.7.6). Did I forgot something or is there another mod?

Thanks for your reply

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 #152 on: October 24, 2008, 09:22:17 PM »
in global.php find:
error_reporting(E_ERROR E_WARNING E_PARSE);

Insert below:error_reporting(E_ALL);
@
ini_set("display_errors"1);


See if any error shows when you download lightbox.
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 joe007

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #153 on: October 30, 2008, 01:09:15 PM »
Ok, this are the messages:


Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\vhosts\ixdreams.com\httpdocs\4images\global.php:1) in D:\Inetpub\vhosts\ixdreams.com\httpdocs\4images\includes\sessions.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\vhosts\ixdreams.com\httpdocs\4images\global.php:1) in D:\Inetpub\vhosts\ixdreams.com\httpdocs\4images\includes\sessions.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\vhosts\ixdreams.com\httpdocs\4images\global.php:1) in D:\Inetpub\vhosts\ixdreams.com\httpdocs\4images\includes\sessions.php on line 101

What did I wrong?

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 #154 on: October 30, 2008, 01:38:19 PM »
1) if you were using notepad or worldpad to edit files - don't. restore backups and do any changes you've done so far in another text editor.
2) when you save files after editing, make sure you save them not in UTF8/UNICODE encoding. or if you do save them in UTF8/UNICODE, make sure it saved without BOM

So far I can tell at least your global.php saved in UTF8/UNICODE with BOM, that's what these strange characters on top of the message are. Plus I assume same thing applied to 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 joe007

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #155 on: October 31, 2008, 08:54:00 PM »
Hi Chris,

in March 2005 you said, that you have got additional code:    

"Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #26 on: March 21, 2005, 02:47:04 PM »
   
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."
[/b]

Please could you post the additional code?

Thanks a lot.

« Last Edit: November 15, 2008, 07:27:44 PM by joe007 »

Offline joe007

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #156 on: October 31, 2008, 08:56:39 PM »
Hi V@no,

thanks a lot.  :lol:
It works now. I used the wrong editor. Now I've installed ConTEXT and all is well.

Offline paule

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #157 on: April 18, 2009, 04:42:12 PM »
Hallo,
ich habe den Mod installiert.  ( 1.7.6 )
Aber es gibt leider folgende Fehler: In der Datenbank: downloaded_image_ids und download_lastaction werden nach erfolgten Download keine Werte angezeigt. (Felder sind richtig angelegt.)

Wenn ich den Link im Member_profil.html benutze gibt es folgende Fehlermeldung:

DB Error: Bad SQL Query: SELECT downloaded_image_ids Ê Ê Ê Ê Ê Ê FROM 4images_users Ê Ê Ê Ê Ê Ê WHERE user_id = 1762
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '          FROM 4images_users             WHERE user_id = 1762' at line 2

Notice: Undefined variable: user_downloads_info in /var/www/search.php on line 64

Beim Link im ACP User kommt der Fehler:

Not Found

The requested URL /admin/Root_Pathsearch.php was not found on this server.

Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny2 with Suhosin-Patch Server at www.kosecki.de Port 80

Gruß paule

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #158 on: April 18, 2009, 06:22:34 PM »
entferne mal die Zeichen "Ê Ê Ê" dann sollte es laufen
sind bei jedem User auf deiner Seite über dem Benutzernamen zu sehen.
Danke Harald




Offline paule

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #159 on: April 18, 2009, 08:24:43 PM »
Hallo,

danke. Hab ich gemacht. Keine Änderung...

paule

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #160 on: April 19, 2009, 01:53:14 AM »
Hi paule, hast eine PN

zu deinem Problem, wenn in der Fehlermeldung immer noch die Zeichen sind, solltest Du die DB mal durchsuchen, die scheinen die Störung zu verursachen.

LG Harald
Danke Harald




Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #161 on: January 27, 2010, 12:26:29 PM »
es läuft auch unter 1.7.7 allerdinngs habe ich das problem, dass bei mir in meinem AdminProfil nichts steht was ich geladen habe ....

und habe dieses Jahr 1970 Problem.... obwohl ich auch diesen Code hier ergänzt habe aus einem Postiing vorher

Code: [Select]
          if ($key == "download_lastaction")
          {
            $additional_sql .= ", $key = UNIX_TIMESTAMP('".$HTTP_POST_VARS[$key]."')";
            continue;
          }

Grüße
Tobias

Offline viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #162 on: February 20, 2010, 05:51:53 PM »
Hallo Zusammen,

ich hab auch die 1.7.7. Die MOD habe ich genau nach Anleitung installiert. Es werden keine Fehler angezeigt. Nur wird beim Download in die USER Tabelle nichts eingetragen. Unter downloaded_images_ids steht überall  (NULL) und unter download_last_actions steht überall eine 0.
Somit kann bei der Auswertung auch nichts angezeigt werden.
Der Fehler liegt also in der download.php? Das Datumsproblem in der Auswertung habe ich auch. Unter den USER Details steht 1970-01-01 01:00.

Hat jemand einen Tip, bitte?

Holger



Nachtrag:

Trage ich unter downloaded_images_ids in die Datenbank ein oder mehrere ID ein, dann kann ich die Auswertung machen und alles funktioniert klasse. Das Datum ändert sich zwar, bleibt aber völlig falsch. Das Datumsproblem ist für mich aber zweitrangig. Wichtig wäre wie ich die Bild ID in die Datenbank bekomme.

Danke  Holger

Nachtrag:  Ich habs gefunden - rennt prima. Danke für den tollen MOD
« Last Edit: February 20, 2010, 07:14:03 PM by viadata »

Offline Hoang

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #163 on: June 02, 2010, 08:47:14 AM »
es läuft auch unter 1.7.7 allerdinngs habe ich das problem, dass bei mir in meinem AdminProfil nichts steht was ich geladen habe ....

und habe dieses Jahr 1970 Problem.... obwohl ich auch diesen Code hier ergänzt habe aus einem Postiing vorher

Code: [Select]
          if ($key == "download_lastaction")
          {
            $additional_sql .= ", $key = UNIX_TIMESTAMP('".$HTTP_POST_VARS[$key]."')";
            continue;
          }

Grüße
Tobias
which file need insert this code?

Offline viadata

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #164 on: September 27, 2010, 12:13:47 AM »
Hallo Chris,

ich benutze deine MOD und bin voll zufrieden. Gute Arbeit!
Für mich wäre es von großem Nutzen, wenn ich sowas wie mit den Downloads auch für den Leuchtkasten hätte.
Ich gehe auf auf USER bearbeiten und sehe in der List neben den Downloads auch den Inhalt des Leuchtkastens.

Geht das? Oder geht das vielleicht auch als PlugIn ?

Danke für einen Antwort.

Holger