Current time: 04-23-2014, 12:36 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 3 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Beta]Control ModCP
05-02-2010, 05:42 AM (This post was last modified: 07-06-2010 07:45 AM by Nayar.)
Post: #1
[Beta]Control ModCP
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 File(s) Thumbnail(s)
   

Facebook Connect for MyBB
Visit this user's website Find all posts by this user
05-02-2010, 10:50 AM
Post: #2
RE: [Beta]Control ModCP
Ooohh nice! Thanks for sharing. Smile
Visit this user's website Find all posts by this user
05-02-2010, 02:00 PM
Post: #3
RE: [Beta]Control ModCP
I'm going to download it. Smile
Find all posts by this user
05-02-2010, 03:37 PM
Post: #4
RE: [Beta]Control ModCP
This plugin is incompatible with MyBB 1413 error.
Find all posts by this user
05-02-2010, 04:48 PM
Post: #5
RE: [Beta]Control ModCP
(05-02-2010 03:37 PM)Mc Hammer Wrote:  This plugin is incompatible with MyBB 1413 error.

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




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

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

Facebook Connect for MyBB
Visit this user's website Find all posts by this user
05-02-2010, 06:13 PM
Post: #6
RE: [Beta]Control ModCP
(05-02-2010 04:48 PM)Nayar Wrote:  
(05-02-2010 03:37 PM)Mc Hammer Wrote:  This plugin is incompatible with MyBB 1413 error.

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




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

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

Thank you.
Find all posts by this user
05-03-2010, 06:26 PM
Post: #7
RE: [Beta]Control ModCP
Very nice plugin, can't believe this isn't core.

Do you design websites for Wordpress and Joomla? Looking to make some spare cash this summer? Please PM me.
Visit this user's website Find all posts by this user
05-04-2010, 09:00 AM (This post was last modified: 05-04-2010 09:02 AM by Nayar.)
Post: #8
RE: [Beta]Control ModCP
(05-03-2010 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

Facebook Connect for MyBB
Visit this user's website Find all posts by this user
07-06-2010, 07:07 AM
Post: #9
RE: [Beta]Control ModCP
Thank you Nayar
you did good worck it work for me profectly
yhank you

[Image: 25314.png]
Visit this user's website Find all posts by this user
07-06-2010, 07:37 AM
Post: #10
RE: [Beta]Control ModCP
Nayar - I have a few issues with your plugin...

PHP Code:
    $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:

PHP Code:
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...
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication