Support Forum

Upload images from Forum Post

1 2 >
deadhippo
Yokohama
Member
Free Members
Jan 7, 2009 - 2:28 pm

I think it would be really convenient to be able to upload images directly in the posts and to add a bit of safety we should be able to set permissions for which group can do it.

Yellow Swordfish
Glinton, England
Member
Jan 7, 2009 - 3:33 pm

You can do both now. You have total control over which user groups can upload images (through their associated permission set) and as long as you use the TinyMCE editor the browse and upload button will be available on the images dialog.

deadhippo
Yokohama
Member
Free Members
Jan 7, 2009 - 3:45 pm

I think I have TinyMCE editor selected but I can't see where to browse and upload images...sorry.

http://blog.ruderetro.com/foru.....iscussion/

Yellow Swordfish
Glinton, England
Member
Jan 7, 2009 - 3:51 pm

Firstly ensure that the permission set assigned to you have the upload images checked on.
Next go to Admin 'Component' 'extensions' tab and supply a folder name where images will be uploaded to. This has to exist and must have the necessary folder permissions for users to upload to.
In the editor click on the 'images' toolbar button and then click on the browse icon

Radio
Florida - USA
Member
Free Members
Jan 7, 2009 - 3:57 pm

please be advised, as a matter of security for WPMU sites, this feature is Disabled.

deadhippo
Yokohama
Member
Free Members
Jan 7, 2009 - 6:33 pm

Thanks. It is almost working. When I clicked on the browse though, I got the following error.

Warning: opendir(/mnt/local/problem-with-post-edit-buttonome/deadhippo/blog.ruderetro.com/wp-content/forum-images) [function.opendir]: failed to open dir: No such file or directory in /mnt/local/problem-with-post-edit-buttonome/deadhippo/blog.ruderetro.com/wp-content/plugins/simple-forum/forum/uploader/sf-uploader.php on line 73

Warning: readdir(): supplied argument is not a valid Directory resource in /mnt/local/problem-with-post-edit-buttonome/deadhippo/blog.ruderetro.com/wp-content/plugins/simple-forum/forum/uploader/sf-uploader.php on line 74

I guess that my folder permission wasn't set right. It was set at 755 but I changed it to 777 and I got the above error. Do you have any idea what is wrong. I checked the FAQ and it says you have to have the GD Library installed. If this is the problem, is there a simple way to check if it is installed?

Mr Papa
Simi Valley, CA
Member
Free Members
Jan 7, 2009 - 8:20 pm

are you sure in the components page, in the image uploads directory input, you only entered forum-images?  all in lowercase? 

It says it can't find the directory and thats not a GD issue as php is used to check for the existence of the directory.

the only thing that is a bit different here is that you are installed on a subdomain.  I wouldnt think that matters but not sure I can easily test that on my localhost.  Radio, any issue on mu subdomain for you with image uploads?

deadhippo
Yokohama
Member
Free Members
Jan 7, 2009 - 9:22 pm

Thanks for the reply and the help. I deleted the folder and recreated when my site went down. It just came back up and the new folder is working. I don't know what happened. Is it possible that the folder was corrupt? I have had this problem with files before but as far as I know, not with a folder.

Anyway, it's working and it's great. Thanks guys.

Yellow Swordfish
Glinton, England
Member
Jan 8, 2009 - 4:21 am

Glad to hear. Once it's working it should at least stay working! It was more likely a permissions thing. It's not just the numbers but also folder ownership. I get the odd one I have to deal with as well.

Radio
Florida - USA
Member
Free Members
Jan 8, 2009 - 4:52 am

Mr Papa said:

are you sure in the components page, in the image uploads directory input, you only entered forum-images?  all in lowercase? 

It says it can't find the directory and thats not a GD issue as php is used to check for the existence of the directory.

the only thing that is a bit different here is that you are installed on a subdomain.  I wouldnt think that matters but not sure I can easily test that on my localhost.  Radio, any issue on mu subdomain for you with image uploads?


on MU, image upload is disabled in the backend, there is no place to enter the name of the upload folder.

If there were, chances are that SPF would have to enter it or create it automaticly as users with blogs would not have the ability to go into the file directory and create it.

Mu 2.6.5 (Latest) also handles general uploads differently, each blog is given their own blog upload space in wp-content/blogs.dir/(sitenumber)/files however calls to those files in blog posts are sub.domain,com/files.

as it is, for security reasons, having forum image uploads turned off is the best policy.

1 2 >