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

Make sure you have the latest FieldFrame as well, that might be the problem as well.

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

Nope :-( Brand new install of ExpressionEngine 1.6.7, Fieldframe 0.9.8 and it says 0.9.1 of your extension although I just downloaded the latest version (not sure if that’s just the CP showing me a different number or something as you haven’t updated the number in your extension maybe?) and I’m still getting the same error.

Is there some clever way of me downloading V0.9.5 as when I go through the folders in the GIT repository and view the code for the extension it still says 0.9.1 in there. Am I doing something wrong in GIT or something or is it perhaps not uploaded there yet?

Best wishes,

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Make sure you have the latest FieldFrame as well, that might be the problem as well.

As above I have what I think is the latest version 0.9.8? of Brandons extension and then when I download yours the extension inside it says 0.9.1 which I’m guessing is incorrect?

How do I get my hands on 0.9.5?

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

Nope, I screwed up and forgot to update the version number in the file, you’ve got the latest version.

Could you do something for me really quick please? This requires you to have FireFox though. 😊

1) Go to your Custom Field Settings 2) Select FF Matrix as fieldtype 3) Select MS Img Saver for one of the columns 4) Highlight the 4 lines of text where it has the Image Height and Width labels and input boxes, right-click and select “View Selection Source”.

Copy/Paste what you see popup in here. I would really appreciate it 😊.

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

Sorry, it’s actually six lines of text/inputs that needs to be highlighted and then do “View Selection Source”

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Nope, I screwed up and forgot to update the version number in the file, you’ve got the latest version.

Ah okay, sorry thought I was doing something wrong for a minute there 😉

Could you do something for me really quick please? This requires you to have FireFox though. 😊

No problem at all. You are being exceptionally kind in making this and releasing it for free so anything I can do to help to bug fix this is more than okay.

1) Go to your Custom Field Settings 2) Select FF Matrix as fieldtype 3) Select MS Img Saver for one of the columns 4) Highlight the 4 lines of text where it has the Image Height and Width labels and input boxes, right-click and select “View Selection Source”. Copy/Paste what you see popup in here. I would really appreciate it 😊.

This is what I got, hopefully I’ve done it right?

<td>
<div class="defaultBold">Select where the files should be uploaded.</div>

<select name="ftype[ftype_id_3][cols][3][settings][upload_id]" class="select">
<option value="1" selected="selected">Main Upload Directory</option>
</select>

<div class="default"><em>Goto File Upload Prefs to add more upload options.</em></div>


<div class="defaultBold">Width of Image</div>
<input dir="ltr" style="width: 50px;" name="img_width" id="img_width" value="200" size="4" maxlength="4" class="input" type="text">

<div class="default"><em>Leave blank to constrain proportions.</em></div>


<div class="defaultBold">Height of Image</div>
<input dir="ltr" style="width: 50px;" name="img_height" id="img_height" value="200" size="4" maxlength="4" class="input" type="text">

<div class="default"><em>Leave blank to constrain proportions.</em></div>
</td>

Best wishes,

Mark

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

See for some reason, FF Matrix is not changing the name of these two inputs:

<input dir="ltr" style="width: 50px;" name="img_width" id="img_width" value="200" size="4" maxlength="4" class="input" type="text">
<input dir="ltr" style="width: 50px;" name="img_height" id="img_height" value="200" size="4" maxlength="4" class="input" type="text">

They should look like this:

<input dir="ltr" style="width: 50px;" name="ftype[ftype_id_3][cols][3][settings][upload_id][img_width]" id="img_width" value="200" size="4" maxlength="4" class="input" type="text">
<input dir="ltr" style="width: 50px;" name="ftype[ftype_id_3][cols][3][settings][upload_id][img_height]" id="img_height" value="200" size="4" maxlength="4" class="input" type="text">

Notice the name attribute. That should automagically get changed by FF Matrix and it doesn’t seem to be doing that on your side. Let me do the samething you did and do a fresh install of 1.6.7 along with FF 0.9.8 and my latest version and see how it goes.

No problems, I love releasing stuff that I make 😊. It’s always fun to help out the EE Community!

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

Thanks for looking into it, much appreciated. Not that it should matter but I was using this on a localhost although I doubt that means anything would be different though would it?

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

Okay, I just downloaded EE 1.6.7, FieldFrame 0.9.8 and MS Img Saver (all fresh downloads from EE servers and GitHub for the extensions). I installed EE on my localhost XAMPP, moved the extensions into the correct spot. Enabled extensions, typed in the URL and Path to my fieldtypes folder, saved settings, went back in and enabled FF Matrix and MS Img Saver. Went to my custom field settings, create a new custom field and changed one of the columns to MS Img Saver. I updated the settings and I did not get the error. So I’m afraid I have been unsuccessful at recreating your bug ><.

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

Hmm that’s what I did too however saying that I just downloaded the latest build of ExpressionEngine again just in case mine was any older. I swear that I only just downloaded it a few days back though and it seems to be working now.

Going to try re-installing the other extensions I had on the system that wasn’t working and seeing what happens.

Sorry about all that but exactly what you laid out above was exactly what I was doing so there must be a conflict somewhere with an extension or something. Off to hunt it down now if I can.

Best wishes,

Mark

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

So you’ve got it working now? Ya, if you find it’s another extension doing it, let me know.

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

Quick update I wasn’t quite using the latest build of ExpressionEngine 1.6.7 one must have slipped past my radar although I was only one build behind on 20090211. I can’t see anything in 20090320 though that would do this but maybe I’m missing it somewhere. Just tried installing all the extensions and modules that I had on my other sandbox and they all work fine too so must have been the build I guess?

Best wishes,

Mark

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

Okay I’m obviously really tired today or something silly like that but now when I choose anything to upload either in a standard MS Img Saver field or an MS Img Saver field inside a Matrix field and submit the entry nothing gets uploaded :-( I see a folder in the uploads folder which has a number for its name but nothing inside the folder. Also I used to get those Ajax upload and delete buttons on the field but not seeing them anymore. Am I again missing something obvious?

Sorry for being such a major PITA on this one :-(

Best wishes,

Mark

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

I’m not sure if it is the EE build because I have it working on 1.6.6 Build: 20081114 😊. Maybe it was just some weird crazy thing happening with the javascript for FF Matrix…I dunno.

I’ve just tried this on a Windows version of XAMPP and it’s not uploading the files at all, must have something to do with permissions on a windows server or something…I really don’t know. Never used windows for a webserver heh. It should work on a proper webserver 😊.

Please test the crap out of it and let me know what you come up with :D.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
I’m not sure if it is the EE build because I have it working on 1.6.6 Build: 20081114 😊. Maybe it was just some weird crazy thing happening with the javascript for FF Matrix…I dunno. I’ve just tried this on a Windows version of XAMPP and it’s not uploading the files at all, must have something to do with permissions on a windows server or something…I really don’t know. Never used windows for a webserver heh. It *should* work on a proper webserver 😊. Please test the crap out of it and let me know what you come up with :D.

Okay will try this on a real server as soon as I can. Was testing out on MAMP OSX although it used to show the upload / delete images for the AJAX part. Not too sure why it isn’t now though.

As soon as I can get to testing on a real server I will let you know all that I find out on it.

Thanks again for this, it looks set to be a killer field this one. Was just thinking perhaps the name needs to change though as maybe it should be more generic in nature so that people know they can use it for uploading more than just images?

Just a thought though.

Best wishes,

Mark

       
1 2 3 4

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.