7 of 34
7
New Extension: nGen File Field for FieldFrame
Posted: 28 April 2009 07:47 PM   [ Ignore ]   [ # 109 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  09-18-2008

@Cem It’s a little of both. FF Matrix builds it’s array using what the various field types build. File field stores data in it’s own array currently (soon will only be a file name) which is in turn is stored by FF Matrix. Hope that makes sense.

 Signature 

///////////////////////////////////////////////////////////////////////
+ Fred Boyle
+ nGen Works
///////////////////////////////////////////////////////////////////////

Profile
 
 
Posted: 30 April 2009 03:22 PM   [ Ignore ]   [ # 110 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008

Hi there

When I upload a file that alredy exists, I get the following error:

NoticeUndefined offset1 in /home/xxx/public_html/backend/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 411 

after that the stylesheet is out of place, but when I refresh everything is in place again. file uploaded, thumb created…
it’s a minor bug, just to let you know…

cheers
stefan

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 30 April 2009 03:44 PM   [ Ignore ]   [ # 111 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  01-20-2006

I needed to use this extension on a MSM enabled site, and found that in the custom field settings, it doesn’t denote which site you’re on for file upload destinations.
I changed the select_upload_destinations function to the following to get Site labels. (i did not add any default settings however. I’ll polish it up and repost when I do that).

* just added the site specific name and labels to the query so it selects that info as well, ordering by site_id, then name.

$dls $DB->query("SELECT exp_upload_prefs.id, exp_upload_prefs.name, exp_sites.site_name, exp_sites.site_label, exp_sites.site_id FROM exp_upload_prefs, exp_sites WHERE exp_sites.site_id = exp_upload_prefs.site_id ORDER BY exp_sites.site_id, exp_upload_prefs.name ASC");
        foreach(
$dls->result as $dl)
        
{
            $selected 
= ($dl['id'== $current_option) ? " selected=\"true\"" "";
            
$block .= "<option value=\"{$dl['id']}\"$selected>{$dl['site_label']} - {$dl['name']}</option>";
        
 Signature 

AJ Penninga
Pretty Squares, LLC - http://www.prettysquares.com

Profile
 
 
Posted: 01 May 2009 08:57 AM   [ Ignore ]   [ # 112 ]  
Grad Student
Rank
Total Posts:  59
Joined  12-16-2007

I hope new version will come with some of the functionalities of Mark Huot’s File extension, such as options as Clean Filenames and Rewrite Filenames.

Profile
 
 
Posted: 01 May 2009 10:24 AM   [ Ignore ]   [ # 113 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

New release v.0.9.5

http://www.ngenworks.com/software/ee/ngen-file-field/

• New feature: Select an existing file
• Delete or de-associate: Now that you can use an existing file, you can either remove a file from the server (even if other entries use it) or just remove it from use with a particular entry via a new delete interface
• MH File compatability: can now be a drop in replacement for single file uploads. NOTE! This will not work with fields that have multiple files uploaded. You will need to migrate those fields to an FF Matrix
• File data is no longer stored as an array
• Thumbnails are automatically create for use in the CP
• “thumbs” directory under the upload directory for the field will be created to store the thumbnails
• Image detection has been improved for thumbnail display - only GIF/JPG/PNG will show thumbnails

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 01 May 2009 10:51 AM   [ Ignore ]   [ # 114 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  04-30-2007

Before I update, are there any compatibility issues with updating over the previous version due to how the data was stored in an array and now is not? Will my existing file upload data still work fine or be converted over to the new storing method?

 Signature 

Casey Reid // Clearfire, Inc. // EE Pro Network // @caseyreid

Profile
 
 
Posted: 01 May 2009 11:08 AM   [ Ignore ]   [ # 115 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008
rockthenroll - 01 May 2009 02:24 PM

...

hi there,
I’ve just uploaded the new files, now I don’t see the new features… &-)
I deleted the old files and re-uploaded…

edit.. Ahh I see, on your homepage there’s only the 0.9 version? care to give the 0.9.5 link?

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 01 May 2009 11:56 AM   [ Ignore ]   [ # 116 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

@outline4 sorry, about that! Forgot to change the link. The site has been updated.

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 01 May 2009 01:07 PM   [ Ignore ]   [ # 117 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  526
Joined  09-06-2006

The new features are brilliant!

I’ve uploaded this to 2 different installs and seem to have some strange behavior. On one site which has both a FF Matrix field(w/nGen File) and a seperate nGen File Field, when I click “Use an Existing File” the link seems to jump to the top of the page, but nothing happens.

On the 2nd install, using just a FF Matrix(w/nGen File) the 1st row works perfectly. When I try to add a second row, I get the same behavior as above. If I fill in another field in the 2nd row and save, I can then use the nGen File’s “Use an Existing File” control. The options that pop up next to the trash icon (also really nice idea) also fail under the same conditions.

 Signature 

Kyle Summer | smartpill design | New Haven, CT |  twitter

Profile
 
 
Posted: 01 May 2009 01:22 PM   [ Ignore ]   [ # 118 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008
smartpill - 01 May 2009 05:07 PM

The new features are brilliant!

I’ve uploaded this to 2 different installs and seem to have some strange behavior. On one site which has both a FF Matrix field(w/nGen File) and a seperate nGen File Field, when I click “Use an Existing File” the link seems to jump to the top of the page, but nothing happens.

On the 2nd install, using just a FF Matrix(w/nGen File) the 1st row works perfectly. When I try to add a second row, I get the same behavior as above. If I fill in another field in the 2nd row and save, I can then use the nGen File’s “Use an Existing File” control. The options that pop up next to the trash icon (also really nice idea) also fail under the same conditions.

yes, if you want to choose an existing file within a matrix, you can only do it with the top row…
but.. it’s working… hell yeah! woudn’t have thougth this possible…
gREAT extension!!

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 01 May 2009 02:03 PM   [ Ignore ]   [ # 119 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008

Uaah.. and I get a line in the frontend for every entry I made:

NoticeUndefined indexfile_name in /home/xxx/public_html/backend/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 556 

how should I proceed when I have files thar are already uploaded?
cheers
stefan

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 01 May 2009 02:19 PM   [ Ignore ]   [ # 120 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  04-30-2007

I was getting that same error too. It seemed like if I went into each existing entry and re-saved that it would not show that error anymore. But it was not consistent.

 Signature 

Casey Reid // Clearfire, Inc. // EE Pro Network // @caseyreid

Profile
 
 
Posted: 01 May 2009 02:38 PM   [ Ignore ]   [ # 121 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008
Casey Reid - 01 May 2009 06:19 PM

I was getting that same error too. It seemed like if I went into each existing entry and re-saved that it would not show that error anymore. But it was not consistent.

that’s only if I’m logged in.. maybe that helps…
cheers
stefan

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 01 May 2009 03:02 PM   [ Ignore ]   [ # 122 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  519
Joined  10-09-2007

I don’t see the use existing file link and I just upgraded.  I have not had my caffine yet so I need a little help:)

 Signature 

Vancouver Travel & Tourism http://www.discovervancouver.com/

Profile
 
 
Posted: 01 May 2009 03:25 PM   [ Ignore ]   [ # 123 ]  
Grad Student
Rank
Total Posts:  95
Joined  09-11-2008

Loving the new features!  Thanks for your hard work on this.  I love the extra thought on the trash can.

All good here so far!  Much appreciated

Cheers

Profile
 
 
Posted: 01 May 2009 03:56 PM   [ Ignore ]   [ # 124 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  519
Joined  10-09-2007

The caffeine is kicking in I now see the new link for 0.9.5.  The new features…I cannot say enough how usable this one is, how did EE ever live without it, good job!!!

Two things:

1. I get open base restriction warnings, I assume that I need to loosen up on my PHP.ini if I want the thumbnail to appear?

2. Will Mark’s old file extension convert over, I started using his back when it came out and now I want to use File Field exclusively but don’t want to destroy all the work I have done.

 Signature 

Vancouver Travel & Tourism http://www.discovervancouver.com/

Profile
 
 
Posted: 01 May 2009 05:20 PM   [ Ignore ]   [ # 125 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  305
Joined  04-12-2008

I’m getting really strange errors when trying to upload a file in the new extension version. Despite these errors, the file is uploaded.

Notice: Undefined variable: file_path in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 523

Notice: Undefined index: dirname in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 710

Notice: Undefined variable: im in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 724

Warning: imagesx(): supplied argument is not a valid Image resource in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 724

Notice: Undefined variable: im in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 725

Warning: imagesy(): supplied argument is not a valid Image resource in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 725

Warning: Division by zero in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 740

Warning: Division by zero in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 750

Notice: Undefined variable: im in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 758

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 758

Warning: mkdir() [function.mkdir]: Permission denied in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 761

Warning: chmod() [function.chmod]: No such file or directory in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 762

Warning: filemtime() [function.filemtime]: stat failed for /thumbs/_thumb.jpg in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 766

Warning: chmod() [function.chmod]: No such file or directory in extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 772

Warning: Cannot modify header information - headers already sent by (output started at extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php:523) in core/core.functions.php on line 726

Warning: Cannot modify header information - headers already sent by (output started at extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php:523) in core/core.functions.php on line 296

 Signature 

gridonic | Twitter


URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension
DC Template Manager

Profile
 
 
Posted: 01 May 2009 10:57 PM   [ Ignore ]   [ # 126 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  09-18-2008

New release v.0.9.6

http://www.ngenworks.com/software/ee/ngen-file-field/

This release resolves the reported Javascript issues and a few miscellaneous bugs regarding some of the notice errors reported.

 Signature 

///////////////////////////////////////////////////////////////////////
+ Fred Boyle
+ nGen Works
///////////////////////////////////////////////////////////////////////

Profile
 
 
   
7 of 34
7