Osclass Support Forums

Osclass plugin support => Blog and News Plugin => Topic started by: reflexus on March 15, 2018, 03:29:35 PM

Title: Image Upload
Post by: reflexus on March 15, 2018, 03:29:35 PM
Hello, wonderful plugin!

I have one suggestion, can you add image upload function for text editor?

If yes, I will immediately buy this plugin
Title: Re: Image Upload
Post by: MB Themes on March 15, 2018, 09:01:15 PM
@reflexus
Do you mean put image into editor and automatically upload it?
Title: Re: Image Upload
Post by: reflexus on March 15, 2018, 09:24:11 PM
as far as I know, the plugin uses the tinymce editor. If you see my screenshot: http://joxi.ru/K8238uJZeJKAOG and tinymce home page: https://www.tinymce.com/
in the editor there is a function for upload and inserting an image into the text area. it would be nice to add this function to the plugin.
Title: Re: Image Upload
Post by: MB Themes on March 15, 2018, 10:03:16 PM
@reflexus
Theoretically it should be possible, must check that.
Title: Re: Image Upload
Post by: MB Themes on March 16, 2018, 09:12:19 AM
@reflexus
I was testing it and it's not functional, tinymce tries to save image as base64 instead of saving it on server... their documentation or code provided is probably incomplete, there is also no solution on any forums.
Title: Re: Image Upload
Post by: reflexus on March 17, 2018, 04:16:21 PM
@reflexus
I was testing it and it's not functional, tinymce tries to save image as base64 instead of saving it on server... their documentation or code provided is probably incomplete, there is also no solution on any forums.

Ok, thanks, but I already built this function myself.
Title: Re: Image Upload
Post by: MB Themes on March 17, 2018, 08:40:45 PM
@reflexus
You can share code, my attempts has failed :/
Title: Re: Image Upload
Post by: reflexus on March 17, 2018, 11:40:33 PM
@reflexus
You can share code, my attempts has failed :/

you need to look at this plugin for tinymce: http://test.albertoperipolli.com/filemanager4tinymce/
Title: Re: Image Upload
Post by: MB Themes on March 18, 2018, 09:30:08 PM
@reflexus
Thanks, will take a look on it once I get some time.
Title: Re: Image Upload
Post by: Cambodia TVC on June 30, 2018, 05:53:57 PM
This is useful for blog plugin
Can you share your work @reflexus
And mb theme please update it . It so hard to store image out of our server
Title: Re: Image Upload
Post by: Jack on November 15, 2021, 04:10:28 PM
After so many errors 400 on my site https://www.annuncitoday.it/

The solution was quite simple, it did not load .jpeg images

In tinyMceImageUploader.php   oc-content\plugins\blog

LINE 39:
    // Verify extension
    if (!in_array(strtolower(pathinfo($temp['name'], PATHINFO_EXTENSION)), array("gif", "jpg", "png", "jpeg"))) {
        header("HTTP/1.1 400 Invalid extension.");
        return;
    }

I added , "jpeg"  ;)


I hope it can be useful to someone
Title: Re: Image Upload
Post by: MB Themes on November 15, 2021, 07:29:01 PM
@Jack
Thanks for feedback, we will udpate plugin ;)