• [Mod] Keep Track Of What Each User Has Downloaded 4 0 5 1
Currently:  

Author Topic: [Mod] Keep Track Of What Each User Has Downloaded  (Read 224449 times)

0 Members and 1 Guest are viewing this topic.

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #105 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


Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #106 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?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #107 on: July 19, 2006, 02:52:35 AM »
yes, its asks you to confirm username/pass for database and not for your gallery site ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Ch*yeuk

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #108 on: July 19, 2006, 06:24:30 AM »
Can this mod show the thumbnails of the images users have downloaded?

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #109 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #110 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...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #111 on: July 19, 2006, 02:34:18 PM »
Thanx  a lot , V@no


Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #112 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?)

Offline Charlie Sturge

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #113 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

Offline TubeTopia

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • TubeTopia
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #114 on: October 23, 2006, 09:40:55 AM »
Would really appreciate a fix for this mod for version 1.7.3  :)
"Don't worry about the world coming to an end today. It's already tomorrow in Australia." Charles Schultz

Offline Funix

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #115 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
« Last Edit: November 02, 2006, 10:01:50 PM by Funix »

Offline TheBrain99

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Eurofun
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #116 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

Offline binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #117 on: March 11, 2007, 01:41:15 AM »
Will this work in 1.7.4 version?

Thanks
www.sourcestravel.com
See your travel destnations ahead.

Offline LeeWicKeD

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #118 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?

Offline Buggy Driver

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [Mod] Keep Track Of What Each User Has Downloaded
« Reply #119 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