Hi,
I have added a small (IPTC) link at the place where you enter the caption. So if an image has an IPTC caption you can copy this to the caption by clicking on the link. This link is only shown if an image has IPTC data.
This is like in the administration where you can do this for all images at once.
Best, Michael
Hi,
I have integrated the facebook integration to the administration of TWG. You can now like TWG there and see the latest entries of the blog as well.
Have fun using TWG,
Michael
For anyone who like a nice Google PageRank link:
TinyWebGallery.com has now a PR of 5 and the main
english site (www.tinywebgallery.com/en/overview.php)
even a PR of 6.
So if you like a nice link on this page please make me an offer.
Best,
Michael
Hi,
TWG 1.8.6 is available in the forum.
Please see here:
http://www.tinywebgallery.com/forum/viewtopic.php?f=14&t=3133&start=0
I’ll update the website an then this version will be officially released.
Please update to this version because it fixes too big Textareas in Firefox!
Have fun using TWG,
Michael
A small fix was made. In the demo was a ‘ in the filename which caused a Javascript to fail.
Now it work fine with a ‘ in the filename.
Simply update with the patch…
Wordpress Flash Uploader 2.14.4 is available.
There is only one small change: I added some @ to hide some notices which can happen when your database has errors.
Get the new version here:
http://wordpress.org/extend/plugins/wordpress-flash-uploader/
Have fun using WFU,
Michael
Hi,
The final version of TWG 1.8.5 is available in the forum.
http://www.tinywebgallery.com/forum/viewtopic.php?f=14&t=2944
I now update the website and the this version will be released with the tinywebgallery-wrapper for Wordpress.
- Michael
Hi,
a couple of nice improvements have been made to 1.8.5.
Please see details here:
http://www.tinywebgallery.com/forum/viewtopic.php?f=14&t=2944
Have fun using TWG,
Michael
Hi,
when using round corners and the magnifying glass of the lightbox the magnifying glass shows above the image.
This is a style sheet issue which is now fixed in the 1.8.5 preview of the forum.
- Michael
Hi,
I was looking for the best and fastest way to read the size of a directory. I found a lot of pure php functions which are very slow. I also found some optimized ways depending on the OS. I put all of them together where first the OS dependent versions are used and then the php one as backup.
On my local system the windows version was 18 times faster than the php version.
I have tested this on a couple of systems which where all using the optimized version. So feel free to use this methods.
You can download the functions here:
http://www.tinywebgallery.com/dl.php?file=getFoldersize
Below you find the (unfortunately) unformatted code.
Have fun using it
,
Michael
/**
* Optimized way to the the size of a directoy.
*
* First the windows or Unix way is tried. If this fails
* the php internal stuff is used.
*
* if you select legacy = false only the pure php
* version is used.
*/
function getFoldersize($path, $legacy = true) {
$size = -1;
if ($legacy) {
if (substr(@php_uname(), 0, 7) == "Windows"){
// we have to make the path absolute !
$path_ab = realpath($path);
$obj = new COM ( 'scripting.filesystemobject' );
if ( is_object ( $obj ) ) {
$ref = $obj->getfolder ( $path_ab );
$size = $ref->size;
$obj = null;
}
} else { // hopefully unix - du has to be in the path. If it is not you have to adjust the path.
$io = popen ( 'du -sb ' . $path, 'r' );
$usize = trim(fgets ( $io, 4096));
$split = preg_split('/\s+/', $usize);
$usize = $split[0];
pclose ( $io );
if (is_numeric($usize)) {
$size = $usize;
}
}
}
// backup if both ways fail. It is ~ 18 times slower (tested on windows) than one of the solutions above.
if ($size == -1) {
$size = foldersize($path);
}
return $size;
}
/**
* The basic php way to go through all directories and adding the file sizes.
*/
function foldersize($p) {
$size = 0;
$fs = scandir($p);
foreach($fs as $f) {
if (is_dir(rtrim($p, '/') . '/' . $f)) {
if ($f!='.' && $f!='..') {
$size += foldersize(rtrim($p, '/') . '/' . $f);
}
} else {
$size += filesize(rtrim($p, '/') . '/' . $f);
}
}
return $size;
}
Recent Comments