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

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

0 Members and 1 Guest are viewing this topic.

Offline Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Download limit v1
« Reply #15 on: May 18, 2005, 03:25:43 PM »
if u installed the mod properly and go to edit a user in ACP, then u should be able see new fields for download limit.

I am pretty sure I did it right. When I go to "edit user" I have the following fields with the options:

Quote
Download limit
set to 0 to use global settings
or -1 for unlimited

so 2 options are available - if I use 0, the user will have the global settings for the dl limit and -1 for unlimited

now let us say,

I would like User X to have 30 downloads per day as limit and User Z to have 50 downloads per day - is there a way to do this? (hoping badly there is lol)

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 #16 on: May 19, 2005, 12:11:45 AM »
Thats a tricky question! :lol:
but seriosly if u set it to 30 the user will have max of 30 downloads, if u set to 50, then max of 50 downloads...
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 Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Download limit v1
« Reply #17 on: May 19, 2005, 12:17:18 AM »
Thats a tricky question! :lol:
but seriosly if u set it to 30 the user will have max of 30 downloads, if u set to 50, then max of 50 downloads...

Hehe, not really a tricky one. I thought I only have TWO choices: 0 or -1. Never attempted to set a diff number. TYVM I will try that out. :mrgreen:

Offline dj9live

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [MOD] Download limit v1
« Reply #18 on: July 19, 2005, 11:31:52 PM »
could it be easy to change this mod to set the download limit with the number of uploaded files

when user a upload 1 pic the download limit gets bigger like a ratio or a credit system, i have seen some pepople asking about this, but i didtn find a solution 4 this. but i guess a little modification of the mod will bring the effect. what do you mean?

thnx kai

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 #19 on: July 20, 2005, 12:43:58 AM »
could it be easy to change this mod to set the download limit with the number of uploaded files
that would be a completly different mod.
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 dj9live

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [MOD] Download limit v1
« Reply #20 on: July 20, 2005, 01:10:55 PM »
i know, but is there a way to do it together ???

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Download limit v1
« Reply #21 on: August 11, 2005, 04:50:12 PM »
Nice mod, but those limitations work with sessions/cookies,
maybe who know, how to made with IP adresses?
there is better thing :!:

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Download limit v1
« Reply #22 on: August 14, 2005, 05:39:48 PM »
at first: there is no "detail.php" --> "details.php"
in details.php i dont found:
show_image($image_row, $mode, 0, 1, 1);
there is:
Code: [Select]
show_image($image_row, $mode, 0, 1);

in 1.7 and 1.7.1 versions

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 #23 on: August 14, 2005, 05:45:40 PM »
thank you. I've fixed the tutorial :)
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 ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Download limit v1
« Reply #24 on: August 14, 2005, 07:01:38 PM »
But you don't made this MOD with IP :)
just sessions, you know... sessions or cookies bad idea..

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 #25 on: August 14, 2005, 07:17:17 PM »
trust me, if one knows how to manipulate with cookies, they would know how to use proxy, wich makes restrictions by IP useless as well ;)
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 ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Download limit v1
« Reply #26 on: August 14, 2005, 09:13:02 PM »
but found many working proxies is harder, than clear cookies
need many time to change proxy and etc...

Offline srijit

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • CelebWallpapers.info
Re: [MOD] Download limit v1
« Reply #27 on: August 25, 2005, 08:29:36 AM »
dear v@no thank you very much for this mod. i do have a doubt though. if the user adds the pics to his lightbox, will that also be counted when he downloads all images in lightbox at a time? and also when he downloads from lightbox as zip? thanks for all the trouble :)

Offline miralin

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Download limit v1
« Reply #28 on: August 26, 2005, 10:14:06 PM »
Great mod!
Unfortunately  though I'm having trouble installing it...
I get to the step 10 in the tutorial but I cant get the installation to start.
When I type in the address for the 'dl_limit_install.php' file nothing happens,
I just get redirected to my index page...

I have double checked
1.) that I have made all the changes required for the mod to work
2.) that I have uploaded all the modified files =)
3.) that the 'dl_limit_install.php’ file is unziped and uploaded where it should be.
4.) and yes I’m logged in as admin

I cant seem to figure out what I’m missing or what I’m doing wrong.

/Malin

Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: [MOD] Download limit v1
« Reply #29 on: August 27, 2005, 01:05:22 AM »
when u browse your site while being logged in as admin, do u see sessionid=j3h4k23h4l2 in the address bar and all links on the page?
if so, then u must also include that sessionid to the url for dl_limit_install.php
like this: http://example.com/4images/dl_limit_install.php?sessionid=3k4jh23k4h32k4h2