[MOD] Moderator CP v1.1.0

This add-on will allow you to give "moderators" access to manage users, and theire permissions, admin accounts are protected

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

[MOD] Moderator CP v1.1.0

Postby kooky on Fri 18. Apr, 2003 01:02

MOD Title: Moderator CP
MOD Author: kooky
MOD Author: Milkman
MOD Author primary: Niels Chr. Denmark
MOD Description: This mod will add a Moderator Control Panel for all moderators.
They can disallow usernames, edit smilies, manage users accounts, ...
They have a similar link at the bottom, like the Admin.
Moderators have not allowed to edit Admin's accounts.
Admin is protected against mess made by moderators.
Admin can enable/disable each module.
It is not really a MOD/hack, it is rather an add-on for phpBB :)
MOD Version: 1.1.0
MOD Demo: not available

MOD Compatibility: 2.0.16 - 2.0.17
Installation Level: Easy
Installation Time: 5 minutes
File size: 72 Kb

MOD Main download: here (my demo board :: always updated as first)

MOD Download: Moderator CP (not updated)
MOD Alternate download: here (not always updated)


Important: Please read FAQ.txt before ask for :wink:
This Mod is the third part of the TRI FORCE (User Class | ModCP)
-> http://www.phpbb.com/phpBB/viewtopic.php?t=205252

-> Support will be only made on phpBB.com
or @t my demo board

MOD History:
- read install.txt ^_^...

With Niels courtesy, i released the Moderator Control Panel Mod
This is a better powerful Mod CP which is very easy and simple to install.

Remember if you download this mod, then mark this thread as "notify on reply", you will then receive an email notification, if i later post upgrade information :D
Last edited by kooky on Thu 18. Aug, 2005 20:26, edited 11 times in total.
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

[Updated] v1.0.0 -> 1.0.1

Postby kooky on Tue 22. Apr, 2003 15:00

Mod now updated to v1.0.1

Now moderators have not allowed to delete Mods accounts

here are how to correct this, if you have already made this mod:
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
name="deleteuser" {DISABLE_ADMIN}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

{DISABLE_MOD}



admin_users.php file updated
Replace this file in your /modcp dir :D

[edit] Added new link to download
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby kooky on Sun 29. Jun, 2003 21:01

Mod updated to phpBB 2.0.5
and upgraded with a new files system
Now v1.0.2

This mod is now more independent of phpBB

How to update:
Simply, remove the modcp dir and upload the new modcp dir and the new files included in the zip archive.

Removed ranks and admin_ug_auth (but there is a how to to install it)
Added a FAQ.txt, read it before asking ;)
Added pre-edited files for phpBB 2.0.3 and 2.0.4
See the contrib dir ;)
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby kooky on Wed 30. Jun, 2004 20:10

New version is 1.0.3

Mod updated to phpBB 2.0.8
and EasyMod compliant

Should work with older version of phpBB 2.0.x
report here if not :wink:


How to update:
Remove your old files (only modcp) and add new files
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby kooky on Tue 27. Jul, 2004 01:44

New version is 1.0.4

- Updated to phpBB 2.0.9
file that has changed: modcp/index.php

How to update:
Code: Select all
#
#-----[ OPEN ]--------------------------------------
#
modcp/index.php

#
#-----[ FIND ]-------------------------------
#
*   $Id: index.php,v 1.40.2.5 2003/08/03 11:50:51 acydburn Exp $
#
#-----[ REPLACE WITH ]--------------------------------
#
*   $Id: index.php,v 1.40.2.6 2004/07/11 16:46:15 acydburn Exp $
#
#-----[ FIND ]-------------------------------
#
         AND u.user_session_time >= " . ( time() - 60 ) . "
#
#-----[ REPLACE WITH ]--------------------------------
#
         AND s.session_time >= " . ( time() - 60 ) . "


Also works with phpBB 2.0.10
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby kooky on Tue 28. Dec, 2004 19:58

Here it is, new version of the ModCP


2004/12/26 - Version 1.0.6
- Fixed potential issue with MOD level
- Fixed a missing code for email in user_edit_body.tpl
- Added addon for User Level Mod to add Main Mod level
- Added ModCP settings in AdminCP (enable/disable modules)


How to upgrade from all previous versions:
- First remove your old modcp directory and upload the new modcp dir (all files changed)
- Second, apply these SQL queries to update your DB:
Code: Select all
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_disallow', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_mass_email', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_ranks', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_smilies', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_user_ban', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_users', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_words', '1');


- Third, upload these 2 new files admin/admin_modcp.php and templates/subSilver/admin/modcp_config_body.tpl
Allow Admin to enable/disable each module.

- Fourth, edit page_tail.php and lang_admin.php
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php

#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : ( ( $userdata['user_level'] == MOD ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '' );
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$userdata['user_level'] == MOD
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$userdata['user_level'] == '2'

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start add - ModCP
$lang['Modcp'] = 'ModeratorCP';
$lang['Modcp_title'] = 'Moderator Control Panel';
$lang['Modcp_explain'] = 'The form below will allow you to customize all the ModeratorCP options.';
$lang['Modcp_settings'] = 'ModCP Settings';
$lang['Module_disabled'] = 'Module disabled';

$lang['Module_disallow'] = 'Enable Disallow Module';
$lang['Module_disallow_explain'] = 'Allow moderators to access to the Disallow module.';
$lang['Module_mass_email'] = 'Enable Mass Email Module';
$lang['Module_mass_email_explain'] = 'Allow moderators to access to the Mass Email module.';
$lang['Module_ranks'] = 'Enable Ranks Module';
$lang['Module_ranks_explain'] = 'Allow moderators to access to the Ranks module.';
$lang['Module_smilies'] = 'Enable Smilies Module';
$lang['Module_smilies_explain'] = 'Allow moderators to access to the Smilies module.';
$lang['Module_user_ban'] = 'Enable User Ban Module';
$lang['Module_user_ban_explain'] = 'Allow moderators to access to the User Ban module.';
$lang['Module_users'] = 'Enable Users Module';
$lang['Module_users_explain'] = 'Allow moderators to access to the Users module.';
$lang['Module_words'] = 'Enable Words Module';
$lang['Module_words_explain'] = 'Allow moderators to access to the Words module.';
// End add - ModCP
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby kooky on Tue 28. Dec, 2004 19:58

Small update due to a mistake, sorry for that

New version 1.0.7
2004/12/28 - Version 1.0.7
- Fixed error in modcp/admin_users.php
- Fixed permissions addon
- Updated admin/admin_modcp.php and its .tpl

How to update:
- Upload new modcp/admin_users.php
- Upload admin/admin_modcp.php and templates/subSilver/admin/modcp_config_body.tpl
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby kooky on Thu 06. Jan, 2005 02:29

New version 1.0.8

2005/01/02 - Version 1.0.8
- Fixed issue in modcp/index.php
(thanks to uni for reported this)

How to update:
Replace your modcp/index.php with the new modcp/index.php
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves


Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron