3.2 & 3.3 Extensions Database 3.2 / 3.3Download limit

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Download limit

Post by Sniper_E »

I know nothing about this ext at all but I just looked in the v102 migration...

Code: Select all

		$downloadlimit_exts = [
			'7z','ace','bz2','gtar','gz','rar','tar','tgz','torrent','zip'
		];
There is no 'nzb' listed there. Does that mean it's not counting the .nzb downloads?
Just a thought...
clight77 wrote: Dec 22nd, '19, 14:17Also waiting for Sniper_E to reply to see if he was reset.
Sorry buddy I forgot I was testing. Did I ever get back to you on that?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Download limit

Post by dmzx »

clight77 wrote: Apr 24th, '23, 02:53 Don't seem to work at all now for nobody. :(

Martin now thinks it is an extension conflict... We are trying to find the one..
Under test now, did install on fresh forum.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5115
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Download limit

Post by martin »

99% sure it's ext conflict.

Fails to work on my site but works perfect on test site with ext's off.
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Download limit

Post by dmzx »

martin wrote: Apr 24th, '23, 23:22 99% sure it's ext conflict.

Fails to work on my site but works perfect on test site with ext's off.
All test untill now on my test board work fine, will do some small code update but cannot recall the issues there.
Think martin is not right... :whistl:
But will do some more checks.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5115
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Download limit

Post by martin »

Nope i was wrong but did find the issue :yikes:

If you hit the limit and go sit on index for the set time the ext works perfect.

If you hit the limit and go surf the forum or forums that have a download in the timer restarts over and over each topic you visit resets the timer from start.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Download limit

Post by dmzx »

martin wrote: Apr 25th, '23, 12:00 Nope i was wrong but did find the issue :yikes:

If you hit the limit and go sit on index for the set time the ext works perfect.

If you hit the limit and go surf the forum or forums that have a download in the timer restarts over and over each topic you visit resets the timer from start.
will check....

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Download limit

Post by dmzx »

dmzx wrote: Apr 25th, '23, 14:02
martin wrote: Apr 25th, '23, 12:00 Nope i was wrong but did find the issue :yikes:

If you hit the limit and go sit on index for the set time the ext works perfect.

If you hit the limit and go surf the forum or forums that have a download in the timer restarts over and over each topic you visit resets the timer from start.
will check....
Did check the time value if download is done but that is correct.
Do find time() of server though, will look into this.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 504
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Download limit

Post by clight77 »

Hey DM
What is happening on my site seems to be....
If I set it for 1 hour it takes 2 hours to reset.
If I set it for 2 hours it takes 4 hours to reset.
If I set it for 3 hours it takes 6 hours to reset.
ETC ...

Just info :)

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Download limit

Post by dmzx »

clight77 wrote: Apr 27th, '23, 05:56 Hey DM
What is happening on my site seems to be....
If I set it for 1 hour it takes 2 hours to reset.
If I set it for 2 hours it takes 4 hours to reset.
If I set it for 3 hours it takes 6 hours to reset.
ETC ...

Just info :)
There is a thing going on with server time()
I have normally +1 gmt but if I set it lower then 3 hours the cron is in the past, so need to check from there. Did update time on server to check.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 504
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Download limit

Post by clight77 »

Martin did update my server time in the files.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

lol
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Nov 13th, '24, 10:28
    Windows 10 Firefox

Re: Download limit

Post by lol »

Hello,
I just read the full thread, this extension sounds very promising :) thanks for it. Is it working to download any attachement in post, that are allowed in ACP ?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

lol
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Nov 13th, '24, 10:28
    Windows 10 Firefox

Re: Download limit

Post by lol »

Could it be possible to combine it with ultimate point extension to allow users with a certains amount of points to increase the limit ?
i think about a system where leeschers are limited but posters can earn points to download more than the limit ?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Download limit

Post by dmzx »

lol wrote: Dec 11th, '24, 10:59 Could it be possible to combine it with ultimate point extension to allow users with a certains amount of points to increase the limit ?
i think about a system where leeschers are limited but posters can earn points to download more than the limit ?
Will look into integration options in this extension. For now updating other extensions is more prio but will take a look into this.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

lol
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: Nov 13th, '24, 10:28
    Windows 10 Firefox

Re: Download limit

Post by lol »

:thumbup:
super, there is no urgency, could be nice for my project, i can explain more my idea, just let me know where should i do it (question forum ?) to do it at the right place :wink:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Download limit

Post by dmzx »

lol wrote: Dec 11th, '24, 14:53 :thumbup:
super, there is no urgency, could be nice for my project, i can explain more my idea, just let me know where should i do it (question forum ?) to do it at the right place :wink:
See this section ideas