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

New Extension: MX Tinybrowser (universal field for creating TinyMCE or/and MarkItUp textareas with TinyBrowser&LinkManager;support)

Development and Programming

Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Hi Max, hopefully you can point me in the right direction with this issue…

I’m trying to upload a file called “SET 128.jpg”, I’ve got “Clean filenames on upload” set to “Yes” (also tried with “no”), the file uploads but doesn’t appear. Checking with FTP, the file has been renamed “SET 128.jpg_” (because it’s not a valid extension would explain why it’s not appearing in the browse window).

To add some more complications, I’m testing out the resize ability, and the file mentioned above is 7.7Mb and 3720x2480. I’ve got the settings for your extension set to resize on upload to 1024x768, but this doesn’t seem to happen.

Does the resize maintain the aspect ratio?

Many thanks,

Peter

       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar
To add some more complications, I’m testing out the resize ability, and the file mentioned above is 7.7Mb and 3720x2480. I’ve got the settings for your extension set to resize on upload to 1024x768, but this doesn’t seem to happen. Does the resize maintain the aspect ratio? Many thanks, Peter

Hello Peter, Could you please send me your settings screenshot? Did you entered size into the Global Field setting or Custome Field settings?

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Max,

It was set in the Global field settings, but attached are grabs of both.

After clicking upload, the percentage bar increases for about 3 seconds and shows 100%, then nothing happens, if I either click on the browse tab or close the lightbox window, the browser hangs for a minute as it uploads the image (no browser activity indication). I’m assuming that’s Tiny Browser functionality and not your extension…?

Using Firefox 3.

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

yes, resize is TinyBrowser functionality. Did you try to upload a files with size < 2MB? I think, that can be issue with time limits. Try to increase it in config_tinybrowser.php

set_time_limit(240);

You needs also check upload_max_filesize and memory_limit in phpinfo. I know that for working with files >6Mb needs more that 64Mb of memory.

p.s. and speaking about SET 128.jpg_ problem - “SET 128.jpg_” is tmp file. So it means that the code was terminated before complete. So it look like a time/memory limits too.

       
JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson

Hmmm.. just ran into a problem. a rather embarassing one 😊

I tested this all and it worked fine. then, over the course of a week I upgraded FF to 3.5. Didn’t think about it.

Gave a webinar to all my authors, contributors and admins of a big site. During the meeting I shared my desktop. When I click the ‘image’ button tinybrowser comes up no problem. BUT, if I’m in the browse tab, I click a pic to insert it, and well….it doesn’t. it just sits there. I get no errors in logs, or in status bar to research.

I contacted my business partner to test, same result.

I looked through this thread and didn’t see anything. but i could have missed it. I did update to the latest version you linked to

thoughts?

P.S. i don’t have all text installed, and this works fine in IE. it’s only FF, and ONLY 3.5 that i hav ethe problem with.

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Memory is set to 128Mb, I’ve upped the set_time_limit(240); setting to set_time_limit(500); but doesn’t make a difference.

Did some more testing: after it reached 100% (after 3 seconds), I left it (didn’t close the popup or select another tab) and came back after a few minutes. This time it showed the green message at the top saying successful and took it off the upload list.

Then I tried again, this time closing the popup once it showed 100% (but before the green message and before it was removed from the list) - the browser then hangs for 30 seconds and then when back, the temporary file is uploaded but not renamed and not resized.

So the issue is the Flash uploader built into TinyBrowser. If it just showed a continuing “working” animation instead of the 100% then it would be fine.

Any ideas?

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

@JT Thompson

I’m using Firefox v3.5.2 and can select an image from the browse tab and it immediately adds the image into the edit/publish screen.

Although when I save, I get a blank screen, but I think that may be to do with the fact I did have ngen file field associated with this field previously…?!?!

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

Actuale the last version have a couple bug with blank screen - I working on new version at this moment with a lot of bug fixing. I planning to post today at ~ 21:00(GMT).

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric
When I click the ‘image’ button tinybrowser comes up no problem. BUT, if I’m in the browse tab, I click a pic to insert it, and well….it doesn’t. it just sits there. I get no errors in logs, or in status bar to research.

JT, try moving your custom field within FF Matrix. I am not sure how it’s related but it solved my problem.

First sample doesn’t work but if I move the field to the last it works.

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

Cem Meric It was a bug of MX TinyBrowser :( Is related, because in version what you have all MX TinyBrowser field setting in one Matrix field have the the same settings. So, when you moving field it like this – the last setting is TinyBrowser Standalone. It is the reason why is work.

In new version I fixed it.

       
charmedworks's avatar
charmedworks
62 posts
16 years ago
charmedworks's avatar charmedworks

Hello, we are using TinyMCE with TinyBrowser for entrys and everything works wonderfully. Client loves the TinyBrowser for image uploads.

My Question:

We are using the Photo Gallery Module, and I’m wondering if anyone has integrated the TinyBrowser with the New Entry in the Photo Gallery? Is this possible?

(The one at a time add that exists when the Photo Gallery Module is installed is tedious for the client who is used to TinyBrowser while entry editing.)

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

v. 0.1.4

If you will find some bug’s - feel free to send me a note and I will fix it ASAP

changelog

• bugfix: editor disappear after Quick Save • bugfix: matrix with a couple MX tinybrowser columns • bugfix: upload bank screen(QuickBar issue) • bugfix: upload URL in TinyMCE field • add - additional XSS/XSRF protection for TinyBrowser • add - new Global parameters - FileSize • add - new tag; field_name:isempty

2charmedworks yes, is possible. But only with additional extension. EE have the hooks for this, so it’s a question of 50-100 lines of codes.

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Hi Max,

The latest version has solved the blank screen issue after image selection - nice one, thank you.

By default there’s a script tag that’s added to the header for tinymce.js - I’m using the standalone and so this isn’t required, it also corrupts my LG TinyMCE extension as it’s added a path to tiny_mce that doesn’t exist. By default would it not be better to ignore this setting if the path to tiny_mce is not set within your extension?

The version of the zip and inside the extension is 1.4 not 1.3.4 (your post above).

There’s a spelling mistake in the settings page “Imag Quality”

Still have the issue with the progress bar not actually reflecting the progress of the upload, it would be far better to replace with a repeating animation to show it’s working. Any ideas where to do this?

EDIT: Also the image quality only allows for 2 digits, can you not set it to 100?

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

Thanks Twobelowzero,

About script in header - if you don’t use TinyMCE functionality, try to cleanup the Global script field in global field setting. By specific of hooks in EE publish/edit page, is not really simple to check will be page use TinyMCE or not. So, extension will need to do additional couple MySQL request for checking.

And I don’t ready to answer about issue with the progress bar. It’s a flash part and I’m not a specialist in this area and the Flex source code is not public. Did you try asks this question in official group?

All other mistake I will fix ASAP.

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Hi Max,

Script in header: What I mean is that in your settings you have a path for Tiny MCE (“URL to your TinyMCE folder”), which by default is blank. But you have the “Global script” field with the code to add to the HEAD of the html. Therefore by default it will break, even though (in this case) your extension isn’t using TinyMCE.

By adding to your extension a check to see if (under your settings) the “URL to your TinyMCE folder” is blank, then don’t add the Global script html, would solve the problem. It would surely be logical if a user doesn’t enter the URL, then they don’t want TinyMCE…?

I’m not saying you should check to see if it already exists via another plugin or the template.

Just a thought.

Google Group for TinyBrowser - will do, but thought I’d just ask first.

Thanks,

Peter

       
First 6 7 8 9 10 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.