SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 07:46:18 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 41
Total: 41
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Multiple downloads folders  (Read 996 times)
Tribal-Wolf
Newbie
*
Offline Offline

Posts: 12



View Profile
« on: July 26, 2010, 06:05:25 am »

Is there a setting or some other way to regulate how many files or how much data is stored in each folder? When I first enabled it there was a folder 0 then it created a folder 1 but now folder 1 is huge and it has not created any more folders. Undecided
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: July 27, 2010, 11:57:58 am »

It is based on every 1000 files uploaded.
Logged
Tribal-Wolf
Newbie
*
Offline Offline

Posts: 12



View Profile
« Reply #2 on: July 27, 2010, 12:37:17 pm »

Is there a way to change that figure?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: July 27, 2010, 12:43:37 pm »

You would have to edit the code it is based on the file id.
Open either Sources/Downloads.php or Sources/Downloads2.php
Find
Code:
$folderid = floor($ID_FILE / 1000);
And replace 1000 with the number you want. If you wanted to do 100 instead of 1000 just use 100
Logged
Tribal-Wolf
Newbie
*
Offline Offline

Posts: 12



View Profile
« Reply #4 on: July 27, 2010, 01:13:37 pm »

Great, thanks for your help  Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.217 seconds with 18 queries.