Quote:
Originally Posted by sarangan
Your plugin is very good, i am using on my very large forum. But the problem is i have about 120000 images in the imgcache folder. Because of too much images in a single folder it crashes the server harddisk to get the images and load.
Now the suggestion: It will be good if your script can automatically create new folders for everymonth like when we are in november 2009 then folder name have to be /imgcache/112009/, for december 2009 /imgcache/122009/ etc.
If you can modify the script like this, i am sure your plugin will be the best for ever.
Thank you.
|
Just change this:
Code:
// Create filename
$f = 'imgcache/' . sprintf('%d', $id) . '.png';
To this:
Code:
// Create filename
$kd = "imgcache/" . date("m_Y");
if (!is_dir($kd)){
mkdir($kd , 0777);
$filename = $kd . '/index.html';
$Content = "Restricted Access\r\n";
$handle = fopen($filename, 'x+');
fwrite($handle, $Content);
fclose($handle);
}
$f = $kd . '/' . sprintf('%d', $id) . '.png';
Quote:
Originally Posted by ThomasR
No plans of releasing this plugin for vb 4? I'm looking for such plugin and as the targeted forum use tons of images, like Sarangan, a new folder organization would be welcome
|
Works on vb 4.0.1