2 of 34
2
New Extension: nGen File Field for FieldFrame
Posted: 31 March 2009 11:48 AM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  173
Joined  03-19-2008

Thanks for the wonderful extension, and I’m sure I’ll be singing its praises once this bug has been worked out.

I seem to be having trouble using this field. It keeps showing me a blank page when I go to publish a new entry or edit an old one. :(
Any ideas?

Profile
 
 
Posted: 31 March 2009 11:51 AM   [ Ignore ]   [ # 20 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006
IsabelS - 31 March 2009 03:03 PM

I have a question though,when dealing with images is there a way i can access the width and height so that they can be included in <img> tag?

Unless this feature is added into the fieldtype extension then you can get sizes of an image using PHP :

{exp:weblog:entries weblog="default_site" limit="1" dynamic="on" disable="categories|category_fields|trackbacks"}

<?php
$imageurl 
="/{image-url}";
list(
$width$height$type$attr) = getimagesize("$imageurl");
?>

{
/exp:weblog:entries} 

You would then be able to spit out the data using :

<?php
echo $height;
echo 
$width;
?> 

Hope that helps a bit.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 31 March 2009 11:54 AM   [ Ignore ]   [ # 21 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  304
Joined  01-03-2008
shinka - 31 March 2009 03:48 PM

seem to be having trouble using this field. It keeps showing me a blank page when I go to publish a new entry or edit an old one.

Might be an issue with FieldFrame, rather than nGen File Field. Try disabling nGen File Field in the Fieldtypes Manager. If it’s still happening, take it to Get Satisfaction.

 Signature 

pixelandtonic.com    @brandonkelly

Profile
 
 
Posted: 31 March 2009 03:02 PM   [ Ignore ]   [ # 22 ]  
Summer Student
Total Posts:  4
Joined  06-11-2007

Thanks a lot for this extension.
One question though: does it work with SAEF?

Profile
 
 
Posted: 31 March 2009 05:03 PM   [ Ignore ]   [ # 23 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  09-08-2006
Brandon Kelly - 31 March 2009 03:54 PM
shinka - 31 March 2009 03:48 PM

seem to be having trouble using this field. It keeps showing me a blank page when I go to publish a new entry or edit an old one.

Might be an issue with FieldFrame, rather than nGen File Field. Try disabling nGen File Field in the Fieldtypes Manager. If it’s still happening, take it to Get Satisfaction.

Strange thing happening o n my end too. TRying it out on local installation EE 1.6.7. Got no extensions except FieldFrame (v.1.0.0) and jQuery for CP. Any of the other field types work. Including third party like MD Color Picker or SC Countries Select.

After I turn the nGen File Field on, in the Fieldtypes Manager, the Publish or Edit page just hangs on a blank page. Even if I assign it to a custom field or to the matrix or if it’s unassigned. Server is MAMP with PHP5.

Any direction or help appriciated.

 Signature 

Stan Majerski
Elemental media

Profile
 
 
Posted: 02 April 2009 02:07 PM   [ Ignore ]   [ # 24 ]  
Summer Student
Total Posts:  15
Joined  04-27-2008

In FieldFrame 1.0.1 all of my nGen File Fields stopped working.
In the control panel everything looks fine but none of the code renders in the browser.
If I revert back to 1.0.0 everything is fine again.
Anyone else having issues with 1.0.1?


UPDATE: Brandon fixes the issue in FieldFrame 1.0.2

Profile
 
 
Posted: 02 April 2009 08:27 PM   [ Ignore ]   [ # 25 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

I’m having an issue with this extension.

When I upload images to it upon submitting an entry I get the following errors and the rest of my CP is gone. I have to backspace to see the EE CP.

NoticeUndefined offset1 in /path/to/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 411

Notice
Undefined offset1 in /path/to/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 411

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

Warning
Cannot modify header information headers already sent by (output started at /path/to/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php:411in /path/to/core/core.functions.php on line 296 
 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 02 April 2009 10:37 PM   [ Ignore ]   [ # 26 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  248
Joined  10-10-2007

Fantastic extension Fred, simply a must have for any setup. Also big kudos to Brandon for providing FieldFrame.

Currently I am getting below error on my local test environment

Notice: A session had already been started - ignoring session_start() in D:\Programs\XAMPP_1.6.7\htdocs\system\extensions\ext.publish_tweeks.php on line 185

As one can imagine, when Publish Tweeks extension is disabled all works fine.

Also, this more like a feature request but is there way to access previously uploaded images/files as a selection rather then uploading the same file with an automatically changed name.

Say, we’ve got two entries on the same category and I want them to have the same image as their default image or even on the same entry (see attached image)

 Signature 

.
....................................................who we are...what we do...how you benefit

Profile
 
 
Posted: 03 April 2009 11:07 AM   [ Ignore ]   [ # 27 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  09-18-2008

@IsabelS Currently this is not a feature of the field type. I’ve added it to our list of feature requests to be included in future versions.

@shinka + @elemental + @Sean C. Smith
Could you guys PM me more details about your environments (EE version, PHP version, Linux/Windows, any other extensions in use, etc)? If you’re no longer having the issue please let us know how you resolved it.

@TonMonde SAEF functionality is currently not supported.

@Cem Meric Noted that for Publish Tweeks. Also added your suggestion to our feature requests - a good idea.

 Signature 

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

Profile
 
 
Posted: 03 April 2009 11:29 AM   [ Ignore ]   [ # 28 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006
Fred Boyle - 03 April 2009 03:07 PM

@Cem Meric Noted that for Publish Tweeks. Also added your suggestion to our feature requests - a good idea.

This would be absolutely excellent if already uploaded files could be thrown into the pan. That would make this already fantastic work just the best ever!! grin

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 03 April 2009 11:30 AM   [ Ignore ]   [ # 29 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  305
Joined  04-12-2008
IsabelS - 31 March 2009 03:03 PM

First of all Thanks to Brandon and Fred for their great extensions!!! You guys just saved me a lot of trouble.

I have a question though,when dealing with images is there a way i can access the width and height so that they can be included in <img> tag? The same goes for any image uploaded via publish form… I haven’t really looked into this yet, so forgive me if it’s a basic question… Once again, thanks for you contributions.

You should be able to easily get this going using PHP.

 Signature 

gridonic | Twitter


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

Profile
 
 
Posted: 03 April 2009 11:34 AM   [ Ignore ]   [ # 30 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Here’s a quick piece of PHP code that I posted the other day to someone needing height and width.

<?php
$imageurl 
="/{file-url}";
list(
$width$height$type$attr) = getimagesize("$imageurl");
?> 

You can then spit out the height or width using :

<?php
echo $width;
echo 
height;
?> 

Hope it helps a bit.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 03 April 2009 11:35 AM   [ Ignore ]   [ # 31 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Scrap that I really should note that it was on this very page that I already posted this information wink

I could have sworn it was another thread and didn’t immediately see it above just then. Sorry!

Anyway that code should work for that sort of thing for anyone who needs it.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 03 April 2009 12:15 PM   [ Ignore ]   [ # 32 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  526
Joined  09-06-2006
Cem Meric - 03 April 2009 02:37 AM

Also, this more like a feature request but is there way to access previously uploaded images/files as a selection rather then uploading the same file with an automatically changed name.

Say, we’ve got two entries on the same category and I want them to have the same image as their default image or even on the same entry (see attached image)

I second this. I do a fair amount of work with non-profit local news sites that reuse images all the time so it would be great to have the option of using a link to a previous image. Thanks for considering it as a feature request. This is an awesome addition to a brilliant extension.

 Signature 

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

Profile
 
 
Posted: 03 April 2009 12:46 PM   [ Ignore ]   [ # 33 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  414
Joined  03-07-2007

Wow, this is a great add-on, i was fighting this afternoon with Mark Huot’s older file-extension but this is a great solution.
I do have a question, or actually a request.

I’m currently building a site where the editors have to upload larger press-images (3000x2000 pixels) and it looks like the thumbnail on the publish-edit page is showing the full image scaled down with CSS. Would it be possible to automatically generate a thumbnail and be able to use that in the CP and on front-end for preview purposes?

Regards,
GDmac

Profile
 
 
Posted: 03 April 2009 04:11 PM   [ Ignore ]   [ # 34 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  09-08-2006

@shinka + @Sean C. Smith

If you still have a publish/edit blank page, what is the limit memory for PHP. Fred suggesetd turning on the PHP errors and in my casr it was clear that the default 8M memory_limit was the couse of the error. The extension requested amore than.

TO check the PHP memory_limit go to CP Home ›  Admin ›  Utilities ›  PHP Info and search for memory_limit.

 Signature 

Stan Majerski
Elemental media

Profile
 
 
Posted: 06 April 2009 09:51 AM   [ Ignore ]   [ # 35 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  248
Joined  10-10-2007
Sean C. Smith - 31 March 2009 09:25 AM

Anyone up for posting a tutorial/screencast?

I’ve made a quick demo video using FF Matrix and nGen File Field in ExpressionEngine. I might give you some tips.

 Signature 

.
....................................................who we are...what we do...how you benefit

Profile
 
 
Posted: 06 April 2009 09:55 AM   [ Ignore ]   [ # 36 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  305
Joined  04-12-2008

The video seems nice, but it also seems to have an emphasis on “quick” as to me, it’s like runs like fast-forward. I cannot see anything apart from flashing pictures smile

 Signature 

gridonic | Twitter


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

Profile
 
 
   
2 of 34
2