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

MS Img Saver FieldType for FieldFrame

Development and Programming

MeanStudios's avatar
MeanStudios
335 posts
16 years ago
MeanStudios's avatar MeanStudios

Greetings,

MS Img Saver is a FieldType for Brandon Kelly’s FieldFrame.

The FieldType is now at Version 1.0.1.

Download Here

Features

  1. Easily upload images for your entries.
  2. Sizes are pre-configured and images are automatically resized/cropped to fit to your specifications.
  3. Compatible with Brandon Kelly’s FF Matrix FieldType.
  4. Taps into your File Upload Settings and gives you a choice of all the different locations you have already setup.
  5. Automatically deletes images if they are deleted from the entry (See Known Issues for an exception) or if an entry is deleted from the channel (weblog). Images will also be deleted if the field is updated to a new image.

Setup

  1. Download the extension and place the ff_ms_img_saver folder under fieldtypes inside your extensions folder.
  2. Update your jQuery for the Control Panel versions to:
    • jQuery URL: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
    • jQuery UI URL: http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js
  3. Enable the FieldType in the FieldFrame Extension Settings
  4. Use it in a template just like you would any other custom field. It will spit out the full URL to the images you have uploaded (i.e. ).
  5. Enjoy 😊

Known Issues

  1. When using it in FF Matrix, the images will not be deleted from the server when editing an entry and using the “Delete Row” option. There doesn’t seem to be anyway around it.
  2. Only compatible with jQuery 1.3+ due to live() not working with jQuery 1.2.6.

Let me know if you have any questions.

       
Max Lazar's avatar
Max Lazar
337 posts
16 years ago
Max Lazar's avatar Max Lazar

When I try to save a field with MS Img Saver in Matrix:

Error Number: 1054 Description: Unknown column ‘img_width’ in ‘field list’

add. It was a problem with my system - i fix it.

       
MeanStudios's avatar
MeanStudios
335 posts
16 years ago
MeanStudios's avatar MeanStudios

What was the problem on your computer that made it happen? I want to see if I can prevent it from happening in the Extension.

       
Max Lazar's avatar
Max Lazar
337 posts
16 years ago
Max Lazar's avatar Max Lazar

I think it was a FireBug problem (it block JS) – after restart FireBug the issue was decide. Thanks for greate field.

       
MeanStudios's avatar
MeanStudios
335 posts
16 years ago
MeanStudios's avatar MeanStudios

Oh good 😊, ya, definitely need JS for this to work 😉.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hiya Cody,

As you know I’ve already been using this since you first put it online in your GIT repository and I think it’s superb. Will try out this new version now. Was really waiting to see the integration with the FF Matrix as that will really really rock!!

Thanks again for releasing this to the community like this, I reckon you are going to get a lot of follows due to this one.

Best wishes,

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hmm I’m getting that same error too. I definitely have Javascript enabled so is there something else I need to check?

Best wishes,

Mark

       
Max Lazar's avatar
Max Lazar
337 posts
16 years ago
Max Lazar's avatar Max Lazar

Before restarting FireBug I was trying Clear Cached Data, enable/disable FF (included full setting delete direct from mysql).

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Actually just wondering what exactly the error means?

Description: Unknown column ‘img_width’ in ‘field list’

as I couldn’t find a column img_width anywhere in any of the database tables in my install?

Best wishes,

Mark

       
MeanStudios's avatar
MeanStudios
335 posts
16 years ago
MeanStudios's avatar MeanStudios

Where exactly are you getting that error? In the custom field settings? Or is that when you are using it to publish an entry?

       
MeanStudios's avatar
MeanStudios
335 posts
16 years ago
MeanStudios's avatar MeanStudios

Okay, I’ve made a couple minor updates and fancied up my code a bit. Newest version is 0.9.5, please try that one and let me know if you have any problems.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Where exactly are you getting that error? In the custom field settings? Or is that when you are using it to publish an entry?

The error was showing when editing a Matrix field and adding your extension to the matrix then updating the matrix field. Just tried the latest version of your extension and it’s still doing it, sorry!! :-(

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

The whole error is shown below, seems to be looking for a column in the exp_weblog_fields table which definitely doesn’t exist :-(

MySQL ERROR: Error Number: 1054 Description: Unknown column ‘img_width’ in ‘field list’ Query: UPDATE `exp_weblog_fields` SET `field_id` = ‘6’, `site_id` = ‘1’, `field_name` = ‘matrix’, `field_label` = ‘The Matrix’, `field_instructions` = ”, `field_type` = ‘ftype_id_3’, `field_pre_populate` = ‘n’, `field_related_to` = ‘blog’, `field_maxl` = ‘128’, `field_ta_rows` = ‘6’, `field_list_items` = ”, `field_related_orderby` = ‘title’, `field_related_sort` = ‘desc’, `field_related_max` = ‘0’, `img_width` = ‘200’, `img_height` = ‘200’, `field_fmt` = ‘xhtml’, `field_show_fmt` = ‘y’, `field_text_direction` = ‘ltr’, `field_required` = ‘n’, `field_search` = ‘n’, `field_is_hidden` = ‘n’, `field_order` = ‘5’, `ff_settings` = ‘a:1:{s:4:\"cols\";a:3:{i:1;a:4:{s:4:\"name\";s:6:\"cell_1\";s:5:\"label\";s:6:\"Cell 1\";s:4:\"type\";s:14:\"ff_matrix_text\";s:8:\"settings\";a:1:{s:4:\"maxl\";s:3:\"128\";}}i:2;a:3:{s:4:\"name\";s:6:\"cell_2\";s:5:\"label\";s:6:\"Cell 2\";s:4:\"type\";s:14:\"ff_matrix_date\";}i:3;a:4:{s:4:\"name\";s:6:\"cell_3\";s:5:\"label\";s:6:\"Cell 3\";s:4:\"type\";s:15:\"ff_ms_img_saver\";s:8:\"settings\";a:1:{s:9:\"upload_id\";s:1:\"1\";}}}}’, `field_related_id` = ‘1’ WHERE field_id=6 AND group_id=1

Best wishes,

Mark

       
MeanStudios's avatar
MeanStudios
335 posts
16 years ago
MeanStudios's avatar MeanStudios

That doesn’t make any sense ><. I’m not able to recreate this at all… I’ve totally deleted my extension, removed all residual settings for it in the database. Downloaded the version from GitHub, reinstalled it, enabled it, added it to a pre-existing FF Matrix Custom Field and it updates the settings just fine… That “img_width” column shouldn’t be in the field list, it should be in that serialized data under “ff_settings” right next to where it says “upload_id” towards the very end.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Okay I’m going to try on a new install of 1.6.7 see if that does anything different. Might be another extension conflict or something.

       
1 2 3 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.