4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Chris on March 13, 2003, 01:03:06 AM

Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris on March 13, 2003, 01:03:06 AM
Updated 03-15-2006 for 4images v1.7.2

Keep Track Of What Each User Has Downloaded
For each registered user, this mod maintains a list of the images they download and the date/time of the their last download.

Summary Description NOTE: This is NOT a download stats or counter mod

It has been said that necessity is the mother of invention. On my web site, I only allow downloads for registered users and I wanted to keep track of who was downloading what.

This mod lets you track what images have been downloaded by each registered user. It also enhances the "Edit Users" function in the admin control panel to let you query all users who downloaded anything before, after, or within a date range you enter by entering dates in both the before and after fields. You can also sort the returned list of users by the last download date in either ascending or descending order.

Once that query list is generated, clicking the "Edit" link next to a specific user will display the following in the "Edit User" HTML form:

1. A text area that holds the id numbers of the images they downloaded.
2. A search link to display those images in a new window.
3. The date and time of the user's last download.

The search link is also displayed in the member_profile.html template if you are logged in as a 4images administrator.

The database table 4images_users is modified to store the image id numbers for all downloads made by each user. It is also modified to store the date and time of the last download. This code was heavily copied from the lightbox logic so it only took me 4 or 5 hours to research, code, test, document the installation procedure and write an installer to modify the database. Your time to install this mod is approximately 15 minutes, you lucky bastard! :wink:

Summary of files affected
[change] admin/users.php

[change] includes/functions.php
[change] includes/sessions.php
[change] includes/db_field_definitions.php

[change] lang/english/main.php
[change] lang/english/admin.php

[change] download.php
[change] member.php
[change] search.php

[change] templates/default/member_profile.html

[new] 4i_install_tud.php


admin/users.php:
Locate:
4images v1.7 - 1.7.1
Code: [Select]
show_input_row($lang['field_lastaction'].$lang['date_desc'], "user_lastaction", $user_row['user_lastaction'], $textinput_size);4images v1.7.2
Code: [Select]
show_date_input_row($lang['field_lastaction'].$lang['date_desc'], "user_lastaction", $user_row['user_lastaction'], $textinput_size);
Insert after:
Code: [Select]
$user_row['download_lastaction'] = date("Y-m-d H:i", $user_row['download_lastaction']); // Mod: Track User Downloads
$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 Downloads
Locate:
4images v1.7 - 1.7.1
Code: [Select]
show_input_row($lang['field_lastaction_before'].$lang['date_format'], "lastactionbefore", "", $textinput_size);4images v1.7.2
Code: [Select]
show_date_input_row($lang['field_lastaction_before'].$lang['date_format'], "lastactionbefore", "", $textinput_size);
Insert after:
Code: [Select]
$user_row['download_lastaction'] = date("Y-m-d H:i", $user_row['download_lastaction']); // Mod: Track User Downloads
show_input_row($lang['field_download_lastaction_after'].$lang['date_format'], "download_lastaction_after", "", $textinput_size); // Mod: Track User Downloads
show_input_row($lang['field_download_lastaction_before'].$lang['date_format'], "download_lastaction_before", "", $textinput_size); // Mod: Track User Downloads
Locate:
Code: [Select]
<option value="<?php echo get_user_table_field("""user_lastaction"); ?>"><?php echo $lang['field_lastaction']; ?></option>Insert after:
Code: [Select]
<option value="<?php echo get_user_table_field("""download_lastaction"); ?>"><?php echo $lang['field_download_lastaction']; ?></option>Locate:
Code: [Select]
$lastactionbefore = trim($HTTP_POST_VARS['lastactionbefore']);
if ($lastactionbefore != "") {
$condition .= " AND ".get_user_table_field("", "user_lastaction")." < UNIX_TIMESTAMP('$lastactionbefore')";
}
Insert after:
Code: [Select]
$download_lastaction_after = trim($HTTP_POST_VARS['download_lastaction_after']); // Mod: Track User Downloads
if ($download_lastaction_after != "") { // Mod: Track User Downloads
$condition .= " AND ".get_user_table_field("", "download_lastaction")." > UNIX_TIMESTAMP('$download_lastaction_after')"; // Mod: Track User Downloads
} // Mod: Track User Downloads
$download_lastaction_before = trim($HTTP_POST_VARS['download_lastaction_before']); // Mod: Track User Downloads
if ($download_lastaction_before != "") { // Mod: Track User Downloads
$condition .= " AND ".get_user_table_field("", "download_lastaction")." < UNIX_TIMESTAMP('$download_lastaction_before')"; // Mod: Track User Downloads
$condition .= " AND ".get_user_table_field("", "download_lastaction")." > 0"; // Mod: Track User Downloads
} // Mod: Track User Downloads
Locate:
Code: [Select]
show_hidden_input("lastactionafter", $lastactionafter);
show_hidden_input("lastactionbefore", $lastactionbefore);
Insert after:
Code: [Select]
show_hidden_input("download_lastaction_after", $download_lastaction_after); // Mod: Track User Downloads
show_hidden_input("download_lastaction_before", $download_lastaction_before); // Mod: Track User Downloads


Open includes/functions.php, at the very bottom and just before the closing:
Code: [Select]
?>Insert before:
Code: [Select]
// Mod: Track User Downloads BLOCK INSERT BEGIN
function add_to_downloaded_image_ids($id) {
global $user_info, $site_db;
$id = intval($id);
if (!$id) {
return false;
}
$downloaded_ids = $user_info['downloaded_image_ids'];
$downloaded_array = explode(" ", $downloaded_ids);
if (!in_array($id, $downloaded_array)) {
$downloaded_ids .= " ".$id;
}
$user_info['downloaded_image_ids'] = trim($downloaded_ids);
$user_info['download_lastaction'] = time();
$sql = "UPDATE ".USERS_TABLE."
SET download_lastaction = ".$user_info['download_lastaction'].", downloaded_image_ids = '".$user_info['downloaded_image_ids']."'
WHERE user_id = ".$user_info['user_id'];
return ($site_db->query($sql)) ? 1 : 0;
}
// Mod: Track User Downloads BLOCK INSERT END


Open includes/sessions.php, locate at the top:
Code: [Select]
$user_table_fields = array(
"user_id" => "user_id",
"user_level" => "user_level",
"user_name" => "user_name",
"user_password" => "user_password",
"user_email" => "user_email",
"user_showemail" => "user_showemail",
"user_allowemails" => "user_allowemails",
"user_invisible" => "user_invisible",
"user_joindate" => "user_joindate",
"user_activationkey" => "user_activationkey",
"user_lastaction" => "user_lastaction",
"user_location" => "user_location",
"user_lastvisit" => "user_lastvisit",
"user_comments" => "user_comments",
"user_homepage" => "user_homepage",
"user_icq" => "user_icq"
);
Add a comma at the end of the user_icq line and add a new line after:
Code: [Select]
$user_table_fields = array(
"user_id" => "user_id",
"user_level" => "user_level",
"user_name" => "user_name",
"user_password" => "user_password",
"user_email" => "user_email",
"user_showemail" => "user_showemail",
"user_allowemails" => "user_allowemails",
"user_invisible" => "user_invisible",
"user_joindate" => "user_joindate",
"user_activationkey" => "user_activationkey",
"user_lastaction" => "user_lastaction",
"user_location" => "user_location",
"user_lastvisit" => "user_lastvisit",
"user_comments" => "user_comments",
"user_homepage" => "user_homepage",
"user_icq" => "user_icq", // Mod: Track User Downloads (comma was added at end of line!)
"download_lastaction" => "download_lastaction" // Mod: Track User Downloads
);


Open includes/db_field_definitions.php, locate:
Code: [Select]
// Example for additional user fields
//$additional_user_fields['user_adress'] = array($lang['user_adress'], "text", 1);
Insert after:
Code: [Select]
$additional_user_fields['downloaded_image_ids'] = array($lang['downloaded_image_ids'], "textarea", 0); // Mod: Track User Downloads
$additional_user_fields['download_lastaction'] = array($lang['download_lastaction'], "text", 0); // Mod: Track User Downloads


Open lang/english/main.php, at the very bottom and just before the closing:
Code: [Select]
?>Insert before:
Code: [Select]
$lang['downloaded_image_ids'] = "Downloaded Image IDs"; // Mod: Track User Downloads
$lang['download_lastaction'] = "Date Of Last Download"; // Mod: Track User Downloads
$lang['downloaded_images'] = "Downloaded Images"; // Mod: Track User Downloads


Open lang/english/admin.php
Locate:
Code: [Select]
$lang['field_lastaction'] = "Last activity";Insert after:
Code: [Select]
$lang['field_download_lastaction'] = "Last Download"; // Mod: Track User DownloadsLocate:
Code: [Select]
$lang['field_lastaction_before'] = "Last activity before";
$lang['field_lastaction_after'] = "Last activity after";
Insert after:
Code: [Select]
$lang['field_download_lastaction_before'] = "Last download before"; // Mod: Track User Downloads
$lang['field_download_lastaction_after'] = "Last download after"; // Mod: Track User Downloads


Open download.php, locate:
Code: [Select]
if ($user_info['user_level'] != ADMIN) {
$sql = "UPDATE ".IMAGES_TABLE."
SET image_downloads = image_downloads + 1
WHERE image_id = $image_id";
$site_db->query($sql);
}
Insert after:
Code: [Select]
if ($user_info['user_level'] == USER) // Mod: Track User Downloads
add_to_downloaded_image_ids($image_id); // Mod: Track User Downloads
OPTIONAL: If you want to track downloads from users AND administrators, change
Code: [Select]
if ($user_info['user_level'] == USER) // Mod: Track User DownloadsTo
Code: [Select]
if ($user_info['user_level'] >= USER) // Mod: Track User (and administrator) Downloads

Open member.php:
Locate:
Code: [Select]
"lang_email" => $lang['email'],
"lang_homepage" => $lang['homepage'],
"lang_icq" => $lang['icq']
));
REPLACE with:
Code: [Select]
"lang_email" => $lang['email'],
"lang_homepage" => $lang['homepage'],
"lang_icq" => $lang['icq'],
"lang_download_lastaction" => $lang['download_lastaction'], // Mod: Track User Downloads
"lang_user_downloads" => $lang['downloaded_images'], // Mod: Track User Downloads
"url_user_downloads" => ($user_info['user_level'] == ADMIN) ? $site_sess->url(ROOT_PATH."search.php?user_downloads=".$user_row['user_id']) : "" // Mod: Track User Downloads
));


Open search.php:
Locate:
Code: [Select]
$search_id = array();Insert after:
Code: [Select]
// Mod: Track User Downloads BLOCK INSERT BEGIN
if (isset($HTTP_POST_VARS['user_downloads']) || isset($HTTP_GET_VARS['user_downloads'])) {
$user_downloads = (isset($HTTP_POST_VARS['user_downloads'])) ? intval($HTTP_POST_VARS['user_downloads']) : intval($HTTP_GET_VARS['user_downloads']);
if ($user_downloads != "" && $user_info['user_level'] == ADMIN) {
$show_result = 1;
$sql = "SELECT downloaded_image_ids
FROM ".USERS_TABLE."
WHERE ".get_user_table_field("", "user_id")." = $user_downloads";
$user_downloads_info = $site_db->query_firstrow($sql);
$user_downloads_ids = str_replace(" ", ",", trim($user_downloads_info['downloaded_image_ids']));
$search_id['image_ids'] = $user_downloads_ids;
}
}
// Mod: Track User Downloads BLOCK INSERT END


Open templates/default/member_profile.html:
Locate:
Code: [Select]
<tr>
<td class="row2"><b>{lang_icq}</b></td>
<td class="row2">{if user_icq}<a href="http://wwp.icq.com/scripts/search.dll?to={user_icq}">{user_icq}</a> (<b>{user_icq_status}</b>){endif user_icq}</td>
</tr>
Insert after:
Code: [Select]
{if url_user_downloads}
<tr>
<td class="row1"><b>{lang_user_downloads}</b></td>
<td class="row1"><a href="{url_user_downloads}">{lang_user_downloads}</a></td>
</tr>
{endif url_user_downloads}


4i_install_tud.php
Because the database must be modified, and it can be difficult to do correctly, I have written and tested an installer. Download the 4i_install_tud.zip file attached to this post. Extract the 4i_install_tud.php file and upload it to your web site. In a web browser, go to http://www.example.com/4images/4i_install_tud.php and follow the on-screen instructions. Once your database is successfully updated, you should delete 4i_install_tud.php


Revisions:
* Enhanced with V@no's add-on that provides a search link in both the admin Control Panel "Edit Users" and the member_profile.html template. Separately we both thought of adding the same feature but V@no beat me to it. Thank you. :)
* Added "Last Download" to the "Order By" options list for admin CP "Edit Users".
* Attached the installer file to this post, just download it !
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on March 13, 2003, 04:48:35 AM
Exelent! Good job!

if I may, I'd like add little addon:
it will display a link for search downloaded images (only for admin) in user profile and in "edit user".

[EDITED]
Since this addon was included in original installation, no needed doublepost it. :D
[/EDITED]

The format to search is:
search.php?user_downloads=X
Where X is user ID
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris on March 13, 2003, 05:53:49 AM
Most excellent.  Great minds think alike huh?  

I was thinking about adding this very feature to the mod not more than 20 minutes after posting it!  Looks like you've saved me the trouble - thanks.

I'll definitely try it out tomorrow.
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris on March 14, 2003, 01:34:18 AM
V@no's add-on has been included in the original instructions.

Also introduced is the ability to sort the user list by the "Last Download" date. This works regardless of whether or not you are editing users based on download date.  Users who have not downloaded anything are treated as having a ZERO download date and will show up at the end of the list if the "Order By" option is set to Descending.
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: k4nth on March 14, 2003, 06:16:26 PM
how can you make this work with 4images & pbpbb integrated site?
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris on March 14, 2003, 06:58:09 PM
I have no idea since I do not use the "user integration" feature of 4images.  :wink:  If I understand correctly, with user integration, 4images uses the phpBB user table so this mod would need to be adjusted to use that table.

I really don't know what would be needed to make that work but that's were you should begin looking to identify code you need to change.
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: ParaNike on March 27, 2003, 04:50:11 PM
Can some one edit this mod so that it will work with the vbulletin integration?
Title: download tracking in light box
Post by: bgmurphy on May 26, 2003, 10:07:24 PM
:idea:   hey chris -

nice tracking module - one problem though ... it doesn't track lightbox selections (i.e. batch zips) - only single downloads ...

any thoughts?

thanx
bruce
Title: Re: download tracking in light box
Post by: V@no on May 26, 2003, 10:33:25 PM
Quote from: bgmurphy
it doesn't track lightbox selections (i.e. batch zips) - only single downloads ...

in /download.php find:
Code: [Select]
$sql = "SELECT cat_id, image_media_file, image_download_urlreplace with:
Code: [Select]
$sql = "SELECT cat_id, image_media_file, image_download_url, image_id
find next:
Code: [Select]
$file_added = 1;
add after:
Code: [Select]
if ($user_info['user_level'] == USER) // Mod: Track User Downloads
    add_to_downloaded_image_ids($image_row['image_id']); // Mod: Track User Downloads
Title: Re: download tracking in light box
Post by: bgmurphy on May 26, 2003, 11:58:08 PM
v@no -

i replaced/added the code ... but it still didn't record my litebox download so ???

i modified the ----    == user to >= user  -- is that the prob?

thanx
bruce
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on May 27, 2003, 12:07:25 AM
ops, sorry...I had typo...
replace
add_to_downloaded_image_ids($image_ros['image_id']);
with
add_to_downloaded_image_ids($image_row['image_id']);
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: bgmurphy on May 27, 2003, 12:14:25 AM
v@no -

which php module? .. and .. what should i do with the old code i did replace? - delete or ??

better yet .... can you repost the correct file changes procedures <grin> ?

bruce
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on May 27, 2003, 12:23:38 AM
Quote from: bgmurphy
v@no -

which php module? .. and .. what should i do with the old code i did replace? - delete or ??
I thought I posted just for one file changes...:roll:

Quote from: bgmurphy
better yet .... can you repost the correct file changes procedures <grin> ?

bruce

I did already...:?
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: bgmurphy on May 27, 2003, 12:46:22 AM
v@no -

sorry - tired eyes .. and small type !!!!

i see what you modified now ... 3rd pass thru it ...

will get it corrected

thanx
bruce
Title: Help please....
Post by: crazy4ke on June 11, 2003, 01:04:02 AM
I've followed all of these instructions and am getting the following:

Quote
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


At first I thought it was a trailing empty line at the end of the functions.php file but I've deleted it.
Title: Re: Help please....
Post by: V@no 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)
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: crazy4ke 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!
Title: mod revision for downloaded images [mod]
Post by: bgmurphy 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
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris 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:
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: gpunto 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
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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. ;)
Title: Getting errors Help pls
Post by: syella1 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
Title: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix 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...  :)

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: AntiNSA2 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: AntiNSA2 on March 21, 2005, 06:58:37 AM
It looks as though the php install file also has to be corrected 8O
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris 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:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix 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 (http://www.4homepages.de/forum/index.php?topic=4606.msg30268#msg30268)"?
I guess that it is not really hard to code, but I don't know how to write MySQL queries.  :cry:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris on March 22, 2005, 06:31:20 PM
NOTE: This is NOT a download stats or counter mod
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix 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:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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}
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris 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:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix 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 (http://photo.overlord.cz/templates/blue_wonder/smiles/angel.gif)

@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 ;)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Chris 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix on March 23, 2005, 11:56:44 PM
@ V@no - this is exactly, what I wanted! :)
Thank you again for your help!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Schmidti on March 28, 2005, 04:33:11 PM
I'm not able to download the attachment, why?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: syndrom 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.

:?:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Schmidti on March 29, 2005, 05:40:04 PM
Can anyone upload this file again? Please!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Schmidti 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: renicolay 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?

 :?:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on June 13, 2005, 05:53:00 AM
hangs? I dont think this mod has anything to do with logout function..
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: renicolay 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?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix 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?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: renicolay on June 14, 2005, 03:38:46 AM
Thanks!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: martrix on June 14, 2005, 08:53:02 AM
does it work now?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: renicolay on June 15, 2005, 04:27:55 AM
no, but I don't know what else it could be? This started happening right after I installed this much needed MOD. When on the details page (this only happens here) I click Logout, the page looks like it's starting to logout and redirect you to the homepage but it never does. However if I click another link right after I logout it brings me to the new page but my session is over. Is this clear? Any ideas?

Thanks again!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on June 15, 2005, 05:37:45 AM
ok, uninstall this mod and see if it still happens. (basic troubleshootings)
also a link to your site with a test user login info could help too ;)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: renicolay on June 17, 2005, 11:19:04 PM
Thank you!  Here is the url...

www.mycttbriefcase.com (http://www.mycttbriefcase.com)

Username: demo
Password: password

Thanks in advance!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on June 18, 2005, 12:38:17 AM
This issue has nothing to do with this mod (I'm 90% sure)
This seems to happend only if u access details page with sessionid attached to the url. So, when u logout, its trying to redirect u to the same details page with sessionid in the url and for some reason its then redirects u to the same page in the dead end loop...
Please start a new topic in troubleshooting forum.

P.S. and just to be sure, please uninstall this mod.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: winterl on August 05, 2005, 01:31:04 PM
when i want to do the install tud, i only get crazy characteres like this:

PKl. T0˜L4i_install_tud.phpXmo6œ eM4@…*m9aap%໢Bq簝}GŠ_:Fˆ‰xw|x{*€…qP6”;=ȏ‘Sq>urv}x#?PvN| ˜YBSW `JVd—.…[+GЯ•I)” #(+€;;5ce^!P…cAY= Š}x•><(ŽUS&t™7Fe›œjY5N\H7RŸsC… q21.ZfceRf>wf1#ߣ2‹5+eŸ˜79H"<†Š2Qz20  Ÿ€cY~|€u+>vGL‚ H7dŠJ'‹  z‘ dC=vGerY$EK'Hb•™A‡<_?&b3/>m^d>yfBrJ^(š &p>I ˜X܏*Mr){žno *|`t—Sž™Œ*›‚~„ /V]L-.. ™‚^“}^O' jA =:F c—&gYB .œ/Ÿo&kͫF“Ÿ\5*†>›MƷk +r˜zOl—m„K]{:b $$vRinzn“ >’‹7Ž-x;/#„VUŸ„XpY,^BŠ+_-k:1f _(9 ‡2]\Ÿbˆ\ Žd_Nžr9r iLzB@”Y3Št hŸBL„)Qv=w‚]'™ߥwɺvx<žs‡•‘C^;ƒ<8W|Šc C0ˆŸDBFHrž8dgcF=]Ÿ?bTž;•B‚*^ȹ7Œu–[‚F=8=mP{N€wLn^–r˜ƒj'1X*"C)obz3R)BDƒƒdŒI[Šž:Šz6 8 9 )1^C1-lk H,IŠT,"Ÿf\cki‚촻z@LLI3gŠ$˜cx›Z‡+ ’C5˜JHPx~E‡€c4 ”F9-.ŒœŽ(–A6!(HF Ki?kLžloxOq726iX1ŽN—m{ :x“_>*@288 +P‰޾9€, cNp}|x(Xˆ5|j’‘dGL2(DkoeӽA% Q|3K ‰07)-,sŵ GPK l. T0˜L 4i_install_tud.phpPK@)


when i then try to look who has what downloaded, i get this message on top:


DB Error: Bad SQL Query: SELECT downloaded_image_ids FROM 4images_users WHERE user_id = 5



thank you
Unknown column 'downloaded_image_ids' in 'field list'
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on August 05, 2005, 02:39:13 PM
I'd suggest you recheck the installation steps, one thing I know for sure, you didnt do the last step (updating database), perhaps you missed something else as well.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: winterl on August 05, 2005, 02:44:01 PM
you mean with updating, installing the 4i_install_tud.php in the browser. thats what i did, but then come only this strange signs.

n
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: TheOracle on August 05, 2005, 04:10:41 PM
Quote

when i want to do the install tud, i only get crazy characteres like this:


It looks like you may have uploaded that PHP file in binary mode rather than ASCII mode from your FTP / CPanel. By uploading it in ASCII mode, see if this problem this persists. ;)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Funix on August 11, 2005, 01:17:04 PM
hello!

i've got a problem! i installed this mod, like it should be (i think) and everything is (working), no errors or something... but it just dosent show me the files that users downloaded... in the edit-mode of each user, the field with"downloaded image ID's" is emtpy. and when i click on it, no pictures are shown on! just a "die suche ergab keine treffer".... what could it be?

thanks very much!!!!
funix
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: TheOracle on August 11, 2005, 01:23:54 PM
Quote

die suche ergab keine treffe


This means : No search results has been found for hits.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Funix on August 11, 2005, 01:26:31 PM
yes, i know.... but there should be a result! because i downloaded some picture with this user....but there is no result...i've got no idea what i did wrong!!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: TheOracle on August 11, 2005, 01:42:59 PM
Perhaps you forgot two steps in the instructions on the first page on this topic :

- 2nd table code.
- 16th table code.

;)

Secondly, what I do find weird though is that the $additional_user_fields['downloaded_image_ids'] has been added twice in these instructions (on those two tables). I thought that db_fields_definitions.php file could already handle both sides of fields we add.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on August 11, 2005, 02:34:25 PM
hope u are not talking about downloaded images before you installed this mod ;)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Funix on August 11, 2005, 06:52:38 PM
no worries, i'm talking about downloading after i installed the mod ;-)

what do you mean with 2nd table code and 16th table code?

thanks!
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on August 12, 2005, 12:00:50 AM
using any mysql managers (phpmyadmin or such) find the user account u are testing with (in 4images_users table) and look if the account has anything in 'downloaded_image_ids' field (wait, u should be able see that from ACP -> Edit users ;))
If you see some numbers, then there is something wrong with your search.php, if the field is empty, then there is something wrong with download.php. Perhaps u were trying to test with administrator's account, and didnt change the needed line in download.php as suggested in the tutorial (by default downloads being saved only for regular members, not admins)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Funix on August 12, 2005, 01:24:09 PM
i love you, now it's working!! i'm using the mod which is for the admins as well.... but befor i didnt use the admin, but it was not working...crazy....but now everything is sweet, thanks!!! :-)


is it possible to see how many times a user downloaded the same file?

cheers,
funix
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: kief24 on October 09, 2005, 12:51:37 PM
Hello,

the mod works fine, thx for this !!!!!!!

If i get it right you can see it in the member profile box, and in the acp how much each user has downloaded.
But for this you have to click on the users name, 1 by one.
Is there a way to get a summary ?
Like in the memberlist. Now you can see in the memberlist how much each user has uploaded, could you see there how much they have downloaded ?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buster on November 17, 2005, 10:55:49 PM
Hi Chris, hi V@no,
installation went quite well with no errors at all, but in my database downloaded_image_ids remains NULL and downloaded_lastaction 0 as well. I tried downloads with various testusers, but nothing happens.
No reaction as well after I changed the Mod to admin-mode.
Any suggestion?
Regards,
Reiner
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on November 17, 2005, 11:55:07 PM
perphaps made a misstake in download.php
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buster on November 18, 2005, 08:45:42 AM
perphaps made a misstake in download.php
So did I :(
Just inserted your code there where it should not be :)
Works fine now!
Regards,
Reiner
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buster on November 18, 2005, 10:06:53 AM
Hello,

the mod works fine, thx for this !!!!!!!

If i get it right you can see it in the member profile box, and in the acp how much each user has downloaded.
But for this you have to click on the users name, 1 by one.
Is there a way to get a summary ?
Like in the memberlist. Now you can see in the memberlist how much each user has uploaded, could you see there how much they have downloaded ?
That would be excellent!
Regards,
Reiner
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Flo2005 on December 26, 2005, 12:37:32 AM
Is it possible to show the last 10 downloaded files with this mod?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on December 26, 2005, 07:14:41 AM
This mod does not store the time the file was downloaded, therefore no way to know which file was downloaded when.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Flo2005 on December 26, 2005, 03:28:34 PM
Okay

anyway a great MOD :D
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: JensF on December 30, 2005, 11:55:28 PM
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 below:
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}

HI there, when i do the changes in member.php i have a blank page. Can anyone say me why???

No other question ;)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on December 31, 2005, 01:09:00 AM
I've updated the code you are referring to, remove the changes and try again with the updated instructions. (now you'll need insert it above, not below and the new line has a comma at the end.)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: fgallery on January 08, 2006, 10:26:22 PM
Thank you guys!
The MOD works excellent.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Flo2005 on January 10, 2006, 09:33:54 PM
It seems I have a problem with this MOD :?

It shows me files which I never have downloaded! I cleared this listof image IDs in ACP, but it logs again files which I dont have downloaded :|
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on January 11, 2006, 01:03:11 AM
1) Are you testing it as regular member or as admin?
2) have you tryed different member?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: animecivil on January 14, 2006, 06:03:55 AM
The download seems to be down
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: animecivil on January 14, 2006, 06:05:41 AM
Lol, nvm
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: binuj01 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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...
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: binuj01 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: ktwenrick on March 12, 2006, 01:05:11 AM
does this work with ver. 1.7.2 ?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: derStephan 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?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: derStephan 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?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: IcEcReaM 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: derStephan 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???
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on March 16, 2006, 02:07:08 PM
what 4images version?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: IcEcReaM 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?

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: derStephan 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: IcEcReaM on March 17, 2006, 03:38:32 PM
you mean this error occurs only when you update an user over contol panel?

did you try to log in also as "normal user" without any admin privileges,
and try to download?
(cause the download counter only works for users, not for admins,
so it's possible that the error also occurs when downloading as user)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: derStephan on March 20, 2006, 10:40:06 PM
I checked all code once again. Everything seems alright... Code was changed by copy and paste. Located the correct lines and insert at the right place.

Downloaded Image IDs and the last time of the download is working very well. No Problem!

Only when i am going to update an user in the admin console the following error appears:

DB Error: Bad SQL Query: UPDATE 4images_users SET user_level = 2, user_name = 'test', user_email = 'test-user@sindat.de', user_showemail = 1, user_allowemails = 1, user_invisible = 0, user_joindate = UNIX_TIMESTAMP('2006-03-18 15:04'), user_lastaction = UNIX_TIMESTAMP('2006-03-20 22:20'), user_homepage = '', user_icq = '', downloaded_image_ids = '', download_lastaction = '1970-01-01 01:00' WHERE user_id = 2
Data truncated for column 'download_lastaction' at row 1
Fehler beim Bearbeiten des Users

Is this right, that the admin/users.php have to contains the wrong code??? I would correct the code - but i can't find the line to edit.

Maybe really compatible with 1.7.2? If not - i have to put "0" in the Field of last download - then the update button works correct.


Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on March 21, 2006, 12:15:22 AM
Ok, lets try this:
in admin/users.php find:
Code: [Select]
        if (isset($HTTP_POST_VARS[$key]) && isset($table_fields[$key])) {Insert below:
Code: [Select]
          if ($key == "download_lastaction")
          {
            $additional_sql .= ", $key = UNIX_TIMESTAMP('".$HTTP_POST_VARS[$key]."')";
            continue;
          }
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: derStephan on March 21, 2006, 08:29:49 AM
Thank you v@no!!

That was it - the mod works perfect.  :D
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: sau4scr on April 14, 2006, 11:47:42 PM
Does anybody know how to activate the calendar script on the edit users page in the ACP to have it place the date into the field in the proper format like ti does on the 4 rows above the download after and before fields?

Thanks in advance
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: mWelle on May 01, 2006, 11:42:38 AM
kann man das auch irgendwie umndern, so das bei der detail-ansicht der user-name steht, wer dieses bild alles downloaded hat?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: sau4scr on May 01, 2006, 10:39:16 PM
Does anybody know how to activate the calendar script on the edit users page in the ACP to have it place the date into the field in the proper format like ti does on the 4 rows above the download after and before fields?

Thanks in advance

Anyone?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: snowppy on May 22, 2006, 07:56:30 PM
hi .I've installed the mod .But it wont work
When a user downloads a picture the picture id is not been written here:http://87.119.81.68/123.jpg pls help
version 1.72
P.S. Sorry for my bad english
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: steveeyes on June 05, 2006, 07:44:55 PM
V@no on page 3 of this string you posted Re: [Mod] Keep Track Of What Each User Has Downloaded

That really help. After I made the changes according to your mod instructions, there was the following difference/problem.

Now when I'm logged in as the Admin and I go to the Users Control Panel and click the Download Images link, it will redirect to home page.

However, if I click the link in the ACP it will show the images that the user downloaded.

I don't want to put you out, but was wondering if you had the fix for the  Users Panel when using the Download Image Link

Thanks
Steve
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on June 06, 2006, 01:18:08 AM
compare the URL in the links at profile page and ACP and see if they are different
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: steveeyes on June 06, 2006, 05:01:25 PM
V@no


Here is the link for the members profile page.

http://filipinaeyes.com/online-dating-gallery/member.php?action=showprofile&user_id=3

On this page, there is a link that says "Downnloaded Images"

When I click that, it goes back to the home page which is:

http://filipinaeyes.com/online-dating-gallery


Here is the link in the ACP:

http://filipinaeyes.com/online-dating-gallery/admin/index.php

On that page there is a link that says: Downloaded Image IDs (5)

If I click this link, it displays the pictures that the member has downloaded.

Thanks
Steve
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on June 07, 2006, 01:29:12 AM
The only explanation I have is you either did wrong changes in member.php (aka added it in the wrong place), or you have another instance of url_user_downloads in member.php or other files. The first is most probably.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: steveeyes on June 07, 2006, 04:34:34 AM
As usual V@NO you are right....I had it in the wrong place.

Thanks a million.

Steve
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: jezzaelo on June 20, 2006, 04:19:56 AM
hi im jezael and i have a lot of problems whit this mod please help me, and forgive my english please

when i try to install the mod i look this message:

Warning: Illegal offset type in /home/mgfpict/public_html/members/includes/sessions.php on line 340

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/includes/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/includes/sessions.php on line 111

then when the mod are install this other message:

Warning: Illegal offset type in /home/mgfpict/public_html/members/includes/sessions.php on line 340

and when i try to get in the admin panel this other messages:

Warning: Illegal offset type in /home/mgfpict/public_html/members/includes/sessions.php on line 340

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/includes/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/includes/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/admin/admin_functions.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/admin/admin_functions.php on line 169

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/admin/admin_functions.php on line 170

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/admin/admin_functions.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home/mgfpict/public_html/members/includes/sessions.php:340) in /home/mgfpict/public_html/members/admin/admin_functions.php on line 172
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Ch*yeuk on July 14, 2006, 10:35:48 PM
Nice mod. Could thumbnails replace the id number? If so, I'm going to install it.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: edwin on July 16, 2006, 05:41:28 PM
Where can i change to url of the place were the image is downloaded, i want to host the big pictures athome and the thumbnails somewhere else

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: sajwal on July 18, 2006, 05:48:16 PM
Hello V@no,
                  I made all the changes in this mod, but when i run the installer .. it shows me wrong details of username and password,
and hence not proceeding ... my username is shown as the name of my database.... i am worried why is this happening? is my site secure?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on July 19, 2006, 02:52:35 AM
yes, its asks you to confirm username/pass for database and not for your gallery site ;)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Ch*yeuk on July 19, 2006, 06:24:30 AM
Can this mod show the thumbnails of the images users have downloaded?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: sajwal on July 19, 2006, 12:41:13 PM
hi V@no,
i Made necessary changes to files of  ver. 1.7.3 for this mod  but as soon i run installer shows me following errors and then the installer screen below

Also the installer has all the fields already filled in from config.php file....but they actually don't match my real details of server login



Notice: Constant CATEGORIES_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 32

Notice: Constant COMMENTS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 33

Notice: Constant GROUP_ACCESS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 34

Notice: Constant GROUP_MATCH_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 35

Notice: Constant GROUPS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 36

Notice: Constant IMAGES_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 37

Notice: Constant IMAGES_TEMP_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 38

Notice: Constant LIGHTBOXES_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 39

Notice: Constant POSTCARDS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 40

Notice: Constant SESSIONS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 41

Notice: Constant SESSIONVARS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 42

Notice: Constant SETTINGS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 43

Notice: Constant USERS_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 44

Notice: Constant WORDLIST_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 45

Notice: Constant WORDMATCH_TABLE already defined in /home/vsajwal/public_html/includes/constants.php on line 46

Notice: Constant URL_IMAGE_ID already defined in /home/vsajwal/public_html/includes/constants.php on line 50

Notice: Constant URL_CAT_ID already defined in /home/vsajwal/public_html/includes/constants.php on line 51

Notice: Constant URL_USER_ID already defined in /home/vsajwal/public_html/includes/constants.php on line 52

Notice: Constant URL_POSTCARD_ID already defined in /home/vsajwal/public_html/includes/constants.php on line 53

Notice: Constant URL_COMMENT_ID already defined in /home/vsajwal/public_html/includes/constants.php on line 54

Notice: Constant URL_PAGE already defined in /home/vsajwal/public_html/includes/constants.php on line 55

Notice: Constant URL_ID already defined in /home/vsajwal/public_html/includes/constants.php on line 56

Notice: Constant GUEST already defined in /home/vsajwal/public_html/includes/constants.php on line 60

Notice: Constant USER_AWAITING already defined in /home/vsajwal/public_html/includes/constants.php on line 61

Notice: Constant USER already defined in /home/vsajwal/public_html/includes/constants.php on line 62

Notice: Constant ADMIN already defined in /home/vsajwal/public_html/includes/constants.php on line 63

Notice: Constant AUTH_ALL already defined in /home/vsajwal/public_html/includes/constants.php on line 67

Notice: Constant AUTH_USER already defined in /home/vsajwal/public_html/includes/constants.php on line 68

Notice: Constant AUTH_ACL already defined in /home/vsajwal/public_html/includes/constants.php on line 69

Notice: Constant AUTH_ADMIN already defined in /home/vsajwal/public_html/includes/constants.php on line 70

Notice: Constant GROUPTYPE_GROUP already defined in /home/vsajwal/public_html/includes/constants.php on line 74

Notice: Constant GROUPTYPE_SINGLE already defined in /home/vsajwal/public_html/includes/constants.php on line 75

Notice: Constant CHMOD_FILES already defined in /home/vsajwal/public_html/includes/constants.php on line 79

Notice: Constant CHMOD_DIRS already defined in /home/vsajwal/public_html/includes/constants.php on line 80

Notice: Constant REPLACE_EMPTY already defined in /home/vsajwal/public_html/includes/constants.php on line 85

Notice: Constant MAX_RATING already defined in /home/vsajwal/public_html/includes/constants.php on line 89

Notice: Constant POSTCARD_EXPIRY already defined in /home/vsajwal/public_html/includes/constants.php on line 93

Notice: Constant TIME_OFFSET already defined in /home/vsajwal/public_html/includes/constants.php on line 98

Notice: Constant MIN_SEARCH_KEYWORD_LENGTH already defined in /home/vsajwal/public_html/includes/constants.php on line 103

Notice: Constant MAX_SEARCH_KEYWORD_LENGTH already defined in /home/vsajwal/public_html/includes/constants.php on line 104

Notice: Constant ADMIN_SAFE_LOGIN already defined in /home/vsajwal/public_html/includes/constants.php on line 108

Notice: Constant SHOW_RANDOM_IMAGE already defined in /home/vsajwal/public_html/includes/constants.php on line 119

Notice: Constant SHOW_RANDOM_CAT_IMAGE already defined in /home/vsajwal/public_html/includes/constants.php on line 120

Notice: Constant CHECK_REMOTE_FILES already defined in /home/vsajwal/public_html/includes/constants.php on line 125

Notice: Constant EXEC_PHP_CODE already defined in /home/vsajwal/public_html/includes/constants.php on line 129

Notice: Constant MEDIA_DIR already defined in /home/vsajwal/public_html/includes/constants.php on line 132

Notice: Constant THUMB_DIR already defined in /home/vsajwal/public_html/includes/constants.php on line 133

Notice: Constant MEDIA_TEMP_DIR already defined in /home/vsajwal/public_html/includes/constants.php on line 134

Notice: Constant THUMB_TEMP_DIR already defined in /home/vsajwal/public_html/includes/constants.php on line 135

Notice: Constant DATABASE_DIR already defined in /home/vsajwal/public_html/includes/constants.php on line 136

Notice: Constant TEMPLATE_DIR already defined in /home/vsajwal/public_html/includes/constants.php on line 137

Notice: Constant SCRIPT_VERSION already defined in /home/vsajwal/public_html/includes/constants.php on line 141

plus the installer screen below



Please help
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no on July 19, 2006, 02:22:05 PM
These notices are not really a problem, as long as it updates the database correctly. Though, I've attached a fixed version, se if the notices are gone now.

Also the installer has all the fields already filled in from config.php file....but they actually don't match my real details of server login
Correct, the fields are showed login info taken from config.php, and unless you are using some sort of integration, it should show you the correct info...
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: sajwal on July 19, 2006, 02:34:18 PM
Thanx  a lot , V@no

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: sajwal on July 26, 2006, 12:56:07 AM
i am re-writing this topic :
Hello Friends,
                 I have crossed checked thrice before posting this thread now, still if i am wrong, i am sorry in advance

The problem is I upgraded to 1.7.3 and i installed two mods

1. Download Limit Mod : A small problem with this mod was You have downloaded 0 of 50 files, allowed per  hours this message did not showed me the 24 written , but i managed to write myself by exluding the date limit tag by simply putting 24 in
lang/main.php

2.Track User Download : The worst problem lies here, when i install this mod after the previous one,
a. it never show me the Image IDs downloaded,
b. It never show me the correct time of last download but shows only 1970/01/01, even if i change this time from admin panel, it comes back to 1970/01/01 again.
c. If the administrator is logged in the control panel, and clicks to the main gallery link, the default main page with admin logged in comes, but when i try to log out...sometimes it takes a lot of bandwith (or whatever) and gives me a network error, where as it never happens if a new explorer page is opened individually.

I posted this because i tried to overcome the problem several times but in vain! (do we call it a bug?)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Charlie Sturge on October 18, 2006, 03:34:38 PM
I would really like to use this MOD but stumblied at the first line of code. I have version 1.7.2

Is there any chance anyone could help with this? I'd be really greatful and might even be willing to pay?

Many thanks... enquiry@charlessturge.com
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: TubeTopia on October 23, 2006, 09:40:55 AM
Would really appreciate a fix for this mod for version 1.7.3  :)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Funix on November 02, 2006, 01:10:42 PM
is it posible to sort the downloaded pictures of a person different then the gallery sorts the images?

my gallery is sorting images with the IPTC dates... but i wanna see the last downloaded images of a person first!
of course i can see it in the profil with the images_ID's, but when im clicking on the "Downloaded Images" i wana have them sorted!!

cheery,
funix
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: TheBrain99 on December 17, 2006, 12:17:22 PM
Hi,

soweit sieht alles gut aus in meiner Seite aber die Downloads werden nicht in die DB eingetragen und somit kann ich die auch nicht sehen  :(

Anything loks fine in my Page but now Download is stored in the Database  :(

Benutze 4images  1.7.4
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: binuj01 on March 11, 2007, 01:41:15 AM
Will this work in 1.7.4 version?

Thanks
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: LeeWicKeD on July 02, 2007, 01:02:20 PM
Hey there, is it possible, to see the users who downloaded a image directly under the image in the info-box?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buggy Driver on July 03, 2007, 01:01:55 PM

Yes it is possible
I use  this to see who downloaded in the detail page

Backup al files
(I have not tested this instructions on a new 4image install so better save than sorry)
 
change file
details.php
lang/<your language>/main.php
templates/<your template>/details.html

In details.php look for
Code: [Select]
show_image($image_row, $mode, 0, 1);

add before  ( look 2X for // change ADMIN   USER  GUEST in code snipped to set user permission)
Code: [Select]
// START list users who download this image
$dl_users = "";
// change ADMIN   USER  GUEST   to set user Permission
if ($user_info['user_level'] >=  USER) {

  $img_id = $image_row['image_id'];

  $sql = "SELECT `user_id` , `username`
          FROM ".USERS_TABLE."
          WHERE `downloaded_image_ids` LIKE '$img_id'
          OR `downloaded_image_ids` LIKE '$img_id %'
          OR `downloaded_image_ids` LIKE '% $img_id'
          OR `downloaded_image_ids` LIKE '% $img_id %'";

  $result = $site_db->query($sql);
  if ($result) {
    while ($row = $site_db->fetch_array($result)) {
      // change ADMIN   USER  GUEST   to set Permission   link to other download same user  - - > link to user profile
      if ($user_info['user_level'] >= ADMIN) {
        $dl_users .= "\n<a href=\"".$site_sess->url("search.php?user_downloads=".$row['user_id'])."\">".$row['username']."</a> &nbsp; ";
      } else {
        $dl_users .= "\n<a href=\"".$site_sess->url("member.php?action=showprofile&amp;user_id=".$row['user_id'])."\">".$row['username']."</a> &nbsp; ";
      }
    }
  }
}
// STOP list users who download this image

look for
Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream,

add after
Code: [Select]
"dl_users" => $dl_users,
"lang_users_downloads" => $lang['users_downloads'],

you can use
{lang_users_downloads}
{dl_users}
in your details.html

personal I added this just after the table row that contains the {image_downloads}
Code: [Select]

{if dl_users}
                                      <tr>
                                        <td valign="top" class="row1"><b>{lang_users_downloads}</b></td>
                                        <td valign="top" class="row1">{dl_users}</td>
                                      </tr>
{endif dl_users}

in your language file main.php
look for
Code: [Select]
$lang['downloads'] = "Downloads:";

add after
Code: [Select]
$lang['users_downloads'] = "Download by:";

I only allow admin to see and then it look like this
http://buggyteambelgie.dnsalias.com/img/10.jpg (http://buggyteambelgie.dnsalias.com/img/10.jpg)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: LeeWicKeD on July 03, 2007, 01:27:45 PM
Thanks for your help, but now i get this error:

DB Error: Bad SQL Query: SELECT `user_id` , `username` FROM 4images_users WHERE `downloaded_image_ids` LIKE '6575' OR `downloaded_image_ids` LIKE '6575 %' OR `downloaded_image_ids` LIKE '% 6575' OR `downloaded_image_ids` LIKE '% 6575 %'
Unknown column 'username' in 'field list'
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buggy Driver on July 03, 2007, 01:33:20 PM
Dorn  I have integrated my phpBB in to 4 images

Change username to user_name in

$sql = "SELECT `user_id` , `username`



EDIT

you will need to change more than that
I hoop I got evriting

Code: [Select]
// START list users who download this image
$dl_users = "";
// change ADMIN   USER  GUEST   to set user Permission
if ($user_info['user_level'] >=  USER) {

  $img_id = $image_row['image_id'];

  $sql = "SELECT `user_id` , `user_name`
          FROM ".USERS_TABLE."
          WHERE `downloaded_image_ids` LIKE '$img_id'
          OR `downloaded_image_ids` LIKE '$img_id %'
          OR `downloaded_image_ids` LIKE '% $img_id'
          OR `downloaded_image_ids` LIKE '% $img_id %'";

  $result = $site_db->query($sql);
  if ($result) {
    while ($row = $site_db->fetch_array($result)) {
      // change ADMIN   USER  GUEST   to set Permission   link to other download same user  - - > link to user profile
      if ($user_info['user_level'] >= ADMIN) {
        $dl_users .= "\n<a href=\"".$site_sess->url("search.php?user_downloads=".$row['user_id'])."\">".$row['user_name']."</a> &nbsp; ";
      } else {
        $dl_users .= "\n<a href=\"".$site_sess->url("member.php?action=showprofile&amp;user_id=".$row['user_id'])."\">".$row['user_name']."</a> &nbsp; ";
      }
    }
  }
}
// STOP list users who download this image
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: LeeWicKeD on July 03, 2007, 01:41:39 PM
Okay error fixed, thank you!

But the mod doesn't work at all  :cry:

I installed Chris' mod without any errors, but I can't see any downloaded images-ids for a user  :|
I'm sure, that I haven't made a mistake in download.php  :?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buggy Driver on July 03, 2007, 01:46:24 PM
I am not sure I understand

Is it a problem at the mod it self or just by the ad on I created? 
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: LeeWicKeD on July 03, 2007, 01:47:40 PM
The mod itself doesn't work  :|

I hoped it would work with your little addition, but I was wrong  :D
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buggy Driver on July 03, 2007, 01:57:43 PM
Are you sure someone download an image after the install? The mod cant backtrack downloads that hap pent in the past

Admin en guests downloads dont get listed.

I cant remember if I needed to change something when I install it on 4images 1.7.4

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: LeeWicKeD on July 03, 2007, 02:03:12 PM
Yep i tried this AFTER the installation.

But it seems that my gallery is slow...now all users who downloaded the picture are display... :mrgreen:


Thanks for your help & patience!  :thumbup:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Buggy Driver on July 03, 2007, 02:14:31 PM
No problem we al have to learn 

I am happy to help
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on July 28, 2007, 11:02:21 PM
Hi,

soweit sieht alles gut aus in meiner Seite aber die Downloads werden nicht in die DB eingetragen und somit kann ich die auch nicht sehen  :(

Anything loks fine in my Page but now Download is stored in the Database  :(

Benutze 4images  1.7.4

Habe das selbe Problem, alles sieht gut aus, keine Fehlermeldung.
Nur wird nichts in die Datenbank eingetragen, Tabellen sind auch OK

benutze 4images 4images 1.7.1

kann jemand helfen ?

Harald
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: passi on December 30, 2007, 03:29:36 AM
I know this question has already been asked but i couldn't see where it had been answered so sorry if i missed it... but.. does this mod work with Version 1.7.4?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on May 04, 2008, 01:11:57 AM
Ich mal wieder  :wink:
Habe es jetzt erfolgreich unter 1.7.6 installiert
Bilder werden auch angezeigt
trotdem gibt es auf der index (nur da) eine Fehlermeldung
http://ue-ei-portal-sammlerkatalog.de/katupdate/

DB Error: Bad SQL Query: SELECT user_id, user_name, FROM 4images_users WHERE LIKE '%-05-04' ORDER BY user_name
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 LIKE '%-05-04' ORDER BY user_name' at line 2

Und wie kann man das erweitern,das auch die runtergeladenen Bilder per zip (Leuchtkasten) gespeichert werden.

Harald


Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on May 04, 2008, 02:31:15 AM
Ich mal wieder  :wink:
Habe es jetzt erfolgreich unter 1.7.6 installiert
Bilder werden auch angezeigt
trotdem gibt es auf der index (nur da) eine Fehlermeldung
http://ue-ei-portal-sammlerkatalog.de/katupdate/

DB Error: Bad SQL Query: SELECT user_id, user_name, FROM 4images_users WHERE LIKE '%-05-04' ORDER BY user_name
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 LIKE '%-05-04' ORDER BY user_name' at line 2

Und wie kann man das erweitern,das auch die runtergeladenen Bilder per zip (Leuchtkasten) gespeichert werden.

Harald




Edit: der Fehler liegt an dem Eintrag in der session.php, wenn ich die alte Datei einspiele ist der Fehler weg
Auch der Geburtstags Mod wird durch diesen Eintrag deaktiviert
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: passi on June 06, 2008, 06:08:26 PM
Help Please..

I'm relatively new at modifcations and am hoping someone can help..

I followed the instruction as they appear and when i went into 4 images to edit the member_profile.html i am met with the folling error:

Quote
Parse error: syntax error, unexpected ';', expecting ')' in /home/tangledi/public_html/epaints/includes/sessions.php on line 69

I have searched through the coding on the sessions.php file and i can't find the error it is referring too... i'm hoping someone else maybe able to identify it:

Quote
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: sessions.php                                         *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.4                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) fr weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------

define('SESSION_NAME', 'sessionid');

$user_table_fields = array(
  "user_id" => "user_id",
  "user_level" => "user_level",
  "user_name" => "user_name",
  "user_password" => "user_password",
  "user_email" => "user_email",
  "user_showemail" => "user_showemail",
  "user_allowemails" => "user_allowemails",
  "user_invisible" => "user_invisible",
  "user_joindate" => "user_joindate",
  "user_activationkey" => "user_activationkey",
  "user_lastaction" => "user_lastaction",
  "user_location" => "user_location",
  "user_lastvisit" => "user_lastvisit",
  "user_comments" => "user_comments",
  "user_homepage" => "user_homepage",
  "user_icq" => "user_icq",
$user_table_fields = array(
  "user_id" => "user_id",
  "user_level" => "user_level",
  "user_name" => "user_name",
  "user_password" => "user_password",
  "user_email" => "user_email",
  "user_showemail" => "user_showemail",
  "user_allowemails" => "user_allowemails",
  "user_invisible" => "user_invisible",
  "user_joindate" => "user_joindate",
  "user_activationkey" => "user_activationkey",
  "user_lastaction" => "user_lastaction",
  "user_location" => "user_location",
  "user_lastvisit" => "user_lastvisit",
  "user_comments" => "user_comments",
  "user_homepage" => "user_homepage",
  "user_icq" => "user_icq", // Mod: Track User Downloads (comma was added at end of line!)
  "download_lastaction" => "download_lastaction" // Mod: Track User Downloads
);

//-----------------------------------------------------
//--- End Configuration -------------------------------
//-----------------------------------------------------

function get_user_table_field($add, $user_field) {
  global $user_table_fields;
  return (!empty($user_table_fields[$user_field])) ? $add.$user_table_fields[$user_field] : "";
}

class Session {

  var $session_id;
  var $session_key;
  var $user_ip;
  var $user_location;
  var $current_time;
  var $session_timeout;
  var $mode = "get";
  var $session_info = array();
  var $user_info = array();

  function Session() {
    global $config;
    $this->session_timeout = $config['session_timeout'] * 60;
    $this->user_ip = $this->get_user_ip();
    $this->user_location = $this->get_user_location();
    $this->current_time = time();

    if (defined('SESSION_KEY') && SESSION_KEY != '') {
        $this->session_key = SESSION_KEY;
    } else {
        $this->session_key = md5('4images' . realpath(ROOT_PATH));
    }

    // Stop adding SID to URLs
    @ini_set('session.use_trans_sid', 0);

    //@ini_set('session.cookie_lifetime', $this->session_timeout);

    session_name(urlencode(SESSION_NAME));
    @session_start();

    $this->demand_session();

thank you in advance...
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: nobby on June 06, 2008, 06:16:10 PM
The area is duplicated

Code: [Select]
$user_table_fields = array(
  "user_id" => "user_id",
  "user_level" => "user_level",
  "user_name" => "user_name",
  "user_password" => "user_password",
  "user_email" => "user_email",
  "user_showemail" => "user_showemail",
  "user_allowemails" => "user_allowemails",
  "user_invisible" => "user_invisible",
  "user_joindate" => "user_joindate",
  "user_activationkey" => "user_activationkey",
  "user_lastaction" => "user_lastaction",
  "user_location" => "user_location",
  "user_lastvisit" => "user_lastvisit",
  "user_comments" => "user_comments",
  "user_homepage" => "user_homepage",
  "user_icq" => "user_icq",

nobby
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: passi on June 07, 2008, 12:57:17 AM
ahhh ok i misunderstood the instructions... thank you very much
Title: ID der heruntergeladenen Fotos im CP wird nicht angezeigt, brauche HILFE!!!!!
Post by: Eresus on August 12, 2008, 06:29:16 PM
Ich hab mich an folgenden Thread gehalten:

http://www.4homepages.de/forum/index.php?topic=4606.0

Es wurde zwar alles korrekt integriert aber es klappt nicht. Hat jemand Erfahrung wieso keine ID der heruntergeladenen Fotos im Benutzerprofil im CP angezeigt wird?

Gru
Title: Re: ID der heruntergeladenen Fotos im CP wird nicht angezeigt, brauche HILFE!!!!!
Post by: Eresus on August 12, 2008, 06:37:31 PM
Mag sein, dass hier der Fehler liegt.  hat das jemand schon mal in der neueren Version zum laufen gebracht????????????
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Eresus on August 12, 2008, 07:15:40 PM
Funktioniert das Ursprungsskript nun in 1.7.6???

Bei mir klappt es nicht. was muss man beachten???


____________________________


Does it works in 1.7.6?????
Title: Re: ID der heruntergeladenen Fotos im CP wird nicht angezeigt, brauche HILFE!!!
Post by: mawenzi on August 12, 2008, 07:15:54 PM
@Eresus

... der Hamster meiner Nachbarin ist gestorben, kannst du mir sagen woran ... ?

( Was wrdest du sagen, wenn ich diese Frage hier ernsthaft stellen wrde ? 1. Die Frage gehrt nicht hierher ! 2. Und wenn ich helfen wollte, so geht das nicht mit dieser "negativen Informationsflut" zu dem Problem ! )

btw. ... der Track-MOD luft bestens ...
Title: Re: ID der heruntergeladenen Fotos im CP wird nicht angezeigt, brauche HILFE!!!!!
Post by: Eresus on August 13, 2008, 09:41:55 AM
Mag sein, dass ich mich zur Personenidentifizierung etwas knapp ausgedrckt hat. Aber da ich keine Ahnung von dem Kram hier habe, kann ich es auch nicht besser. Ich habe von dem MOD die erste Seite in meine Skripts integriert. Es kommt zwar keine Skriptfehlermeldung aber im CP wird auch keine IDs von den heruntergeladenen Fotos angezeigt. Mehr wei ich leider nicht. Ich benutze Version 1.7.6.
Ich dachte vielleicht wei jemand spontan was an dem Skript falsch war. Ich wei ja nicht ob die nderungen auf den nchsten Seiten des Thread fr mich ntig sind.
Vielleicht knnen die Spezialisten unter euch bestimmte Fragen stellen um das Problem einzukreisen?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Nicky on August 13, 2008, 10:05:41 AM
.merged.

hi Eresus,

ist nicht ntig ein neues thread zu ffnen, bitte im MOD thread fragen zu dem MOD stellen. THX!

ich hab dieses mod vor ca. 1-2 monaten auf der 1.7.6 ausprobiert. und dieser hat auch funktioniert..
also, machst du was falsch wie es aussieht.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Eresus on August 13, 2008, 10:09:54 AM
Gut zu hren, dass das Skript funktioniert mit 1.7.6. Mag ja sein, dass ich was falsch mache. Nur leider wei ich nicht was. Ich habe den Posts von Chris integriert und berprft. Aber irgendwie klappt es nicht.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Eresus on August 15, 2008, 03:07:31 PM
Hallo,

ich habe immer noch das Problem, dass die heruntergeladenen Bilder nicht im CP angezeigt werden.
Nun habe ich in meiner Datenbank gesehen, dass die heruntergeladenen Bilder-IDs erst gar nicht dort eingetragen werden. Die Spalte ist leer. Welches Skript ist denn berhaupt dafr zustndig, dass die IDs in die Datenbank eingetragen wird. Vielleicht kann ich den Fehler so schneller finden.

Danke schon mal fr eure Hilfe!
Carsten

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on August 15, 2008, 03:35:13 PM
Du hast aber die 4i_install_tud.php hochgeladen, und ausgefhrt ??

dann das kontrolieren
Quote
Open includes/db_field_definitions.php, locate:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Eresus on August 15, 2008, 03:57:42 PM
Danke fr deine Antwort.

Ja ich habe die 4i_install_tud.php hochgeladen. Das kann man ja daran sehen, dass in der Datenbank unter User die Spalten downloaded_image_IDs und downloaded_lastaction zu finden ist.
In der Datenbank steht bei den Registrierten User unter downloaded_image_IDs nichts und unter downloaded_lastaction steht 1970. Beim Administrator steht dort Null im Feld downloaded_image_IDs und nichts im Feld downloaded_lastaction. Habe mit beiden Accounts einzelne Fotos heruntergeladen. Aber in der Datenbank ist nichts zu finden.

Ja, den Einschub in includes/db_field_definitions.php habe ich kontrolliert. Da gibts ja nicht viel falsch zu machen.

Hast du noch ne Idee woran es liegen kann?
Gru
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on August 15, 2008, 04:00:38 PM
eigentlich nur den, alles noch mal zu checken, denn ich hatte da auch mal erfolgreich eingebaut, hatte aber dafr andere Fehler (Session)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Eresus on August 15, 2008, 04:12:59 PM
mmmhhh, ich hab es schon mehrere male kontrolliert. Finde einfach den Fehler nicht.

Trotzdem danke fr deine Hilfe.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Eresus on August 15, 2008, 04:55:29 PM
Was steht bei euch in der Datenbank unter Users in dem Feld downloaded_image_IDs. Steht dort einfach nur die ID? Also nur eine Zahl wie 5?

Ich habe in der Datenbank unter downloaded_image_IDs mal 5 eingegeben. Dann sollte doch im CP unter dem entsprechenden User der Link downloaded_image_IDs direkt links neben dem Feld in dem die heruntergeladenen IDs stehen (dort steht bei mir nun auch eine 5), das entsprechende Foto mit der ID 5 angezeigt werden. Oder? Leider ist das bei mir nicht der Fall.

Gruß
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on August 15, 2008, 05:11:55 PM
bitte keine doppelpostings, man kann ein Posting editieren.

Quote
Was steht bei euch in der Datenbank unter Users in dem Feld downloaded_image_IDs. Steht dort einfach nur die ID? Also nur eine Zahl wie 5?

hab es gelscht

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: WWT 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.  :roll:
hello everyone,
i know this has been posted over 3 years ago  :oops: but has Chris made public the code for this addon? :) normal mode works fine but i can't track lightbox zip download.
what he said at that time sounds really god.

thank you
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: WWT on September 22, 2008, 04:00:15 PM
no answer? no one?  :( Chris?  :roll:
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: joe007 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: joe007 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?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: V@no 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: joe007 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.

Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: joe007 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: paule 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas 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.
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: paule on April 18, 2009, 08:24:43 PM
Hallo,

danke. Hab ich gemacht. Keine nderung...

paule
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: tramfahrer 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

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

Gre
Tobias
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: viadata 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
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Hoang 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

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

Gre
Tobias
which file need insert this code?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: viadata on September 27, 2010, 12:13:47 AM
Hallo Chris,

ich benutze deine MOD und bin voll zufrieden. Gute Arbeit!
Fr mich wre es von groem Nutzen, wenn ich sowas wie mit den Downloads auch fr den Leuchtkasten htte.
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 fr einen Antwort.

Holger
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Warrior on April 20, 2011, 02:42:18 AM
EDIT: (original post I made) Never mind.

(new content in this post) Got it working with the original coding. Good to see it works in hte latest 4Images :)
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: wdomi on May 30, 2011, 08:51:07 PM
Hi Chris,
I have started an new test for my database using your mod. I have installed vers. 1.7.10. and modified everything as supposed. The installation works without errors but if I using the profile for the user applied I dont get a result of downloaded images. Instead of a message "Die Suche ergab keine Treffer" mening "no hits".  What did I wrong?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: kooogel on October 13, 2011, 03:05:04 AM
Hi!

Thanks for this Mod. I've installed everything right the way you wrote. But I had an error with adding the ID's of downloaded images to the database. The problem I found was the following:


if ($user_info['user_level'] == USER) // Mod: Track User Downloads
    add_to_downloaded_image_ids($image_id); // Mod: Track User Downloads


When adding this line of code to the download.php file you have to add { and } to that if-request. So the right way would be


if ($user_info['user_level'] == USER) { // Mod: Track User Downloads
    add_to_downloaded_image_ids($image_id); // Mod: Track User Downloads
} // Mod: Track User Downloads


Anyway, there's also a problem with zip-downloads out of the lightbox. The id's of the downloaded images don't get written into the database. Has anyone a solution for this??

EDIT:
I also found the second problem. :-) Just added the code V@no posted in http://www.4homepages.de/forum/index.php?topic=4606.0;msg=25435
And again: Thank you for this Mod! Now it works perfectly!!!

Greatz
Christoph
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Jan-Lukas on March 18, 2012, 01:24:19 AM
Funktioniert in der 1.7.10 perfekt...
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: oliver2610 on September 23, 2012, 08:16:27 AM
Habe den mod in 1.7.11 mit Ausfhrung 4i_install_tud_fixed.zip, bekomme weien Bildschirm. Nach Ausbau lief es wieder ohne Schwierigkeiten. Hat jemand eine Ahnung, was ich falsch gemacht haben knnte?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: deb0727 on August 31, 2013, 12:53:22 AM
This link isn't working...can someone help...I have done everything I was supposed to but doing this

4i_install_tud.php
Because the database must be modified, and it can be difficult to do correctly, I have written and tested an installer. Download the 4i_install_tud.zip file attached to this post. Extract the 4i_install_tud.php file and upload it to your web site. In a web browser, go to http://www.example.com/4images/4i_install_tud.php and follow the on-screen instructions.  Once your database is successfully updated, you should delete 4i_install_tud.php
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: Warrior on August 31, 2013, 03:15:28 AM
At the bottom of the very first post are two attachments. Did you get those?
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: xcitepress on November 06, 2016, 12:09:50 PM
Hey there - is it possible to reup the attached files? It doesnt work it i unzip it...
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: nobby on November 06, 2016, 03:37:58 PM
Hey there - is it possible to reup the attached files? It doesnt work it i unzip it...

It works  8O  Posting 1 by Chris

nobby
Title: Re: [Mod] Keep Track Of What Each User Has Downloaded
Post by: winzie on February 11, 2017, 11:24:48 PM
 8O does this mod work with 1.8 V ?