How do you get the Moderator CP to work with phpBB 2.03?

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 !

How do you get the Moderator CP to work with phpBB 2.03?

Postby TestMan on Sat 17. May, 2003 21:09

The reason why I havn't converted to phpBB 2.0.4 is that I have already added many modules to the current version I have...

All I need to know is, since the Moderator CP that was made, was made for phpBB 2.0.4, there is actually only one line of code that is issential to have.

This line of code is in the 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 />' : '';

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


Unfortunattely the line:

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


...Is only in phpBB 2.0.4.

What the line looks like in phpBB 2.0.3 is:

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


So how can I replace this piece of line of code:

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


... and make it compatible with the current line of code I have, (for phpBB 2.0.3):

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


Please help. : ) .. thnx
TestMan
Poster
Poster
 
Posts: 4
Joined: Mon 24. Mar, 2003 07:21

Postby kooky on Mon 19. May, 2003 01:47

The only change between 2.0.3 and 2.0.4 is the ?sid=' . $userdata['session_id']

You have just to remove this line like this:
Code: Select all
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '">' . $lang['Admin_panel'] . '</a><br /><br />' : (( $userdata['user_level'] == MOD ) ? '<a href="modcp/index.' . $phpEx . '">' . $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 TestMan on Mon 19. May, 2003 05:12

Sorry.. I am n00b at this.

Can you just post the edited phpBB 2.0.3 compatible steps for the pagetail.php?

It would be much appreciated. :) :)
TestMan
Poster
Poster
 
Posts: 4
Joined: Mon 24. Mar, 2003 07:21

Postby TestMan on Sun 01. Jun, 2003 19:52

I'd really appreciate if you just posted the edited step for the mod cp to run on phpBB 2.0.3.

Its been almost 2 weeks now. :cry:
TestMan
Poster
Poster
 
Posts: 4
Joined: Mon 24. Mar, 2003 07:21

Postby kooky on Fri 06. Jun, 2003 01:03

Currently having no time to do that

i will try to explain you how to when i will release the new version
Just wait 2 weeks :wink:
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 1 guest

cron