Archive

Archive for the ‘TWG Flash Uploader’ Category

TFU, JFUploader and WFU 2.16 are implemented and available for testing

January 29th, 2012

Hi everyone,

I have finished TFU 2.16 and full the integrations into Joomla and Wordpress.

So all 2.16 versions will be available soon.

For TFU itself I did some refactoring of the layout. So now all layout switches and combinations of them can be set without any visible layout change.
A couple of small fixes and the changes I needed for Joomla and Wordpress are included as well.

For Joomla the editor button is now more comfortable. Uploaded files or created thumbnails are now automatically selected. TFU 2.16 is fully integrated and license files are only loaded from the database if they don’t exist.

The biggest change was for Wordpress. Custom configurations files and Javascript can be used. So profiles for users, groups and roles can be created. So you have now the same possibility as in Joomla. You only have to create the configuration files manually and like in Joomla with the backend.
Furthermore I have connected the sessions when the session workaround is used. So now it should work on almost any server.

If you already want to test one of the versions please let me know.

I will now start to test the versions on my test servers.

Have fun using TFU,JFU,WFU,
Michael

Wordpress flash uploader 2.15 is online

October 26th, 2011

WFU 2.15 is online.

This is the new stuff:

  • New configuration options for the ‘Sync media library’. You can define which file extensions should be syncronized.
  • You can enable automatically sync which is executed as cron job in WordPress. I have added several cron job times as well. You have to set “define(’ALTERNATE_WP_CRON’, true);” in wp-config.php to enable the cron jobs.
  • Running upload detection: The file size is read twice during the process. If the filesize changes then the file is still uploading and not synchronized!
  • Updated the flash to TFU 2.15

simply get it from wordpress.org directly:

http://wordpress.org/extend/plugins/wordpress-flash-uploader/

Have fun using WFU,

Michael

JFU/TFU/WFU 2.14.3 is available

July 27th, 2011

It’s already a few week since 2.14 is available but I added some more enhancements so that the most stable release you should use is now 2.14.3.

A quick overview what’s new:

TFU – TWG Flash Uploader
TFU does now support the creation of files, the date can be shown on the server side, folders can be sorted and you can set a directory quota for directory structures.

JFU – Joomla Flash Uploader
JFU does now include TFU 2.14.3 with all the new features that comes with it. The JFUploader Editor button is now completly configurable, previews of pdf’s can be created and even documents included with google doc viewer. Tested with Joomla 1.7.0

WFU – Wordpress Flash Uploader
WFU does now include TFU 2.14.3. Is also supports master mode and individual profiles for users and roles can be created. So now you have the full flexibility of TFU. Please read the advanced section for details.

TinyWebGallery
TWG 1.8.5 is already in the forum. I’m currently writing a plugin for Wordpress which gives you a perfect integration. I have already released a general iframe wrapper that has all features that are not TWG specific and can be found here: http://wordpress.org/extend/plugins/advanced-iframe/. If you like to test the TWG wrapper (iframe wrapper, random image widget and administration) for Wordpress please contact me.

TFU/JFU 2.14.2 bugfix release

July 13th, 2011

Hi,

this are 2 quick releases because I did some optimizations and found out that some stuff could be better:

JFU 2.14.2
Includes TFU 2.14.2
Fix: The editor button was not working because of an error in the language file which caused the Javascript to fail.

TFU 2.14.2
Fix: (php) The check if a file can be deleted is now working on even more servers.
Fix: (php) Normalize function does now support ÖÄÜ which are now converted to lowercase as well.
Fix: (php) Normalize function does now work for utf-8 as well.

TFU 2.14.1
Fix: When creation of folders was disabled and write protected folders where detected then the “Add files” button was not activated again if you go to a directory that was working again. Now the Button is activated if the folder is writable again.
Fix: If you add files and move afterwards to a diretory which is not writeable the flash was still showing an active upload button. Now the button is disabled and enabled again in a directory where the upload would work.
Fix: (php) fix encoding and normalize filenames switched in tfu_uplad.php to have the correct file encoding
Fix: (php) $sort_directores_by_date was not working properly – now it does.
Fix: (php) error_log can be not allowed which was shown in Joomla on the frontend. Now this message is hidden.

So please update to this versions, WFU will be updated soon as well.

Have fun using TFU/JFU,

Michael

TFU/JFU/WFU 2.14.1 released

July 6th, 2011

Hi,

I have updated TFU 2.14 to 2.14.1.

This is new:

Fix: (php) $sort_directores_by_date was not working properly – now it does.
Fix: (php) error_log can be not allowed which was shown in Joomla on the frontend. Now this message is hidden.

JFU/WFU do now include this version as well!

JFU for Joomla 1.6.x has some small layout fixes as well and the installer does now check for errors if Joomla adds wrong menu entries to the DB.

Have fun using TFU/JFU/WFU,

Michael

TFU/JFU 2.14 for Joomla 1.5.x and 1.6.x released

June 17th, 2011

Hi,

TFU/JFU 2.14 for Joomla 1.5.x and 1.6.x are now released.

simply go to the website and get the latest version. Ther you also find the main changes. For details always check the history in the packages.

I have also reworked the FAQ of TFU. You now have howto 19 which helps you to understand error messages better which are caused by the server.

WFU 2.14 is almost ready and you can already download the 1.8.5 preview in the forum. You can already use 1.8.5. I currently only do some internal stuff.

Have fun using TFU,JFU,

Michael

Optimized function to read the directory size

April 4th, 2011

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;
}

JFU and TFU where updated

March 26th, 2011

Hi,

I made a small update for TFU and JFU.

Some hosters add code automatically to each page – like a counter or ad’s. I have added a new parameter to the returns that prevents that added code modifies the last parameter.

Please update if you have any problems – otherwise no update is needed. The 2.13 version works fine.  The new version does not have a new version number – only a new release date!

Have fun using JFU/TFU,

Michael

TinyWebGallery is on facebook now

March 25th, 2011

Hi,

I have created a fan page on facebook where you can get a fan of.

I always post this blog there too. So if you like TWG, JFU, TFU or WFU – please click “like it” on the twg home page.

See: http://www.facebook.com/pages/TinyWebGallery/132473886826220

I need at least 25 likers that I can get a nice url.

So please help.

Best,

Michael

TFU 2.13.1 is available

March 13th, 2011

This is a very small update. I added a new functionality for the zip files to add the folder name to the zip file.

I made this an official release because it is included in JFU 2.13.

Have fun using TFU,

Michael