9 of 34
9
New Extension: nGen File Field for FieldFrame
Posted: 03 May 2009 07:23 PM   [ Ignore ]   [ # 145 ]  
Grad Student
Rank
Total Posts:  38
Joined  01-10-2009

Great extension.

I’m experiencing problems with exif php extension when I upload an image on my windows apache server. Should enabling the exif resolve all the issues?

Some ideas for further development:

1)
One idea is that would be really handful is if there would be a chance to rename the files or be able to place them in different folders.

Maybe something like the feature so that user would be able to change the filename and select the upload subdirectory from the FF matrix for each uploaded file.

2)
Make progress bar upload (Maybe something like http://www.uploadify.com/)

Profile
 
 
Posted: 04 May 2009 04:07 PM   [ Ignore ]   [ # 146 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  01-20-2006

Any chance we could add some MSM love to this extension?
Instead of my other fix that just added the site label, I changed it so it pulls only the current site:

Line 601: in the select_upload_locations() function

$dls $DB->query("SELECT id, name FROM exp_upload_prefs WHERE site_id = " .$PREFS->ini('site_id')." ORDER BY name ASC"); 

Also, you’d have to add the $PREFS global to line 596.

 Signature 

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

Profile
 
 
Posted: 04 May 2009 05:33 PM   [ Ignore ]   [ # 147 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008
urbanopleme - 03 May 2009 11:23 PM

Great extension.

I’m experiencing problems with exif php extension when I upload an image on my windows apache server. Should enabling the exif resolve all the issues?

Some ideas for further development:

1)
One idea is that would be really handful is if there would be a chance to rename the files or be able to place them in different folders.

Maybe something like the feature so that user would be able to change the filename and select the upload subdirectory from the FF matrix for each uploaded file.

2)
Make progress bar upload (Maybe something like http://www.uploadify.com/)

hi there, sorry to squeeze in.. but I am defenitely against 1)... you actually CAN specify different folders yourself as an admin… don’t confuse the user too much! otherwhise you could use the EE native file upload method, or can’t you wink
the delete option is already a lot..

- in fact I would add a feature request to enable/disable permanent file deletion for certain users… A user might be confused by this… and he could potentionally destroy a site…

2) + 1

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 04 May 2009 11:50 PM   [ Ignore ]   [ # 148 ]  
Summer Student
Total Posts:  10
Joined  02-03-2008

I have a weird issue that I can reproduce regularly. Maybe someone could figure this out.

Here’s the deal, I have one page that contains an FF Matrix with a text field and nGen file field. This is used for uploading and listing newsletter PDF files.

I have created 30 rows with only the text field, which indicates the file name, filled in and no files associated yet. Everything is good so far. Now I start uploading the PDF files one-by-one. I can add 21 files out of 30 but as soon as I add that 22nd file and hit save the screen goes to a blank white page. If I physically delete that 22nd PDF off of the file system I can load the page back up fine.

I have checked my PHP memory limit and upped it from 32M to 256M just to rule out the size issue. I get no errors in the PHP logs or through EE. Any clue what is going on?

Profile
 
 
Posted: 05 May 2009 06:33 AM   [ Ignore ]   [ # 149 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  257
Joined  06-25-2008

Does anyone have a tutorial on setting up nGen with ImageSizr plugin? I just want to create a simple gallery page with one main image and all the rest as thumbnails in a sidebar, similar to what David has got on his own site. Clicking a thumbnail would bring it up as full size, and the previous image would go back in the thumbnail set.

My code right now:

{exp:weblog:entries weblog="jcc_photogallery" limit="1" disable="categories|category_fields|trackbacks|comments"}
        
<h3>{title}{title_ch}</h3>
        
{photo_set}
        
<p>{exp:imgsizer:size image="{photo_file}" width="543" alt="{photo_caption}" id="img_5334" class="entry_img" quality="75"}</p>
        <
p>{photo_caption}</p>
        
{/photo_set}
        {
/exp:weblog:entries} 

where {photo_set} is the custom field containing my FF Matrix field type, {photo_file} is the field that links to the actual uploaded image (using nGen File Field), and {photo_caption} a a text field for the caption.

Here’s the test page. Yo can see each image is sized to fit (543 pix wide).

BUT… what if I just want the FIRST image to be 543 px wide, and the rest to scaled to small thumbnails (say 20 x 20 px) in a div below?

Thx!!

 Signature 

nickfoxall.com | ExpressionEngine Development in Hong Kong

Profile
 
 
Posted: 05 May 2009 06:35 AM   [ Ignore ]   [ # 150 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

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

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 05 May 2009 08:33 AM   [ Ignore ]   [ # 151 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  09-18-2008

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

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

Something like that.

 Signature 

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

Profile
 
 
Posted: 05 May 2009 09:36 AM   [ Ignore ]   [ # 152 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  06-30-2006

@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.

Profile
 
 
Posted: 05 May 2009 09:42 AM   [ Ignore ]   [ # 153 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008

hi again,

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

Warningunlink(/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:391in /home/xxx/public_html/backend/extensions/ext.publish_tweeks.php on line 194 

anyone experience the same?

cheers
stefan

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 06 May 2009 05:25 AM   [ Ignore ]   [ # 154 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  06-20-2008

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;

Warningunlink(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,

 Signature 

“Dude,I totally Swayze’d that mother.”
Project 14

Profile
 
 
Posted: 06 May 2009 05:52 AM   [ Ignore ]   [ # 155 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  06-20-2008

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…

 Signature 

“Dude,I totally Swayze’d that mother.”
Project 14

Profile
 
 
Posted: 06 May 2009 07:42 AM   [ Ignore ]   [ # 156 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  04-23-2008
eyevariety - 03 May 2009 10:19 PM

I am getting a similar exif message on pages with existing MH upload info in the converted field.

Warningexif_imagetype(---path---/images/articles/TFNC_logo_webcolors_NR_1.jpg [function.exif-imagetype]failed to open streamNo 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 errorCall 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.

Profile
 
 
Posted: 06 May 2009 10:06 AM   [ Ignore ]   [ # 157 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  04-23-2008

Fred,

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

Profile
 
 
Posted: 06 May 2009 05:16 PM   [ Ignore ]   [ # 158 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

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

 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: 06 May 2009 05:36 PM   [ Ignore ]   [ # 159 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  02-10-2008

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.

Max Lazar - 13 April 2009 08:30 PM

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); 
Profile
 
 
Posted: 06 May 2009 08:02 PM   [ Ignore ]   [ # 160 ]  
Summer Student
Total Posts:  10
Joined  02-03-2008

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.

Profile
 
 
Posted: 06 May 2009 09:01 PM   [ Ignore ]   [ # 161 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  248
Joined  10-10-2007
rockthenroll - 06 May 2009 09:16 PM

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.

 Signature 

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

Profile
 
 
Posted: 06 May 2009 11:36 PM   [ Ignore ]   [ # 162 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  180
Joined  06-28-2007

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

 Signature 

twitter

Profile
 
 
   
9 of 34
9