• [MOD] Download limit v1.0.1 4 0 5 1
Currently:  

Author Topic: [MOD] Download limit v1.0.1  (Read 194892 times)

0 Members and 4 Guests are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Download limit v1
« Reply #105 on: March 25, 2006, 09:27:45 PM »
Sorry, this mod does not support v1.7.2 (yet) download.php files was significaly changed in that version...
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 renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [MOD] Download limit v1
« Reply #106 on: March 26, 2006, 04:37:36 AM »
OK, thanks V@no!

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [MOD] Download limit v1
« Reply #107 on: March 26, 2006, 05:42:55 PM »
Hello V@no

I can't find the code in step 2.3
Code: [Select]
      $file['file_size'] = strlen($file['file_data']);
    }
    else {
      header("Location: ".$site_sess->url($url, "&"));
I will use on my new site,
it is version 1.7.2 i know there are some changes.
mayby you can update the mod to 1.7.2  :roll:

thanks  :D



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] Download limit v1
« Reply #108 on: March 26, 2006, 07:06:34 PM »
Ok guys, I've added new steps 2.3.1, 2.4.1 and 2.5.1 for 4images v1.7.2 only (I did not have time to fully test it, but I'm pretty sure it should work fine ;))

Also, please note, if a step specifyed 4images version, then you should use that step only if your version is matching, otherwise skip that step.
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 binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [MOD] Download limit v1
« Reply #109 on: March 28, 2006, 05:36:06 PM »
I have done this MOD for ver 1.72. Everything is working fine, except that when  I give the dowload limit as 5, it takes only four.
What could be the problem?
Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

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] Download limit v1
« Reply #110 on: March 29, 2006, 02:02:57 AM »
and if you set it to 10? how do you download the files when testing? how much does it show before you start download? pay attention to the download counter, does it show the correct number all the time?
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 binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [MOD] Download limit v1
« Reply #111 on: March 29, 2006, 06:31:24 AM »
Ok. I think that was a problem with the cookies in my computer. When I tried that from another computer, it was working fine.

But I need one help. I think that many users may click on the download link of an image, more than once . Can we make the script allow the same file to be clicked more than once, or even download more than once without affecting the counter. It is because a user may have a broken download, in that case he can download the same image again.
Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

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] Download limit v1
« Reply #112 on: March 29, 2006, 07:17:02 AM »
hmmmm...this is a very good idea, I'll see what I can do ;)
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 binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [MOD] Download limit v1
« Reply #113 on: April 12, 2006, 08:22:10 AM »
hmmmm...this is a very good idea, I'll see what I can do ;)
Hai Vano,
Is there any progress? Just curious?
Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

Offline True4

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] Download limit v1
« Reply #114 on: June 04, 2006, 03:53:25 PM »
by the admin tool for user
what time is "Start time"
$lang['user_dl_time'] = "Start time";

Should I write in the Start Time (in Admin Tool)
2006-06-04
because the user started at this time
or what

but if i write this, than by the next time the field is only "2006"

I'm confused, what ist Start Time?

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] Download limit v1
« Reply #115 on: June 04, 2006, 07:44:22 PM »
You should not change the start time, its only used by the script to store when the first image downloaded. basicaly it holds PHP time stamp http://php.net/manual/en/function.time.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Ch*yeuk

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Download limit v1
« Reply #116 on: July 17, 2006, 11:08:17 PM »
Awesome mod and clear instructions. Installed it and everything's working.

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Download limit v1
« Reply #117 on: July 19, 2006, 03:20:40 PM »
Hi v@no,
           I downloaded this mod and applied to 1.7.3 , but i cannot see anything when i paste {user_dl_limit} in
userlogininfo.html or
userloginform.html or
 details.html .

i have seen you solving smilar query for other : u said u changed step 5



          I used to have this mod perfectly working with 1.7.2 two days back but now its not working . ... it redirects me to the indexpage when i try downloading and on clicking again it shows me just a message that :
Sorry, you've reached the download limit per hours

But in 1.7.2 i used to see the no. of downloads done and time left for more downloads..

IS THIS MOD NOT FOR 1.7.3?

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] Download limit v1
« Reply #118 on: July 20, 2006, 07:16:51 AM »
I dont see anything in the code that would affect as you've discribed...
Perhaps you missed a step, or made a mistake in a step...make sure you use the changes for v1.7.2 (if marked)

P.S. in step 5 make sure you added the code above FIRST instance of the line you are supposed to find (there are more then one instance of that line)
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 macmaster_it

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Download limit
« Reply #119 on: August 31, 2006, 02:05:31 PM »
hi, i've installed tihis mod to 1.7.3 it works, but not fine  :?

1. files in zip-files (lightbox) not counted
2. total download (from the statistic-mod) show more then downloaded, why??

Plaese have a look at my files, what is going wrong....