4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2018, 02:22:43 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [Mod] Keep Track Of What Each User Has Downloaded
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 ... 7 8 9 10 [11] 12 » »» Print
Current Topic Rating: *****
Author Topic: [Mod] Keep Track Of What Each User Has Downloaded  (Read 170427 times)
WWT
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #150 on: September 16, 2008, 07:04:20 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.  Rolling Eyes
hello everyone,
i know this has been posted over 3 years ago  Embarassed but has Chris made public the code for this addon? Smile normal mode works fine but i can't track lightbox zip download.
what he said at that time sounds really god.

thank you
« Last Edit: September 16, 2008, 07:33:58 PM by WWT » Logged
WWT
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #151 on: September 22, 2008, 04:00:15 PM »

no answer? no one?  Sad Chris?  Rolling Eyes
Logged
joe007
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #152 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #153 on: October 24, 2008, 09:22:17 PM »

in global.php find:
1
error_reporting(E_ERROR E_WARNING E_PARSE);
Insert below:
1
2
error_reporting(E_ALL);
@
ini_set("display_errors"1);

See if any error shows when you download lightbox.
Logged

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)
joe007
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #154 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?
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #155 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
Logged

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)
joe007
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #156 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 » Logged
joe007
Pre-Newbie

Offline Offline

Posts: 7

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #157 on: October 31, 2008, 08:56:39 PM »

Hi V@no,

thanks a lot.  Laughing
It works now. I used the wrong editor. Now I've installed ConTEXT and all is well.
Logged
paule
Jr. Member
**
Offline Offline

Posts: 60

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #158 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
Logged
Jan-Lukas
Addicted member
******
Offline Offline

Posts: 1278

Thank You
-Given: 153
-Receive: 48


View Profile WWW
« Reply #159 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.
Logged

Danke Harald



paule
Jr. Member
**
Offline Offline

Posts: 60

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #160 on: April 18, 2009, 08:24:43 PM »

Hallo,

danke. Hab ich gemacht. Keine nderung...

paule
Logged
Jan-Lukas
Addicted member
******
Offline Offline

Posts: 1278

Thank You
-Given: 153
-Receive: 48


View Profile WWW
« Reply #161 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 Strung zu verursachen.

LG Harald
Logged

Danke Harald



tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« Reply #162 on: January 27, 2010, 12:26:29 PM »

es luft 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 ergnzt habe aus einem Postiing vorher

1
2
3
4
5
          if ($key == "download_lastaction")
          {
            $additional_sql .= ", $key = UNIX_TIMESTAMP('".$HTTP_POST_VARS[$key]."')";
            continue;
          }

Gre
Tobias
« Last Edit: January 27, 2010, 03:37:45 PM by tramfahrer » Logged

viadata
Newbie
*
Offline Offline

Posts: 32

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #163 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 » Logged
Hoang
Newbie
*
Offline Offline

Posts: 25

Thank You
-Given: 6
-Receive: 1


View Profile
« Reply #164 on: June 02, 2010, 08:47:14 AM »

es luft 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 ergnzt habe aus einem Postiing vorher

1
2
3
4
5
          if ($key == "download_lastaction")
          {
            $additional_sql .= ", $key = UNIX_TIMESTAMP('".$HTTP_POST_VARS[$key]."')";
            continue;
          }

Gre
Tobias
which file need insert this code?
Logged
Pages: «« « 1 ... 7 8 9 10 [11] 12 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 19 queries.
Post your comments here