Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Beta]Control ModCP
#1
May peace be upon you.
This plugin controls the what moderators/super moderators can edit in the profile editor. i.e. it adds no new feature. It only allows better control.
This plugin needs to be tested.

Feel free to add new features to this plugin and post it here.
Regards

Download removed until next re-write in November


Attached Files Thumbnail(s)
   
#2
Ooohh nice! Thanks for sharing. Smile
#3
I'm going to download it. Smile
#4
This plugin is incompatible with MyBB 1413 error.
#5
(2010-05-02, 03:37 PM)Mc Hammer Wrote: This plugin is incompatible with MyBB 1413 error.

Open the plugin with a text editor.
Find this line:
"compatibility" => "16*"
Replace with:
"compatibility" => "14*"
Else, re-download the file from the first post.




(2010-05-02, 10:50 AM)Rozzy Wrote: Ooohh nice! Thanks for sharing. Smile

(2010-05-02, 02:00 PM)darkly Wrote: I'm going to download it. Smile
Smile
#6
(2010-05-02, 04:48 PM)Nayar Wrote:
(2010-05-02, 03:37 PM)Mc Hammer Wrote: This plugin is incompatible with MyBB 1413 error.

Open the plugin with a text editor.
Find this line:
"compatibility" => "16*"
Replace with:
"compatibility" => "14*"
Else, re-download the file from the first post.




(2010-05-02, 10:50 AM)Rozzy Wrote: Ooohh nice! Thanks for sharing. Smile

(2010-05-02, 02:00 PM)darkly Wrote: I'm going to download it. Smile
Smile

Thank you.
#7
Very nice plugin, can't believe this isn't core.
I'm not here often, shoot a PM or whatever if you want my discord.
#8
(2010-05-03, 06:26 PM)41shots Wrote: Very nice plugin, can't believe this isn't core.
Thanks Smile
I fought a lot for this feature but then decided to learn php and do it myself.
Lets hope it will be core in the future
#9
Thank you Nayar
you did good worck it work for me profectly
yhank you
[Image: 25314.png]
#10
Nayar - I have a few issues with your plugin...

	$user = get_user($mybb->input['uid']);

Although this does get checked in the function, you should perform some sort of validation to ensure you actually have a user to edit and show an error if there isn't.

Also, the entire modcpperm function runs whether you're editing a profile or not. In this function, you could do this:

if($mybb->input['action'] != "editprofile")
{
	return false;
}

...and just another gripe, but correct me if I'm wrong - these settings seem global? As in if you set an option to 'no', then no moderator can edit that section. This includes administrators and all moderators? I'm not too sure if you planned to do that or not...

Last thing, there are 11 str_replace function calls. This function accepts arrays as parameters, so it would be a lot easier if you added the strings and replacements then only one str_replace function is needed...


Forum Jump:


Users browsing this thread: 2 Guest(s)