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

File

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Ah, yeah- Mark and Levi have become slightly interchangable in my mind I suppose. Both great contributors! Sorry for the mix up. Anyway- I just grabbed the file and cleaned it up a bit if you wanted to take a look. I was also supporting .mov and .wav uplaods and using custom thumbnails for each of them, and getting video resolution sizes with the php getid3 lib. As you can see on lines 1445/1447 you can either not use those file types or change the file paths if you like. I’m sure there’s other things wrong with it, but I made it quickly for a specific project and purpose. Hopefully I’m not breaching any copyrights by Mark (?) Enjoy.

Just wondering if you possibly had the language file for this one too 😉

Wouldn’t mind to get a look at this one if possible.

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

I tried using yours but whenever you update the prefs of it it gives a mysql error. Plus I don’t need the added functionality that you’ve implemented. Thanks though 😊. I think I will just stick with what I’ve got 😉.

       
boswebdev's avatar
boswebdev
52 posts
16 years ago
boswebdev's avatar boswebdev

Heh, yeah I forgot the lang file… as I said, its been a while since I’ve worked on it. Now that you mention preferences, if my memory serves me correctly (which I wouldn’t count on) I don’t think I used the preferences page and I just set the defaults I wanted in the ext file, as we were using phpThumb to do resizing on the front end and the previews.

Anyway, here’s the language file.

If you do come across any errors please post them and I’ll be glad to make this a little more “functioning” as opposed to the “one-time” fixes I implemented.

       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill

boswebdev, I’m trying your doctored extension and am getting an error when trying to output the code.

Notice: Undefined index: thumb in /www/.../public_html/.../extensions/ext.mh_file_gal_ext.php on line 1360

I was also getting the mySQL error cody mentioned when updating the file upload preferences, but when I additionally installed the original File extension, the mySQL error went away.

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
16 years ago
Matt Weinberg's avatar Matt Weinberg

Smartpill– are you on php4 or 5?

       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill

The client is on EngineHosting. PHP Version 5.1.6.

       
boswebdev's avatar
boswebdev
52 posts
16 years ago
boswebdev's avatar boswebdev

Fixed “File Upload Preferences” error while saving. Fixed unserialization error on update. Fixed “thumb” notice if no thumb exists.

And here’s a zip with the lang and ext file. Hope everyone had a happy holiday!

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

thanks boswebdev.

       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill
Fixed “thumb” notice if no thumb exists.

Great! The “thumb” error is indeed gone. :coolsmile: Should we need to have the original “File” extension installed and active also?

Suggestions: If we could have the capability to insert images using the file browser that would be awesome, and a field for photo credits would be welcome, but it is a great improvement as-is.

Thanks again for sharing.

       
boswebdev's avatar
boswebdev
52 posts
16 years ago
boswebdev's avatar boswebdev
Fixed “thumb” notice if no thumb exists.
Great! The “thumb” error is indeed gone. :coolsmile: Should we need to have the original “File” extension installed and active also? Suggestions: If we could have the capability to insert images using the file browser that would be awesome, and a field for photo credits would be welcome, but it is a great improvement as-is. Thanks again for sharing.

The original should not be needed anymore- as I tested these fixed on a fresh installation. Any other problems feel free to post them! If enough people want some sort of ‘credits’ field I suppose I could add one when I have time.

       
ABDC's avatar
ABDC
71 posts
16 years ago
ABDC's avatar ABDC

Hi, back to a question about the original file extention; I’m using 3.11;

is there a way to NOT resize images when the are smapper than Max_width, only if they are larger? Right now it resizes the images to the max_width, even if they are smaller. I need the resize only for larger images.

Any idea? Thanks in advance.

       
optima's avatar
optima
121 posts
16 years ago
optima's avatar optima
…and now a question, rather than an answer! I’ve not seen a response to this in the forums, but apologies if I’ve missed something. If I try to add a large image (over 3mb), the memory times out and I get the ‘white screen of death’ (which someone so aptly described somewhere else). I’ve got the maximum file size set to 2097152 bytes (2mb) in the file upload settings, but the file size doesn’t seem to be getting caught early enough in the proceedings? Any suggestions of getting an error message to show up rather than the system freezing? I tried uploading the file using the first party upload button, and this catches the problem in time. Any help much appreciated!

I am getting the ‘white screen of death’ when an image has an embedded colour profile. Has anyone else had this problem or does anyone know of a fix for this?

EE 1.6.6 File 3.1.1

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
16 years ago
Kevin Smith's avatar Kevin Smith

Everything seems to be working fine except when I change the settings in File Upload Preferences for the File Gallery Settings, the changes won’t take. They just revert back to the defaults immediately. Anyone else having this issue?

I’m using boswebdev’s File Gallery Extension rather than the original File Extension.

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
16 years ago
Kevin Smith's avatar Kevin Smith
Everything seems to be working fine except when I change the settings in File Upload Preferences for the File Gallery Settings, the changes won’t take. They just revert back to the defaults immediately. Anyone else having this issue? I’m using boswebdev’s File Gallery Extension rather than the original File Extension.

Looking at the SQL queries, I know I was right in thinking that EE should be writing File Gallery’s settings to the MySQL DB, but when I take a look at the DB, there isn’t anything in the exp_mh_file_gal table. What’s going on here?

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
16 years ago
Kevin Smith's avatar Kevin Smith

I should note that EE seems to write to the database and save the settings of the original File extension, no problem. Whew… I’m not crazy…

       
First 48 49 50 51 52 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.