[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.
Locked
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

Yes, you have to be careful when editing the user's permissions.
The ADD-ON from gatekeep2 selects Administrator as the default user setting. You need to check this before you update the user.
adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s »

Rawly wrote: Yes, you have to be careful when editing the user's permissions.
The ADD-ON from gatekeep2 selects Administrator as the default user setting. You need to check this before you update the user.


yes, the original forum code was so that it would see the users current level, and display that as the default.

but with this mod, the last thing u add is changing that line of code, and admin si the default. if u just switch the order, u can do so and have user show up first, just to be safe,
juanchi
Registered User
Posts: 89
Joined: Tue Apr 09, 2002 11:09 pm

Thanks!

Post by juanchi »

adam s wrote: i had to copy many of the admin files and templates overtop of the supermod ones. whatever page isn't working, move it out, and replace it with the same page from the admin folder. if it works, great. if not, u can put the old file back. i did this until i finally got it working.


You were right! I only copy my files over the ones at super_mod directory and templates and now it's working, please excuse me but I think this mod leave to much things open, I will like to know how on earth will you know that you have to change the files included in the mod with your owns files, if this info was included in the instructions please excuse me, if not please put this in the installation file and don't put another user under so much pain :lol: :lol: :lol: :lol: .
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

The files in the super_mod directory were *edited* specifically for the super moderators. IE so only they can access them, Admin would not be able, nor need to access them.

The files included in the zip are edited versions of phpBB ver 2.0.0 so I do not know whether any things in them have changed from 2.0.0 to 2.0.1.


As I said. The files included with this MOD are edited by myself for use with this MOD.

If you have replaced them, your super_moderator now is using the admin templates and not the super_mod templates. Also your super moderator may have trouble accessing them.

Maybe I am wrong, maybe I am not.
Night4554
Registered User
Posts: 99
Joined: Sun Apr 07, 2002 3:09 am

Post by Night4554 »

i've seen no problems on my test mod board, and my super mod hasn't had any problems he's told me about, and i replaced them
Dave p
Registered User
Posts: 28
Joined: Sat May 18, 2002 4:17 pm
Contact:

Post by Dave p »

I've just started setting up usergroups, and I've noticed it's not just user ranks. Whenever I try to change any permissions for a user or usergroup, I get the message 'Couldn't obtain user/group permissions'.
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

hmmmm. ok I will talk to gatekeep2 nicely!

*to gatekeep2* Hello, how are you? I don't suppose you could help with this problem could you??
gatekeep2
Registered User
Posts: 173
Joined: Sat Feb 16, 2002 5:26 am
Location: /dev/null
Contact:

Post by gatekeep2 »

hmm, dave i have been unable to recreate the problem you are having, did you do anything to your forum that changed the user database? (like the real name MOD, etc)

on an off note: rawly the main page of your site, in the who is online, the avatar is not being properly displayed when a user uses an offsite avatar
Please, do not conact me for phpBB support.
Dave p
Registered User
Posts: 28
Joined: Sat May 18, 2002 4:17 pm
Contact:

Post by Dave p »

No, this is the first time I've added a MOD that needed database changes.

Also, the Supermodcolors is still not working. Is there anywhere I can just insert a hex code?
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

Dave p wrote: Also, the Supermodcolors is still not working. Is there anywhere I can just insert a hex code?


Yeah
JRawly's Super MOD Hardcoded Colours wrote: #
#-----[ 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:#HEXCOLOR">' . $username . '</b>';
}


#
#-----[ 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:#HEXCOLOR"';
}

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

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

#
#-----[ AFTER, ADD ]------------------------------------------
#
else if( $todayrow['user_level'] == LESS_ADMIN )
{
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
$style_color = 'style="color:#HEXCOLOR"';
}

#
#-----[ 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:#HEXCOLOR">', '</span>'),

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

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

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

'T_FONTCOLOR4' => '#HEXCOLOR',


Just use the above code instead of the code used in the readme.
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

gatekeep2 wrote: on an off note: rawly the main page of your site, in the who is online, the avatar is not being properly displayed when a user uses an offsite avatar

hhmmmmm, I will see what I can do!
talia679
Registered User
Posts: 716
Joined: Tue Mar 12, 2002 4:07 pm
Location: PA
Contact:

Post by talia679 »

Hi there,

Is there any chance (I don't know how hard it would be) to edit this mod so that it would support the Super Moderator Mod?

http://www.phpbbhacks.com/viewhack.php?id=437

This is the staff site mod ... but it shows Super Moderators at Moderators.
Thanks, Talia
Tag You're It Writing Community || TYI Forums
Taleria - Talia's Gallery of 2000+ Links & 140+ Books
GameCrafters Guild – Gaming info and resources
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

It should be possible. I will test it out and post the code sometime tomorrow.

:)
talia679
Registered User
Posts: 716
Joined: Tue Mar 12, 2002 4:07 pm
Location: PA
Contact:

Post by talia679 »

Hey that's great thanks :)
Thanks, Talia
Tag You're It Writing Community || TYI Forums
Taleria - Talia's Gallery of 2000+ Links & 140+ Books
GameCrafters Guild – Gaming info and resources
User avatar
Rawly
Registered User
Posts: 218
Joined: Sun Mar 10, 2002 7:33 pm
Location: Manchester, UK
Contact:

Post by Rawly »

In fact! Here it is now!

http://www.jrawly.co.uk/stuff/staff.txt

replace your current staff.php with this one :)
Locked

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