[ABD] Super Moderators

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
croXs
Registered User
Posts: 48
Joined: Tue May 18, 2004 11:59 am

Post by croXs »

this is like a junior admin mod right? as for this mod, can we set what thhey can access to and what their powers are?

sorry but i dont really want to read all pages....
User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit »

Rawly: I'm making this MOD EasyMOD compatible, and will email you concerning this when I'm done.

Odin's 2.0.8 compatible one isn't EMC... so I'll just continue with this job...

croXs: As stated in the readme.txt file, it is not a Junior Admin MOD, though its functions are similar. You can't control what the Super Moderators can do without editing the code itself, and/or adding/subtracting templates from the /phpBB2/templates/subSilver/less_admin.

{EDIT] I've stopped trying to make this MOD EasyMOD compatible as for some reason there's always a "find - no target specified" error when everything looks correct.
Last edited by MHobbit on Mon Jun 28, 2004 11:24 pm, edited 1 time in total.
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy »

tbartold wrote:
cherokee red wrote: here's my file if anoyne want to take a look
http://www.mrikasu.com/cherokeered/docs ... g_auth.txt


Yours looks a lot different thatn mine, that maybe it got out of sequence on the changes? If you want to try and sort out all the differences, at least mine appears to be working ok : admin_ug_auth.php

your file seems to have cleared it up. i can make people supermods now.
thanks. and thanks rawly for a great mod.
at last i have it working \o/
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
burnthome
Registered User
Posts: 144
Joined: Thu Jan 08, 2004 9:13 am
Contact:

Post by burnthome »

i have install it....and can i adding more control to the super mod by copying the files from my admin folder(to add in more controling features)???

thanks,
burnthome
stu15
Registered User
Posts: 1283
Joined: Sat Mar 15, 2003 1:46 am
Location: New Zealand
Contact:

Post by stu15 »

Hello

I have installed the Super Moderator mod, for the 2nd time now, lol! :D

http://stu.crediblehost.com/ [image removed]

Now any ideas how I would change the colour of this:" [ Super Moderator ] " as above in my screen shot from black to another colour like blue or something like that?

Any ideas? :?

Thanks in advance :)
Last edited by stu15 on Sat Dec 10, 2005 3:46 am, edited 2 times in total.
A Registered User > I maybe wrong...So please correct him :) || My Forum - Stu's phpBB Helpdesk
MaddoxX
Registered User
Posts: 450
Joined: Sat May 15, 2004 4:43 pm
Location: Russia

Post by MaddoxX »

is there any screenshot of the acp in this ?
i'm currently using junior admin ;d
:D
stu15
Registered User
Posts: 1283
Joined: Sat Mar 15, 2003 1:46 am
Location: New Zealand
Contact:

Post by stu15 »

stu15 wrote: Hello

I have installed the Super Moderator mod, for the 2nd time now, lol! :D

http://stu.crediblehost.com/ [image removed]

Now any ideas how I would change the colour of this:" [ Super Moderator ] " as above in my screen shot from black to another colour like blue or something like that?

Any ideas? :?

Thanks in advance :)


Would this be what I want? So I can do that change I want ?! :? :?
supermodcolors.txt wrote: ##############################################################
## Mod Title: Super Moderators Add On
## Mod Version: 1.5.0
## Author: JRawly < rawly@jrawly.co.uk > http://www.jrawly.co.uk
## Description: Allows admin to choose super moderators. ie Users with Restricted Admin Privaledges
##
## Installation Level: moderate
## Installation Time: 10 Minutes
## Files To Edit: /phpBB2/viewonline.php
## /phpBB2/includes/page_header.php
## /phpBB2/admin/admin_styles.php
## /phpBB2/language/lang_english/lang_admin.php
## /phpBB2/{TEMPLATES DIR}/index_body.tpl
## /phpBB2/{TEMPLATES DIR}/admin/styles_edit_body.tpl
##
## Included Files: n/a
##############################################################
##
##
##############################################################
## For Security Purposes, This MOD Cannot Be Posted Or Added At Any Non-Official phpBB Site
##############################################################
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ DATABASE CHANGES ]------------------------------------------
#

ALTER TABLE phpbb_themes ADD fontcolor4 VARCHAR (6) ;



#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/viewonline.php



#
#-----[ FIND ]------------------------------------------
#

if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>';
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

else if ( $row['user_level'] == LESS_ADMIN )
{
$username = '<b style="color:#' . $theme['fontcolor4'] . '">' . $username . '</b>';
}



#
#-----[ FIND ]------------------------------------------
#

if ( !$row['user_allow_viewonline'] )
{
$view_online = ( $userdata['user_level'] == ADMIN ) ? true : false;
$hidden_users++;

$username = '<i>' . $username . '</i>';
}


#
#-----[ AFTER, ADD ]------------------------------------------
#

else if ( !$row['user_allow_viewonline'] )
{
$view_online = ( $userdata['user_level'] == LESS_ADMIN ) ? true : false;
$hidden_users++;

$username = '<i>' . $username . '</i>';
}

#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#

if ( $row['user_level'] == ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

else if ( $row['user_level'] == LESS_ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
}

#
#-----[ FIND ]------------------------------------------
#
//These few lines are for the whos visited today MOD. They MAY be in your index.php file if you have a recent version of this MOD.
if( $todayrow['user_level'] == ADMIN )
{
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';

$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
//These few lines are for the whos visited today MOD. They MAY be in your index.php file if you have a recent version of this MOD.
else if( $todayrow['user_level'] == LESS_ADMIN )
{
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
}

#
#-----[ FIND ]------------------------------------------
#

'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),

#
#-----[ AFTER, ADD ]------------------------------------------
#

'L_WHOSONLINE_SUPER_MOD' => sprintf($lang['Super_Mod_online_color'], '<span style="color:#' . $theme['fontcolor4'] . '">', '</span>'),

#
#-----[ FIND ]------------------------------------------
#

'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

'T_FONTCOLOR4' => '#'.$theme['fontcolor4'],

#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/admin/admin_styles.php

#
#-----[ FIND ]------------------------------------------
#

$updated['fontcolor3'] = $HTTP_POST_VARS['fontcolor3'];
$updated_name['fontcolor3_name'] = $HTTP_POST_VARS['fontcolor3_name'];

#
#-----[ AFTER, ADD ]------------------------------------------
#

$updated['fontcolor4'] = $HTTP_POST_VARS['fontcolor4'];
$updated_name['fontcolor4_name'] = $HTTP_POST_VARS['fontcolor4_name'];


#
#-----[ FIND ]------------------------------------------
#

"L_FONTCOLOR_3" => $lang['fontcolor3'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

"L_FONTCOLOR_4" => $lang['fontcolor4'],

#
#-----[ FIND ]------------------------------------------
#

"FONTCOLOR3" => $selected['fontcolor3'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

"FONTCOLOR4" => $selected['fontcolor4'],

#
#-----[ FIND ]------------------------------------------
#

"FONTCOLOR3_NAME" => $selected['fontcolor3_name'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

"FONTCOLOR4_NAME" => $selected['fontcolor4_name'],

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

#
#-----[ FIND ]------------------------------------------
#

$lang['fontcolor3'] = "Font Colour 3";

#
#-----[ AFTER, ADD ]------------------------------------------
#

$lang['fontcolor4'] = "Font Colour 4";



#
#-----[ OPEN ]------------------------------------------
#

/phpBB2/language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

$lang['Admin_online_color'] = "%sAdministrator%s";
$lang['Mod_online_color'] = "%sModerator%s";

#
#------ AFTER, ADD ]------------------------------------
#

$lang['Super_Mod_online_color'] = "%sSuper Moderator%s";



#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/{TEMPLATES DIR}/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>

#
#-----[ REPLACE WITH ]------------------------------------------
#

<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_SUPER_MOD} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>


#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/{TEMPLATES DIR}/admin/styles_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<tr>
<td class="row1">{L_FONTCOLOR_3}:</td>
<td class="row2"><input type="text" size="6" maxlength="6" name="fontcolor3" value="{FONTCOLOR3}"></td>
<td class="row2"><input type="text" size="25" maxlength="100" name="fontcolor3_name" value="{FONTCOLOR3_NAME}">
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<tr>
<td class="row1">{L_FONTCOLOR_4}:</td>
<td class="row2"><input type="text" size="6" maxlength="6" name="fontcolor4" value="{FONTCOLOR4}"></td>
<td class="row2"><input type="text" size="25" maxlength="100" name="fontcolor4_name" value="{FONTCOLOR4_NAME}">
</tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Last edited by stu15 on Sat Dec 10, 2005 3:46 am, edited 1 time in total.
A Registered User > I maybe wrong...So please correct him :) || My Forum - Stu's phpBB Helpdesk
User avatar
CTCNetwork
Former Team Member
Posts: 15424
Joined: Fri Dec 19, 2003 3:50 am
Location: In that Volvo behind you!
Contact:

Post by CTCNetwork »

Hi,

Excuse my possibel stupidity here, but wtf does:-

Code: Select all

# 
#-----[ AFTER, REPLACE ]-------------------------------- 
#
Mean, exactly?
Replace? Replace what? With what? :-

Code: Select all

# 
#-----[ AFTER, REPLACE ]-------------------------------- 
# 
switch ( SQL_LAYER ) 
{ 
   case 'postgresql': 
      $sql = "SELECT u.user_id 
         FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa 
         WHERE ug.user_id = u.user_id 
            AND aa.group_id = ug.group_id 
            AND u.user_level NOT IN (" . USER . ", " . ADMIN . ", " . LESS_ADMIN . ") 
         GROUP BY u.user_id 
         HAVING SUM(aa.auth_mod) = 0 
         UNION ( 
            SELECT u.user_id  
            FROM " . USERS_TABLE . " u 
            WHERE NOT EXISTS ( 
               SELECT aa.auth_mod 
               FROM " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa 
               WHERE ug.user_id = u.user_id 
                  AND aa.group_id = ug.group_id 
            ) 
            AND u.user_level NOT IN (" . USER . ", " . ADMIN . ", " . LESS_ADMIN . ")  
            GROUP BY u.user_id 
         )"; 
      break; 
   case 'oracle': 
      $sql = "SELECT u.user_id 
         FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa 
         WHERE ug.user_id = u.user_id(+) 
            AND aa.group_id = ug.group_id(+) 
            AND u.user_level NOT IN (" . USER . ", " . ADMIN . ", " . LESS_ADMIN . ") 
         GROUP BY u.user_id 
         HAVING SUM(aa.auth_mod) = 0"; 
      break; 
   default: 
      $sql = "SELECT u.user_id 
         FROM ( ( " . USERS_TABLE . " u  
         LEFT JOIN " . USER_GROUP_TABLE . " ug ON ug.user_id = u.user_id ) 
         LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = ug.group_id ) 
         WHERE u.user_level NOT IN (" . USER . ", " . ADMIN . ", " . LESS_ADMIN . ") 
         GROUP BY u.user_id 
         HAVING SUM(aa.auth_mod) = 0"; 
      break; 
}
Des. . . :!:
Density:- Not just a measurement~Its a whole way of Life.! ! !
| Welcome! | RTFM!!! | Search! It's Easy! | Problem? | Spam? | Advice! |
User avatar
Lord 0f The Lanyards
Registered User
Posts: 222
Joined: Fri Jan 09, 2004 2:33 am
Location: cheeseland
Contact:

Post by Lord 0f The Lanyards »

hey man, can you make an upgrade to super moderators expanded, i would really appreciate it, if you dont have your old code, here it is on my site, cus phpbbhacks.com doesnt have it anymore, i hope you odnt mind me uploading it so i can give it to other people:
http://lethalvapors.com/1216.zip
stu15
Registered User
Posts: 1283
Joined: Sat Mar 15, 2003 1:46 am
Location: New Zealand
Contact:

Post by stu15 »

CTCNetwork wrote: Hi,

Excuse my possibel stupidity here, but wtf does:-

Code: Select all

# 
#-----[ AFTER, REPLACE ]-------------------------------- 
#
Mean, exactly?
Replace? Replace what? With what? :-


I know what you mean, there are some weird parts in this mod, but it is only in DEV, so I am not surprised.
A Registered User > I maybe wrong...So please correct him :) || My Forum - Stu's phpBB Helpdesk
ultima528
Registered User
Posts: 100
Joined: Tue Apr 06, 2004 8:24 pm

Post by ultima528 »

Lord 0f The Lanyards wrote: hey man, can you make an upgrade to super moderators expanded, i would really appreciate it, if you dont have your old code, here it is on my site, cus phpbbhacks.com doesnt have it anymore, i hope you odnt mind me uploading it so i can give it to other people:
http://lethalvapors.com/1216.zip
Yeah, look at the author of the mod... you'll quickly realize that the author is Carlo Claessen... it was based upon Rawly's mod, but it isn't his mod.
Also, Rawly's last post was made on Fri Dec 19, 2003 at 11:49 am, so I wonder if he still visits these boards... =\
User avatar
CTCNetwork
Former Team Member
Posts: 15424
Joined: Fri Dec 19, 2003 3:50 am
Location: In that Volvo behind you!
Contact:

Post by CTCNetwork »

stu15 wrote: I know what you mean, there are some weird parts in this mod, but it is only in DEV, so I am not surprised.


Yes, been looking through the pages here, I can see what you mean by "Dev". so not a personal slight at you . . :wink:

Sort of a work-in-progress. I wish you all the best.

A suggestion - there are 3 files to this MOD. Are they independant or inter-dependant as I would thing a part 1 part 2etc lable may make things easier.

Good Luck,

Des. . . :wink:
Density:- Not just a measurement~Its a whole way of Life.! ! !
| Welcome! | RTFM!!! | Search! It's Easy! | Problem? | Spam? | Advice! |
yfz96
Registered User
Posts: 563
Joined: Fri May 10, 2002 9:32 pm

Post by yfz96 »

Anyone ever find out WHY the super moderator's level is being changed back from 3 in the database? This keeps happening to my super-mods. :(
User avatar
Lord 0f The Lanyards
Registered User
Posts: 222
Joined: Fri Jan 09, 2004 2:33 am
Location: cheeseland
Contact:

Post by Lord 0f The Lanyards »

i cant get super moderators to be able to edit posts etc...
MrSexy
Registered User
Posts: 45
Joined: Fri May 21, 2004 7:49 pm
Contact:

Post by MrSexy »

I used this mod and got a lot of problems with it. I now use FAMITSU'S TRI FORCE mod, and it works great. Check out that one too if this one is giving you guys trouble. I am very happy with it, and it seems to do what this mod does as well as the ability to change all the colors of the various [LEVEL TITLES] on the index. Hope this helps.
never hit a man with glasses, hit him with your fist.
Locked

Return to “[2.0.x] MODs in Development”