Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Upload images from Forum Post
Avatar
deadhippo
Yokohama
Member
Free Members
sp_UserOfflineSmall Offline
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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
deadhippo
Yokohama
Member
Free Members
sp_UserOfflineSmall Offline
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/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Radio
Florida - USA
Member
Free Members
sp_UserOfflineSmall Offline
Jan 7, 2009 - 3:57 pm

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

It took a Particle Physicist to re-invent the Green Revolution
A new idea in Catiptalistic Ecology
Save the Planet – Earn some Green
http://PlanetGreenCentral.com/

Avatar
deadhippo
Yokohama
Member
Free Members
sp_UserOfflineSmall Offline
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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
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?

Avatar
deadhippo
Yokohama
Member
Free Members
sp_UserOfflineSmall Offline
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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Radio
Florida - USA
Member
Free Members
sp_UserOfflineSmall Offline
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.

It took a Particle Physicist to re-invent the Green Revolution
A new idea in Catiptalistic Ecology
Save the Planet – Earn some Green
http://PlanetGreenCentral.com/

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626