A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Limiting mulitsite uploads
Sep 4, 2010
6:53 am
Rookie
Forum Posts: 4
Member Since:
Sep 4, 2010
Offline

I have wordpress multisite up and running, and I recently added simplepress to it, to allow users to make their own forums. However I'm not to keen on allowing them to upload files/avatars/smileys. Is there any quick and painless way to give it a quota or just disable the whole set of uploads?

 

The default multisite quota doesn't seem to affect files uploaded via the plugin.

Sep 4, 2010
8:26 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

you can remove permissions to upload images, media and files…forum – permissions -manage permisions..

you can disable avatar uploading on forum – profiles – avatars…

only admins can upload smileys….

Sep 4, 2010
9:12 am
Rookie
Forum Posts: 4
Member Since:
Sep 4, 2010
Offline

Thank you for the reply but I don't think you understand my question.

 

Main site (forum1)

-multisite 1(forum2)

-multisite 2(forum3)

-multisite 3(forum4)

-multisite 4(forum5)

 

As I understand the user in charge of each multisite will be the admin for each forum. I'd like to know if there's a super-admin option or known edit available to override each admin's options regarding file uploads.

Sep 4, 2010
9:51 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

No, there are no global main site settings that control network sites…  each install of spf (ie each network site) has its own unique settings…

interestingly, we have never had this raised before…  and I can see a reason for the question you are asking…  I will open a ticket for us to consider adding some multisite global options…  it is a major undertaking and restructuing as frankly, simple press wasnt originally designed for multisite (wpmu in the day) but we made it work due to sheer number of requests…  but this could certainly be a useful capability in multisite…

as the super admin, you could go in a change the settings for them, but of course, they could go back and change again…

afraid I cant give you an estimate either when we may tackle something like this…  as a two man dev team, we are limited in what we can do and are deep in the guts of a 5.0 design…

Sep 4, 2010
9:55 am
Rookie
Forum Posts: 4
Member Since:
Sep 4, 2010
Offline

Thanks for letting me know. I'll try to play around with the code and if I manage to get something like that to work I'll pass it on.

Sep 4, 2010
9:58 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

I could tell you which sections to modify in the core code if you like to prevent uploads from being allowed… and certainly numerous hacks you could make… but would get the job done… just not options…

the 'major' part would come from the main site admin ui and then networks sites 'phone home' to check them…

Sep 4, 2010
10:43 am
Rookie
Forum Posts: 4
Member Since:
Sep 4, 2010
Offline

Thanks,

So far I tracked down the custom smiley upload form and did this to it:

if(is_super_admin()){ …. }

Which seems to do the job.

Ideally I'l love it if all the files added by the plugin(auto-generated as well as uploaded) check with the global blog settings for maximum file size and maximum total size, but that seems rather daunting.

 

For the moment I'll just check for superadmin on all the upload forms. If you could point me in the right way to make uploads be disabled by default on each new installation I'd appreciate it.

Also if it's not too much, could you also point me to where the smileys check for paths? I figured that I could just keep a lot of them on the main site and people can use their options to use those. That way I could also add more on request.

Sep 5, 2010
8:17 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

sorry for the dealy… got hung up with family stuff…

go to file simple-forum/editors/tinymce/sf-tinyinit.php and around line 45, find and remove or comment out this code

if($canimage || $canmedia || $canfile || ($cansignature && $issignature))
    {
        echo '<script type="text/javascript" src="'.SFEDITORURL.'tinymce/plugins/filemanager/fm-tinymce.js.php"></script>'. "\n";
    }

without that code, the file upload manager will not start up…

Sep 5, 2010
4:09 pm
Member
Forum Posts: 1251
Member Since:
Oct 10, 2007
Offline

Andrew. said:

Thank you for the reply but I don't think you understand my question.

 

Main site (forum1)

-multisite 1(forum2)

-multisite 2(forum3)

-multisite 3(forum4)

-multisite 4(forum5)

 

As I understand the user in charge of each multisite will be the admin for each forum. I'd like to know if there's a super-admin option or known edit available to override each admin's options regarding file uploads.


SuperAdmin automaticly has Admin privlages on any multisite blog. This was one of the security features installed pre-WP3.0

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: America/Chicago

Most Users Ever Online: 444

Currently Online: Yellow Swordfish, chaiavi, steve.engelking
77 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2625

Members: 7361

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10890

Posts: 79531

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22211), Mr Papa (23688)