We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Disable Image Upload (at least for new users?) | Forum

lucia liljegren
lucia liljegren Feb 12 '14
I just installed Oxwall 1.6 along with the 'forum' and 'blog' plugins.  I like it very much.  However, I would like to disable uploading for users assigned to lower roles. (So for example, paying users could upload images to host on my server, others could not.)  For a variety of reasons ranging from the need to babysit users who might upload porn/copyright violations etc. I want to limit the number of images hosted on server and displayed by my site.

Unfortunately, it appears that the "upload" and "attach files"  icons on the forum (and blog) are functional by default. For clarity, I'm showing the icons circled below. 




Other than completely prohibiting discussion, there doesn't seem to be any setting to block these functions.   Am I overlooking something? Or might I need to hack in something to prevent these from showing? In either case, can someone suggest a tip.

Thanks, Lucia
PS. (On my first question, I discovered my answer as soon as I typed. I hope that doesn't happen again or I'll be very embarrassed. But this I really don't see this and it was the first thing I looked for!)
dave Leader
dave Feb 12 '14
Ok so you found the permissions section, good..  What other questions do you have?
lucia liljegren
lucia liljegren Feb 12 '14
Hi Dave,
My question is: Can I adjust the blog or forum settings to prevent image uploading to my server? I've looked for a setting and can't find any setting.
dave Leader
dave Feb 12 '14

The only place i know is if you go to plugins and scoll down to the forum plugin and click settings you can disable attachments and also set the size. The blog does not have that option in the plugin settings for blog. 


If the privacy and permissions under photo (upload photo - remove the check mark) does not do anything with the mini menu, then from my understanding it will take a code mod for the mini menu and it will be either on or off for everyone regardless of role (we can however allow a moderator or admin exception).  If you want to hide that that menu let us know and i will try to assist you with that mod.. 

lucia liljegren
lucia liljegren Feb 13 '14
There is no "photo" entry in "privacy and permissions". I didn't install the photo plugin because I didn't want users to upload photos!  However, photo uploading functionality seems to come with the "forum" and "blog" plugins.   I think I may want to modify those plugins  or possibly create a 'side' plugin that lets me override the main forum and blog plugins.

Here's what the choices that do show on for the forum and blog plugins when the photo plugin is not installed:

For Forum:
In the "plugin" area, I have this choice:
 * "Enable file attachments"
It is not checked. (So, I would have thought that would prevent file attachments, but it permits uploading images. But images can be uploaded both when this was checked and unchecked.)

In the "user roles" " Privacy & Permissions"  area my 3 choices are
    View topic           
    Create/Edit topic   
    Subscribe to forum topics

For blog:
In the Plugin area, the only choice is
"Posts on page"

In "user roles" " Privacy & Permissions" the 4 choices are
    Comment blogs   
    Add blog posts       
    The content owner can delete comments   
    View blog posts
dave Leader
dave Feb 13 '14
ok so if you take the checkmark off of attachments in forum plugin, that will remove the bottom part of the attachment access  (below the imput area)  for the forum, blog, and group.  So your taken care of there. 


Now let me see what i can do to mod that minimenu image so they cant use that either..  and ill be back with you.. 

lucia liljegren
lucia liljegren Feb 13 '14
Dave,
Thanks.  Are you the developer? This is great of you!

But yes: the attachment option works as advertized. I found the bit in the code related to that.  It's just movies and photos aren't "attachments". 

I'm trying to get up to speed here because I know that I'm going to want to do some custom things.... eventually! (And one can't just be pestering the developers to drop everything!)
dave Leader
dave Feb 13 '14
No mam am not a dev im just self taught and glad your willing to learn also.. Sorry this is taking a bit im doing some other stuff as well.  I will update this as soon as i have that mini menu mod done :) 
dave Leader
dave Feb 13 '14
that thing is a bit of a booger lol... 


I commented out the creation of that element in ow/static/plugins/base/js/htmlarea.js file and it still showed.  


Then i changed the css to display:none in ow_static/plugins/base/css/htmlarea.css   a.image   and it still showed.


im slowly running out of options here lol 



The Forum post is edited by dave Feb 13 '14
dave Leader
dave Feb 13 '14
i believe that is called the mini ipc but sorry i cannot seem to take out just the image deal, i can block the whole thing but thats not what we want to do here. 


There used to be an array in 1.53 init php  in the forum plugin but now they redid it for 1.6 and i cannot even find that var anymore.  Sorry i admit defeat, its too much for my skill level sorry i cant spend any more time on this for right now.. :)

The Forum post is edited by dave Feb 13 '14
lucia liljegren
lucia liljegren Feb 15 '14
Thanks dave,
I'll be looking through. I'm new to oxwall, so I need to figure out how everything is organized!
dave Leader
dave Feb 15 '14
i have found agent ransack to be a life saver when it comes to that... how did i ever do this without such a tool in the old days i will never know...