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

jonasdowney's avatar
jonasdowney
3 posts
16 years ago
jonasdowney's avatar jonasdowney

I am experiencing the same thumbnail issue as costadesigns. It looks like the thumbnail files aren’t getting generated, in the Tinybrowser interface they are broken links. I tried switching GD2 to GD or ImageMagick in the EE prefs but it had no effect. I have a _thumbnails folder, but no files.

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

2jonasdowney at this moment I’m working on new version with a lot of changes and bugfixing. I planed to release it in Friday. If new versions not decide your issue, i will look on your setting closely.

       
Mark Croxton's avatar
Mark Croxton
319 posts
16 years ago
Mark Croxton's avatar Mark Croxton

Regarding image thumbnails not appearing:

One reason this can happen is because the _is_image() function in ft.mx_tinybrowser_field.php will not return true unless the image file url is absolute - if you are using root-relative image urls to your upload folders then it will always return false. I rewrote the function as follows:

Around line 659:

function _is_image($file) {
        
        global $PREFS;
        
        $is_image = false;
        $file = trim($file);
        $site_url = $PREFS->core_ini['site_url'];
    
        // check that the file is an absolute uri containing site_url
        if (!strpos($file, $site_url)) {
            // prefix with site url, trim traling slash if it exits
            $file = rtrim($site_url,'/').$file;
        }
        // check if file is an image
        if  (exif_imagetype($file) ) {
            $is_image = true;
        }
        return $is_image;
    }

Another issue is that the function selectURL() in tinybrowser.js.php prepends http:// to the front of any image path. Replace the functiion with this:

EDIT: some of the code I pasted into

was getting removed. I attach the file below.

Now you should be able to use root relative urls for file upload folders.

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

When I try using the Markitup version and click the imagemanager button, if I browse the images and then cancel without selecting anything, the word “undefined” repeats indefinitely and I have to close the entry. Also, the order of the items when browsing through the folders is not alphabetical (or numerical order) so its difficult to locate anything.

I’m not sure if that’s been resolved in your current version, looking forward to the next release.

       
Mark N's avatar
Mark N
10 posts
16 years ago
Mark N's avatar Mark N

I know this has been addressed before, but it looked like there were no solutions for it. I’m getting a message “No Upload Privilegies” when clicking on the small icon to bring up the file manager window. The upload folder has worked before with nGen fieldtype. I have the following settings:

TinyBrowser Stand Alone Permitted file ext: Images Upload Root Folders: Blank Upload Sub Folders: Blank Thumb Quality: 80 Image Quality: 80 Thumbnail size in pixels: 80 Image Width: Blank Image Height: Blank TinyMCE config file: tiny.js

Hope you can help me with this. This would make my client happy with ease of use of this.

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric

@Mark N

This happens to me when session change due to timeout. Quick logout/login fixes the issue.

       
Mark N's avatar
Mark N
10 posts
16 years ago
Mark N's avatar Mark N

With further testing, hoping it wasn’t a Firefox add-on, I’ve tried it on a Firefox 2.0 (Windows, no add ons), Firefox 3.0(Windows, no add ons), Firefox 3.5 (Mac), Safari 3 (Mac) and for fun my iPhone. They would all get the “No Upload Privlegies” error. Though, it did work on IE 6 and IE 8.

I tried the log in and out and still get the same results :(.

       
Mark N's avatar
Mark N
10 posts
16 years ago
Mark N's avatar Mark N

Ok I’m not understanding this error. I’ve had others login and they had success with Safari and Firefox. Very weird.

       
jtnick's avatar
jtnick
29 posts
16 years ago
jtnick's avatar jtnick

Great extension Max!

I’ve read through the posts, but didn’t seem to find an answer to my circumstance.

I would like all files and media to use relative paths. For instance, I have all of my files saving to a Media Library folder at “/media/{file_name}”. I would like links to all files to start with this, as oppose to my full site path.

I’ve adjusted my tiny_mce config, but it doesn’t look to be pulling. I also found the “article.js” file within the mx_tinybrowser fieldtype folder, and added the following parameters:

relative_urls : true, document_base_url “”,

This is also not solving the issue. Is it possible to use relative paths with this fieldtype?

       
jtnick's avatar
jtnick
29 posts
16 years ago
jtnick's avatar jtnick

I think I solved my own issue. I just needed to update my file upload preferences and the change was the path. Hopefully this doesn’t cause any issues elsewhere.

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

The MX Tinybrowser is discontinued. New version - MX Universal Editor

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
16 years ago
Brett DeWoody's avatar Brett DeWoody

Hi,

I would like to constrain the width of thumbnail, but not height. So what all thumbnails would have the same width, but the height would remain proportional to the image.

In the settings you set a single value for the thumbnail size, which TinyMCE sets height or width (whichever is larger) to that value.

Is it possible to just limit the thumbnail width?

Thanks in advance,

-Brett

       
Kevin Evans's avatar
Kevin Evans
222 posts
16 years ago
Kevin Evans's avatar Kevin Evans

I think you do that with the Imgsizer plugin

       
the_crimsonrooster's avatar
the_crimsonrooster
264 posts
16 years ago
the_crimsonrooster's avatar the_crimsonrooster

I having problems with getting this plugin to work. if I just select the tinybrowser standalone that comes up, BUT when I click the add more button - nothing happens.

When I select the other 2 options - tinymce + tinybrowser or markitup + tinybrowser, NOTHING shows up in the field.

attached is my setting file.

thx in advance.

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

Try to update upto MX Universal Editor 1.0.0

       
First 9 10 11 12

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.