6 of 34
6
New Extension: nGen File Field for FieldFrame
Posted: 22 April 2009 09:56 AM   [ Ignore ]   [ # 91 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  06-20-2008

I’ve come across a minor problem that I think might be related to this - when I update an entry, instead of the page I got back before installing FF + nGen File Field, I get some cryptic metadata:

a:1:{s:9:“file_name”;s:31:“filename-of-the-one-FF-on-form.jpg”;}20060100Available

“Available” is the last of my fields. Anyone seen this before?

Thanks,

 Signature 

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

Profile
 
 
Posted: 23 April 2009 03:29 AM   [ Ignore ]   [ # 92 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  575
Joined  03-18-2007

Is that just showing on the publish confirmation page? If so, that’s OK. If it’s showing on your template like that it’s a different story…

 Signature 

Follow me on Twitter: twitter.com/mrw

Note: I used to be slapshotw on this forum.

Profile
 
 
Posted: 23 April 2009 06:11 AM   [ Ignore ]   [ # 93 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  06-20-2008

It’s just on the publish confirmation page - in the template is OK. It’s just a bit weird, and i can imagine it coming up when the client takes control, I thought it was broken, so who knows what they’ll think. The publish confirmation page itself is a bit weird (as an EE noob) - can it be customised per weblog?

 Signature 

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

Profile
 
 
Posted: 23 April 2009 09:20 AM   [ Ignore ]   [ # 94 ]  
Summer Student
Avatar
Total Posts:  8
Joined  04-22-2008

Great plugin. Thanks very much.

 Signature 
Profile
 
 
Posted: 23 April 2009 12:12 PM   [ Ignore ]   [ # 95 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  575
Joined  03-18-2007
Phayze - 23 April 2009 10:11 AM

The publish confirmation page itself is a bit weird (as an EE noob) - can it be customised per weblog?

Take a look at nGen’s Publish Tweeks: http://www.ngenworks.com/software/ee/publish-tweeks/

 Signature 

Follow me on Twitter: twitter.com/mrw

Note: I used to be slapshotw on this forum.

Profile
 
 
Posted: 25 April 2009 02:42 AM   [ Ignore ]   [ # 96 ]  
Grad Student
Rank
Total Posts:  95
Joined  09-11-2008

Hello,
I’ve got Fieldframe with FF Matrix and NGen File Field set-up to create a single entry gallery. As a next step i’d like to introduce a JQuery plugin such as This one or similar.  Most/all of these gallery plugins require a separate thumbnail image. Sooo, to make a very long question shorter…

...Is there a way I can get ‘automatic’ thumbnails using my current set-up?  Maybe an additional extension?

Many thanks

Profile
 
 
Posted: 25 April 2009 04:40 AM   [ Ignore ]   [ # 97 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  575
Joined  03-18-2007
Traverse - 25 April 2009 06:42 AM

...Is there a way I can get ‘automatic’ thumbnails using my current set-up?  Maybe an additional extension?

Check out the Image Sizer Plugin.

 Signature 

Follow me on Twitter: twitter.com/mrw

Note: I used to be slapshotw on this forum.

Profile
 
 
Posted: 25 April 2009 05:27 AM   [ Ignore ]   [ # 98 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  342
Joined  06-27-2008
Cem Meric - 03 April 2009 02:37 AM

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)

Hi fred. thanks A LOT for this file field!
I have the same feature request as Cem (choose previously uploaded images), and also the same session thinggy..
after that, I will never post a feature requests again, cause all will be there wink

one love
stefan

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
Posted: 25 April 2009 07:25 AM   [ Ignore ]   [ # 99 ]  
Grad Student
Rank
Total Posts:  95
Joined  09-11-2008
Traverse - 25 April 2009 06:42 AM

...Is there a way I can get ‘automatic’ thumbnails using my current set-up?  Maybe an additional extension?

slapshotw - 25 April 2009 08:40 AM

Check out the Image Sizer Plugin.


Brilliant! Thanks Slapshotw

Profile
 
 
Posted: 25 April 2009 07:43 AM   [ Ignore ]   [ # 100 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

I’m having some trouble with this extension. I’m not using it with FF Matrix but rather as a stand alone extension field type.

Anyhow when I upload an image and hit submit I get the following errors and the control panel fails to load.

Warningunlink(/path/to/upload_directoryy/galleryimages/{) [function.unlink]No such file or directory in D:\xampp server\htdocs\penpride\mr_system\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 249

Notice
Undefined offset1 in \path\to\system\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\system\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php:249in \path\to\system\core\core.functions.php on line 726

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

When I do make it back to the edit screen the file has successfully uploaded but above the control panel I have the following error:

Warninggetimagesize(/path/to/upload_directory/galleryimages/{[function.getimagesize]failed to open streamNo such file or directory in \path\to\system\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 183 

And the image doesn’t display as a thumb instead I see the following (check screenshot)

please advise.

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 26 April 2009 05:23 PM   [ Ignore ]   [ # 101 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  04-23-2008

I am using this outside of FieldFrame as a standalone custom field. I was wondering if there are any problems when I use the same field in an SAEF to upload images? Has anybody ever tried it? If it doesn’t work, I’ll sadly have to resort to the traditional Text Input field for uploading duties.

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

@Phayze The result you see is unfortunately the result of how FF Matrix is stored in the system and the preview page shows what is put in the DB. Slapshot’s recommendation of Publish Tweeks is your best bet.

@Sean C. Smith Please PM me URL + login/password for this installation if possible.

@Dammy Tam Unfortunately current SAEF is not supported. This is a limitation of FieldFrame and not nGen File. I believe that SAEF support is currently being worked on for FieldFrame by it’s author.

 Signature 

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

Profile
 
 
Posted: 27 April 2009 03:55 PM   [ Ignore ]   [ # 103 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  563
Joined  01-23-2006

Fred,

Thanks so much.  This is a great extension.  I wondered if there was anyway to parse out just the file name from the field name.

Meaning the file field name outputs the path as well like /assets/pdf/file_name.pdf.  Is there anyway to just output just the file name without the path?

Thanks again!

Profile
 
 
Posted: 27 April 2009 04:22 PM   [ Ignore ]   [ # 104 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  09-18-2008
fodney - 27 April 2009 07:55 PM

I wondered if there was anyway to parse out just the file name from the field name.

Meaning the file field name outputs the path as well like /assets/pdf/file_name.pdf.  Is there anyway to just output just the file name without the path?

@fodney You would currently have to use some PHP to do that. The basename function does just that. See docs on php.net

 Signature 

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

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

The issue I posted above is now resolved.

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 28 April 2009 09:02 AM   [ Ignore ]   [ # 106 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  248
Joined  10-10-2007

Fred, we have a situation where I have to import large chunk of data using CSVGrab. When entries are manually done we get below data which has its own format to hold data.

a:1:{i:0;a:4:{i:3;s:51:"test name1";i:5;s:8:"test phone1";i:1;s:11:"test email1";i:2;s:0:"";}}
a
:1:{i:0;a:4:{i:3;s:60:"test name2";i:5;s:8:"test phone2";i:1;s:12:"test email2";i:2;s:0:"";}}
a
:1:{i:0;a:4:{i:3;s:61:"test name3";i:5;s:8:"test phone3";i:1;s:5:"test email3";i:2;s:0:"";}} 

Can you please explain how those variables are constructed? e.g. s:8, s:12, s:60 etc. is there a pattern?

 Signature 

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

Profile
 
 
Posted: 28 April 2009 01:33 PM   [ Ignore ]   [ # 107 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  09-18-2008

@Cem This appears to be more of an FF Matrix question and not specific to the File fieldtype. However what you are seeing is a serialized array. You would need to serialize the data prior to inputting it into the DB. Since EE stores the matrix in one field a bit of magic needs to be done in order to reverse the process or directly store a new entry. I’m not very familiar with CSVGrab so not sure how this would work. Feel free to PM me if you’d like and I can try to help more if I can.

 Signature 

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

Profile
 
 
Posted: 28 April 2009 07:40 PM   [ Ignore ]   [ # 108 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  248
Joined  10-10-2007
Fred Boyle - 28 April 2009 05:33 PM

@Cem This appears to be more of an FF Matrix question and not specific to the File fieldtype. However what you are seeing is a serialized array. You would need to serialize the data prior to inputting it into the DB. Since EE stores the matrix in one field a bit of magic needs to be done in order to reverse the process or directly store a new entry. I’m not very familiar with CSVGrab so not sure how this would work. Feel free to PM me if you’d like and I can try to help more if I can.

I’ve just noticed that Fred and thank you for replying. As per your knowledge while creating nGen File Field, do you control some parts of data related to your field or is it purely FF Matrix that controls how data is constructed?

 Signature 

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

Profile
 
 
   
6 of 34
6