Global Moderator Mod Compliant

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 !

Global Moderator Mod Compliant

Postby End of a Shadow on Wed 04. Feb, 2004 09:04

Code: Select all
##############################################################
## Mod Title: Global Moderator Mod
## Mod Version: 1.0
## Author: Gumeleon <gumeleon@yahoo.com>
## Description: This mod will allow you to give a user moderator status on all forums
##      from the user permissions page without having to actually make them a
##      mod of each forum, just like an admin.
##
##
## Installation Level: Moderate
## Installation Time: 15 Minutes
## Files to Edit: /root/admin/admin_ug_auth.php
##        /root/includes/auth.php
##        /root/includes/constants.php
##        /root/language/lang_english/lang_admin.php
##
################################################################



Was wondering what step I need to do to make ModCP compliable with the Global moderators mod
here's the user level id GLOBAL_MOD
End of a Shadow
Poster
Poster
 
Posts: 6
Joined: Fri 15. Aug, 2003 15:55

Postby kooky on Fri 13. Feb, 2004 21:42

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail

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

#
#-----[ REPLACE BY ]------------------------------------------
#

$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 />' : '');


Replace
Code: Select all
$userdata['user_level'] == MOD

with
Code: Select all
$userdata['user_level'] == GLOBAL_MOD
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby End of a Shadow on Sat 14. Feb, 2004 02:33

Oh yeah forgot to ask, is there a way so that both the MOD and GLOBAL_MOD can have access to it together?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Image
Click above to visit the new ALTIMIT!
End of a Shadow
Poster
Poster
 
Posts: 6
Joined: Fri 15. Aug, 2003 15:55

Postby kooky on Sat 14. Feb, 2004 03:20

sure :D
Code: Select all
$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 ) || ( $userdata['user_level'] == GLOBAL_MOD ) ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '');
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby End of a Shadow on Sat 14. Feb, 2004 10:26

The link shows up down at the bottom, but I get this in the MCP page

You are not authorised to administer this board


Is there something I need to edit?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Image
Click above to visit the new ALTIMIT!
End of a Shadow
Poster
Poster
 
Posts: 6
Joined: Fri 15. Aug, 2003 15:55

Postby kooky on Sat 14. Feb, 2004 14:25

End of a Shadow wrote:The link shows up down at the bottom, but I get this in the MCP page

You are not authorised to administer this board


When you are MOD or GLOBAL MOD ?

Where do you find this mod ?
i don't know this mod...
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby End of a Shadow on Sat 14. Feb, 2004 18:11

kooky wrote:
End of a Shadow wrote:The link shows up down at the bottom, but I get this in the MCP page

You are not authorised to administer this board


When you are MOD or GLOBAL MOD ?

Where do you find this mod ?
i don't know this mod...


For moderators it still works, but for global moderators it doesn't

Link
http://www.phpbbhacks.com/viewhack.php?id=2146
Download
http://www.phpbbhacks.com/download.php?id=2146
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Image
Click above to visit the new ALTIMIT!
End of a Shadow
Poster
Poster
 
Posts: 6
Joined: Fri 15. Aug, 2003 15:55

Postby kooky on Mon 16. Feb, 2004 02:13

let me 1 week to test it myself

Remind me next week-end if i don't reply :roll:
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Next

Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron