users want to upload images and use it in the forum

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/14/2009 1:34:56 AM
Nux
Gravatar
Total Posts 183

users want to upload images and use it in the forum

Hey Joe,

I have a site running a forum and I get more and more the question how the users can upload images to use in the forum.
I know you can use the public image sites, but I guess users of these days are used to work with "attachments" in a forum.
So i did some research about what the best way is for this forum/CMS.
Things I tested:
1. File shared module: not interesting for using images in a forum since you really don't know the real path to the file.
2. Image gallery (simple folder version): I was hoping to give every user (yes, this would be a manual job unless I program something like a window service that checks some things and make a correct folder) his/her own folder so they can upload the image in that folder. But there is no security for that module . You can't give one person access to that specific folder.
3. Image gallery: this might be the solution: you can make for every use a image gallery (again manual work) and give that person permission to upload in that gallery. But if you setup the security, you see that the user can do more than just uploading images: changing the dimentions of the thumbnail/image, changing the feature instance title, hide van anonymous users, ... and that is not the purpose.

So my question Joe, what would you do let people upload images on the site and use it very easily in the forum? Any suggestion?

Thanks
Stef

6/14/2009 8:27:26 AM
Gravatar
Total Posts 18439

Re: users want to upload images and use it in the forum

Hi Stef,

I just implemented a solution for this so it will be easy in the coming release to enable users to upload images (but not other attachments) in the forums. After the next release please bump this thread and I will create a document explaining how to configure it.

Best,

Joe

6/14/2009 1:12:10 PM
Nux
Gravatar
Total Posts 183

Re: users want to upload images and use it in the forum

Ok, thanks Joe.

6/18/2009 1:04:24 AM
Nux
Gravatar
Total Posts 183

Re: users want to upload images and use it in the forum

Hey Joe,

I see there is a new update, so can you please create a document on how to configure the site so people can upload images on the forum?

Thanks

Stef

6/18/2009 6:05:27 AM
Gravatar
Total Posts 18439

Re: users want to upload images and use it in the forum

Hi Stef,

Look for this setting in Web.config and copy it to your user.config:

<add key="RolesThatCanUploadAndBrowse" value="Admins;Content Administrators;Content Publishers;Content Authors;Store Managers;" />

modify it like this:

<add key="RolesThatCanUploadAndBrowse" value="Authenticated Users;" />

All users get added by default to the Authenticated Users role, so all forum users will be able to upload images. The images wil be stored on disk at /Data/Sites/[SiteID]/userfiles/[UserGuid]/

so users can not browse the general file system and can only see files they upload themselves.

Best,

Joe

6/18/2009 11:54:26 AM
Nux
Gravatar
Total Posts 183

Re: users want to upload images and use it in the forum

Ok Joe, thanks for the explanation.

I will upgrade my site and check it out.

Thanks
Stef

You must sign in to post in the forums. This thread is closed to new posts.