We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Extension: nGen File Field for FieldFrame

Development and Programming

Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

Nick, I think you’ll need to that with jQuery - you will probably be able to find a plugin that does what you want.

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@Nick Foxall Try using the FF Matrix {row_count} variable to set that up. So you would have:

{photo_set}
{if row_count = 1}
{exp:imgsizer:size image="{photo_file}" width="543" alt="{photo_caption}" id="img_5334" class="entry_img" quality="75"}
{if:else}
{exp:imgsizer:size image="{photo_file}" width="20" alt="{photo_caption}" id="img_5334" class="entry_img" quality="75"}
{/if}
{photo_caption}
 {/photo_set}

Something like that.

       
Jérôme Coupé's avatar
Jérôme Coupé
122 posts
16 years ago
Jérôme Coupé's avatar Jérôme Coupé

@Nick Foxall

Posted my way of doing a pictgallery with FF Matrix / imgsizer / ngen file a couple of days ago. I think it might be roughly what you want.

If you (or others) have some tips to optimise the code or the number of queries, please feel free to do so.

       
outline4's avatar
outline4
271 posts
16 years ago
outline4's avatar outline4

hi again,

I get some wierd errors after installing publish tweeks again: (this is after deleting a file permanently)

Warning: unlink(/home/xxx/public_html/images/uploads/thumbs/fahrplan_thumb.jpg) [function.unlink]: No such file or directory in /home/xxx/public_html/backend/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 391

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/backend/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php:391) in /home/xxx/public_html/backend/extensions/ext.publish_tweeks.php on line 194

anyone experience the same?

cheers stefan

       
LucPestille's avatar
LucPestille
146 posts
16 years ago
LucPestille's avatar LucPestille

I’ve run into a problem with nGFF - it was working perfectly last time I checked, but this morning, when trying to upload a file along with an entry, I get this;

Warning: unlink(C:/Program Files/xampplite/htdocs/images/uploads/a) [function.unlink]: No such file or directory in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 249

Fatal error: Cannot unset string offsets in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 254

Anyone got any idea what would cause that? I don’t think I’ve added any other extensions since. It does this with or without a file…

Thanks,

       
LucPestille's avatar
LucPestille
146 posts
16 years ago
LucPestille's avatar LucPestille

I think I’ve tracked it down, but it might still be relevent to the plugin - when I don’t fill in a required field in my entry, I get the error above. When I do fill everything in, it goes through OK…

       
Danny T.'s avatar
Danny T.
426 posts
16 years ago
Danny T.'s avatar Danny T.
I am getting a similar exif message on pages with existing MH upload info in the converted field.
Warning: exif_imagetype(---path---/images/articles/TFNC_logo_webcolors_NR_1.jpg ) [function.exif-imagetype]: failed to open stream: No such file or directory in /---path---/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 693

Any resolutions to this? I seem to be getting something similar:

Fatal error: Call to undefined function exif_imagetype() in /home/xxxxxx/domains/domain.com/public_html/system/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 693

Running 0.9.6. Prior to this, didn’t seem to have issues in my sandbox, but not entirely sure.

       
Danny T.'s avatar
Danny T.
426 posts
16 years ago
Danny T.'s avatar Danny T.

Fred,

Tried replying to you, but your inbox is full =)

       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

New release v0.9.7!

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

CHANGELOG

• Moved text into language file • Improved thumbnail creation/detection • Removed accidental dependency on PHP v5.2+ • Trash dialog now uses file/image wording based on filetype • Allow for uppercase file extensions when creating thumbnails • Only show current site’s upload locations • Exclude files that start with “.” for the existing files list • Improve MH File compatibility • Backup, if EXIF is not enabled, for exif_imagetype function

       
Michael Swanson's avatar
Michael Swanson
32 posts
16 years ago
Michael Swanson's avatar Michael Swanson

FYI,

I was having conflicts between this extension and both the Related Categories and Primary Categories extensions by Solspace. I updated both of them to the latest versions and applied Max’s change to the js file and BOOYAH! Everything is clickin’ along great thanks Max for figuring this out! Fred, might I humbly suggest this be added in to the next release of this fantastic plugin. Thanks for all your hard work.

open file jquery.ngen_file_field.js and put (function($){ at the begin and })(jQuery); at the end of the file. So you will have something like this:
(function($){ 
$('.ngen-file-delete-button').click( function() {
                if (confirm(nGenFile.lang.confirmDeleteFile) ) {
                    $(this).parent().next().children("input:last").val( $(this).parent().next().children("input:last").prev().val() );
                    $(this).parent().next().children("input:last").prev().val("");
                    $(this).parent().next().show();
                    $(this).parent().remove();
                }
                return false;
});

nGenFile = {};
nGenFile.lang = {};
})(jQuery);
       
Jeff  Adams's avatar
Jeff Adams
9 posts
16 years ago
Jeff  Adams's avatar Jeff Adams

Regarding my previous problem, I just deployed the site to my client’s EngineHosting account and tried uploading the files again. Everything seems to be working okay now. It must have been something with my localhost setup that was wonky.

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric
New release v0.9.7! http://www.ngenworks.com/software/ee/ngen-file-field CHANGELOG • Moved text into language file • Improved thumbnail creation/detection • Removed accidental dependency on PHP v5.2+ • Trash dialog now uses file/image wording based on filetype • Allow for uppercase file extensions when creating thumbnails • Only show current site’s upload locations • Exclude files that start with “.” for the existing files list • Improve MH File compatibility • Backup, if EXIF is not enabled, for exif_imagetype function

I just like to say thank you Travis for including “or use an existing file” option. Made my day.

       
eyevariety's avatar
eyevariety
158 posts
16 years ago
eyevariety's avatar eyevariety

Thank you guys, it is really going somewhere- and thanks to Fred for working with me on the exif issue. I ended up bumping up my PHP memory to deal with some bigger images and everything is zippy and working well.

nGen obviously takes pride in their work. Thanks

       
LucPestille's avatar
LucPestille
146 posts
16 years ago
LucPestille's avatar LucPestille
I’ve run into a problem with nGFF - it was working perfectly last time I checked, but this morning, when trying to upload a file along with an entry, I get this;
Warning: unlink(C:/Program Files/xampplite/htdocs/images/uploads/a) [function.unlink]: No such file or directory in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 249

Fatal error: Cannot unset string offsets in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 254

0.9.7 fixed this problem for me. Good work!

       
Jim Pannell's avatar
Jim Pannell
187 posts
16 years ago
Jim Pannell's avatar Jim Pannell

I’d also love to get this working with MSM. At the moment I’m just getting a blank page when editing or trying to publish a new entry.

       
First 9 10 11 12 13 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.