ModCP failure

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 !

ModCP failure

Postby lullabytes on Fri 16. May, 2003 14:57

well not sure what went wrong .. certainly this had all the ear marks of a fantastically ez mod to install for our forum. i downloaded it from
phpBBHacks http://www.phpbbhacks.com/viewhack.php?id=1282, read the instructions carefully .. uploaded/created the new modcp directly inside the forum root.

then proceeded to do the edits of the 2 files i was instructed to do.

in the end ... nada. nothing appears to have happened.

one note: our forum does not use subSilver, but rather Aeolus. so the only variance from the directions was that instead of editing templates/subSilver/admin/user_edit_body.tpl, the edit was done to templates/Aeolus/admin/user_edit_body.tpl.

the ModCP was not visible in any way to either moderators or administrators....so not sure what went wrong. for now i've backed out the edits and restored as it was.

any ideas or suggestions? this mod sounds just like the ticket for us .. would love to find a solution so we can make it work for us.

many thanks!
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Postby kooky on Fri 16. May, 2003 17:13

First only moderator can view the link at the bottom

Second, the link uses is the same uses by the admin to go to the ACP

Do you add this change ?
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 />' : '');


This link is to add the Mod CP link
Check your lang_main or lang_admin if you have the $lang['Mod_CP'] variable within

And in your file overall_footer.tpl you should have this
Code: Select all
{ADMIN_LINK}
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby lullabytes on Sat 09. Aug, 2003 15:45

yes i did do the edit as shown & the link was still not visible.

i just downloaded the updated mod (our forum is still running 2.4 tho) and tried the install again. this time there was only the one file to edit.

after editing the one file required, includes/page_tail and then uploading the 23 files to their various directories .. there are no visible changes yet again.

there is no link at the bottom of the page for moderators to access a control panel.

any other ideas?

PS. i just noticed something in the coding referring to a userlevel of MOD. our forum has two userlevels in the admin dropdown list: user and admin. could this be where the problem lies? do we need to add a 3rd user level of MOD? up til now all we have done is grant moderator permissions to the individuals via their member permissions page.
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Postby kooky on Mon 11. Aug, 2003 16:18

phpBB uses 4 levels
level = 1 (ADMIN)
level = 2 (MOD)
level = 0 (MEMBERS)
level = -1 (GUESTS)

therfore if you haven't give MOD permissions to not any groups or users into your ACP permissions, your MOD will not see the MOD CP link at the bottom :?
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby warmweer on Mon 11. Aug, 2003 18:59

kooky wrote:First only moderator can view the link at the bottom

Second, the link uses is the same uses by the admin to go to the ACP


I changed this part slightly to:
Code: Select all
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br /><a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />'  : (( $userdata['user_level'] == MOD ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '');


This shows both the admin/index.php link and the modcp/index.php link to the ADMIN. Moderators only see the modcp.index.php link. This helps me to see which permissions are given to the moderators.
A bug is a feature which didn't make it to the manual
warmweer
Poster
Poster
 
Posts: 25
Joined: Mon 10. Feb, 2003 21:55
Location: Belgium

Postby lullabytes on Mon 11. Aug, 2003 19:54

Kooky, sorry don't think I stated the question about Moderators clearly enough. To confirm, yes we have Moderators - moderator privileges have been assigned to a number of individuals.

However when I look at the "User Permissions Control" panel, at the top of the screen is a drop down box, which permits admin to set the "user level" for each member as either "User" or "Administrator". I wondered if there was supposed to be a "Moderator" choice here as well? And if so how would this be added. If there isn't supposed to be more choices for user levels than the 2: user and admistrator, its a non issue.

So we have moderators assigned who do not see a "Moderator Panel" link at the bottom of their pages ...and I'm lost as to what needs to be done as I had completed the mod installation as per the instructions.
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Postby kooky on Mon 11. Aug, 2003 20:44

first be sure that these users have the moderator permissions
to give them these rights, you have to set them into users permissions (or group permissions)
if you only give us the rank status as moderator, that will not work

lullabytes wrote:However when I look at the "User Permissions Control" panel, at the top of the screen is a drop down box, which permits admin to set the "user level" for each member as either "User" or "Administrator". I wondered if there was supposed to be a "Moderator" choice here as well? And if so how would this be added. If there isn't supposed to be more choices for user levels than the 2: user and admistrator, its a non issue.

no into the drop down menu there is only 2 choices user or admin
but below you can set who is moderator of which forum, after this user will see the modcp link

lullabytes wrote:So we have moderators assigned who do not see a "Moderator Panel" link at the bottom of their pages ...and I'm lost as to what needs to be done as I had completed the mod installation as per the instructions.

Maybe a problem with their navigator ? check their permissions !!!
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby lullabytes on Mon 11. Aug, 2003 22:08

I have checked & rechecked their individual user permissions Kooky and all looks fine. But none of them (and there are 4 different ones) get the Moderator Panel link on their pages. I had the other administrator change my level from admin to user and set me up as a moderator, and I didn't see it either.

If you think of anything else I should look at, please let me know. Or if there is a file you would like to see ..... Thank you again for your assistance.
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Next

Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron