Various people have worked to extend the wysiwyg editor Tinymce for Elgg. First Lee Teague made Tinymce_adv adding many features to the default Tinymce text editor. Then Joey One Time fixed some bugs with embedding media displaying in IE. The only thing left on my wishlist was a file browser/uploader allowing users to upload files to embed in their content through the text editor. I have been experimenting with Bryn Jones’s Flash based TinyBrowser, and I finally got it to work.
Once installed, when you click on an the icon in Tinymce to add an image or media to a post, a new icon appears:
Click on that icon, and you are presented with a gallery.
Selecting the upload tab allows you to browse your computer for a file to upload. It allows you to upload multiple files at the same time.
One the files have been uploaded, click the browse tab and select the image you wish to insert:
Click “Insert” and it is inserted into your text.
It installs the usual way. Upload it to the mod folder and activate within the admin interface. Note, this will overwrite any other mod/tinymce that you have installed.
TinyBrowser is a very slick file browser/uploader. My only misgiving is that I haven’t been able to figure out how to make it interact with the core file management in Elgg. Perhaps someone can take this further by configuring it to do so. Meanwhile, while not ideal, it works great!
Again, I have not tested this in Windows with IE. It build upon the works of others. Please leave feedback. I’ll try to help as I am able.
Download here.
Related Posts
-
Hi Steve,
It works fine in IE7 – tested a number of times – good work. -
This is great, just what we need. I have downloaded and installed the plugin. However when I click on the icon to add an image, I get the following error.
Unable to create the ‘/useruploads/images/’ directory – please check your permissions.
Please could you let me know in which directory the software tries to create the directory so I can change the file permissions accordingly.
Many thanks
-
Hiho, i downloaded the Plugin 5min ago. Deleted the old Tinymce and uploaded yours. But nothing happend. Tinymce works fine, but i cant see the tinybrowser. Any hints?
Thanks
) -
Hello,
I was just passing… I’m using TinyBrowser with TinyMCE with Expression Engine. I got the same message as Sue and Emily above, I edited config_tinybrowser.php around line 48 to be the correct paths to the upload directories I had already created. Make sure the permissions are set correctly and all seems fine now.Thanks
-
I resolved the problem with the message “Unable to create the ‘/useruploads/images/’ directory – please check your permissions.” by manually creating the directory on the server logged on as root and giving full rights to the directories recursively. Not ideal but it works.
-
Everything fine.
But TinyBrowser uses only one directory for pictures for different users.
-
Is it possible to test it?
-
I don’t know where to find it. Trunk directory without blog mod.
-
I made it but no any result
I see only old version of the edit form of the blog. -
There’s an update on tinybrowser can you update the plugin?
http://groups.google.com/group/tinybrowser/browse_thread/thread/2c4eaa958468d22b# -
@pete I was waiting for it to get out of beta, and I wasn’t sure anyone would be interested as it functions in a way inconsistent with Elgg’s ways of doing things.
I’m really up to my neck at the moment, but I will try to get something up in a week or so. No promises. I have a major presentation with a companion website that has to be done in about a week.
@4free Have you tried the fixes above? Have you checked to see if the files are in the directory in which they should be uploaded?
-
is there any way that we can stop TinyMCE from stripping out in-line styles? I have been all over the Internet and I can not seem to find a way to do it. I think it might have something to do with Tidy-html; I can not find a reference to it in the mod/TinyMCE folder. If you could point me in the correct direction I would greatly appreciate it.
-
Hi – Just downloaded your tinybrowser in Elgg 1.5 activated it and all works OK untill I try to download a file.
The message The ‘/useruploads/images/’ directory has been successfully created appears – but when I try to download another popup with the massage ‘Status 406 error when uploading’ appears
Any help to solve this is appreciated
I am using Vista and elgg v1.5
Thanks for your help
-
DO we have a latest version of the plugin working in elgg 1.6.1
-
You know, this is an old post, but given that I found it today when I ran into the “Unable to create the ‘/images/’ directory – please check your permissions.” issue mentioned by several people in the post, I thought I would give the fix.
On some servers, the path to that images directory may not be the same path that the script is running from, which turned out to be the cause of our particular problem, and the answer is to find it out and update the config file.
First things first. Browse to where you installed the program and find the “cache” directory. Open it up and create the folder “images” and set the permissions to 777
Open up the new images folder and create a folder called “_thumbs” and also set the permissions to 777.
Now open up a plain text editor like notepad and put in this text:
<?php
echo $_SERVER['DOCUMENT_ROOT']."”;
echo $_SERVER['SCRIPT_FILENAME'];Save it with a simple name like “get_path.php” and upload it to the “images” folder.
Open up the file in your browser. For the example’s sake, we’ll say that it’s in the “news” folder, so the URL would be like this:
http://www.somesite.com/news/cache/images/get_path.php
The FIRST line you see is the absolute path to the document root.
The SECOND line is the exact location of the file you are currently running.In our case, those two lines weren’t the same, and that was what caused the problem.
I saw something like this:
/home/somesite/public_html
/home/anothersite/news/cache/images/get_path.phpIn a plain text editor like notepad, open the file “config_tinybrowser.php”. It’s located in /template/jscript/tiny_mce/plugins/tinybrowser/
on line 45 or so you will see
$tinybrowser['docroot'] = rtrim($_SERVER['DOCUMENT_ROOT'],’/');
comment out this line by putting two slashes in front:
//$tinybrowser['docroot'] = rtrim($_SERVER['DOCUMENT_ROOT'],’/');
and then, just below it put the corrected line. For our example, it will be
$tinybrowser['docroot'] = ‘/home/anothersite’;
Remember, you have to update that to the information for your server, just the part up to the actual folder the application is in, without a trailing slash.
Save the file and upload it.
Log into the application from your browser and go to settings
In the section “Script URL”, put the path to your application, skipping the section you put in the config file and stopping at the “cache” folder. In our example, that would be the folder “/news/” You’ll have to adjust it for your server.
Save, and try uploading again.
-
Hi there,
does anybody have a solution when the error:
r is undefined
(line 1)tiny_mce.js is received when clicking on the files iconIE9 is more precise:
SCRIPT5007: Unable to get value of the property ‘apply’: object is null or undefined
tiny_mce.js, line 1 character 143324where it says:
return r.apply(q||p,Array.prototype.slice.call(arguments,1))
Any feedback would be very much appreciated we are now delayed in project delivery, what we thought is a piece of cake, turned out to be a major obstacle.
-
Thanks for this –
I wanted to try the TinyBrowser to see if it suits my need but the author doesn’t have a trial version available and your download contains it
Just copy out the tinybrowser subfolder from the plugins directory and follow the included readme.txt for help how to get it working , very easy.
I’m trialling it for a small website I’m working on and so far it works very well and obviously will purchase the proper version if and when I put it into production.
Comments are now closed.






39 comments