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 !

Postby kooky on Mon 11. Aug, 2003 23:08

very strange :?
if you follow the How to:
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 />' : '');

that should work

the archive contains the 2.0.3 and 2.0.4 pre-edited files into zip archive
and the 2.0.5 files into some directories
if you use them that should work

i have tested them on my test forum with phpBB 2.0.4 and 2.0.5
i assume the files work

Which template(s) do you use ?

into your file overall_footer.tpl you should have this:
Code: Select all
   {ADMIN_LINK}

it is this variable that displays the link for admin and mod
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby lullabytes on Tue 12. Aug, 2003 13:45

Well Kooky when I try warmweer's code, the Moderator Control Panel link does appear along with the Admin Panel link for those holding Administrator privileges. But sadly the Moderators themselves still do not get a link. :cry:

We use the Aeolus template exclusively & yes, I did copy the necessary tpl files into the modcp directory there.

I've checked & rechecked everything I can think of & all the things that you have suggested. We're about to give up & just give the moderators Administrator privileges & put them on the honor system to restrict their activity there. Not what we wanted to do, but at the same time unless we can delegate some admin functions to the moderators that will be our only option.
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Postby kooky on Tue 12. Aug, 2003 14:04

you should try to test this mod on subSilver to see if it works
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby warmweer on Tue 12. Aug, 2003 22:42

Well, ... I also use Aeolus and everything works fine.

lullabytes wrote:We use the Aeolus template exclusively & yes, I did copy the necessary tpl files into the modcp directory there.

I hope this was just a mistype because it's the php files which should go in the modcp directory.

Anyway from what I gather the problem is with the moderator authorisation. Look into the database and see who is a moderator (if necessary, just to try it, change somebody into a moderator (user_level =2) and find out if he can then see the link.

edit: don't give up on the modCP MOD just yet, it's a lot easier to install and adapt than the Supermod or Junior Admin mod (by which I'm not implying that they're not good, just that it's a lot easier to have mistakes with those mods). I'm sure it's something simple.

Let's recapitulate. You've got a clean forum (no mods) and then installed the Aeolus style (I hope you kept the subSilver - it makes it easier to test a mod) and now you're trying to install modcp.

BTW Moderators are set by assigning users to a group and given that group moderator right in a forum (through group permissions), or by assigning individual users moderator permissions throught the user permissions system (again on a per forum basis).

The drop down boxes with ranks are nothing more than titles but give no extra permissions.

BTW I installed modcp on 2.0.4 and it worked with the update to 2.0.5 and now also on 2.0.6
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 Tue 12. Aug, 2003 23:56

warmweer thought it would be easier to answer you point by point. Thank you for taking the time to assist me with this problem.

  1. warmweer wrote:I hope this was just a mistype because it's the php files which should go in the modcp directory.


    No it wasn't a mistype. In addition to the php files which you refer to, template files had to be put within the templates/Aeolus/modcp/ directory as well. So that was done.
  2. warmweer wrote:Anyway from what I gather the problem is with the moderator authorisation. Look into the database and see who is a moderator (if necessary, just to try it, change somebody into a moderator (user_level =2) and find out if he can then see the link.


    We are confident authorization levels are fine, as evidenced by Moderators being listed as Moderators within the forum, and they're being able to perform Moderator duties.
  3. warmweer wrote:Let's recapitulate. You've got a clean forum (no mods) and then installed the Aeolus style (I hope you kept the subSilver - it makes it easier to test a mod) and now you're trying to install modcp.


    Well actually, we have quite a number of mods installed. We've been running them with the Aeolus template for a while now. Yes we have subSilver however have not kept it current with each mod installation - seemed like a waste at the time to duplicate the work of each mod installation.
  4. warmweer wrote:BTW Moderators are set by assigning users to a group and given that group moderator right in a forum (through group permissions), or by assigning individual users moderator permissions throught the user permissions system (again on a per forum basis).


    Forgive me for chuckling, not sure why this keeps being brought up. We are very much aware of how this is done & it is not a concern or issue. What is a problem is that Moderators are not seeing the Moderator Panel link at the bottom of their forum pages. However Administrators can see both the Administration Panel and Moderator Control Panel links after I used your coding.
  5. warmweer wrote:The drop down boxes with ranks are nothing more than titles but give no extra permissions.


    Actually, I was referring to the User or Administrator choices for each forum member, which of course as we know does give extra permissions when Administrator is assigned.

    Ranks are a completely separate thing related to numbers of posts & would not affect permission issues; this is understood.

    Any other thoughts? I like you am hoping it is a simple fix and am very appreciative of your and kooky's assistance!
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Postby kooky on Wed 13. Aug, 2003 01:46

Could you try this link with your own adress forum ?

http://www.yourdomain.com/phpBB2/modcp/index.php

if this link doesn't work, your mod isn't really installed :?
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby lullabytes on Wed 13. Aug, 2003 06:42

Sorry if I seem impatient, but this seems ridiculous. Of course the link works.

As I have said, the mod is installed. How do I know for sure? Everything works fine when any Administrator clicks on the Moderator Control Panel link (which now appears along with the Administration Panel link) on the bottom of the page.

Everything is perfect with one major exception - Moderators do NOT get the link at the bottom of their forum pages, to access the Moderator Control Panel.

Yes the Moderator Control Panel is there & working; yes the Moderators have been properly assigned & given permissions.

I hope we won't keep going back over the same things time and again, but at the same time we DO appreciate your efforts :)
User avatar
lullabytes
Poster
Poster
 
Posts: 10
Joined: Fri 16. May, 2003 14:46

Postby warmweer on Wed 13. Aug, 2003 19:05

Hi lullabytes,

OK, I'll accept that you understand the moderator system (permissions) but please also grant us the benefit of the doubt when we request info which may have been asked before.

For one, unless something has drastically changed in the modcp since I installed it, not one tpl file is in de modcp directory (I've checked my installation instructions and my files). I have nothing but php files in the modcp directory. It would also seem a bit illogical to have to put the tpl files in that directory because that would imply having to do many more changes to all kinds of php files(pointing them to the right tpl files if a moderator accesses them). (I also don't have any templates/****/modcp directory :?: )

edit: OK, I see the modcp has been changed so I understand your previous message now, still it doesn't change anything to the moderator recognition problem.

Again, please have a look in the database , table _users and see if the user_level of those "moderators" = 2. If the user_level is something different they will see something different (user_level 0 will see nothing, user_level 1 will see both links). The modcp is specifically designed for user_level = 2

If you are 100% sure everything is allright then skip the next lines ;)
Check the group which you think has moderator rights and look at its permissions (in advanced mode). On the right there is a selectbox where the option IsModerator should be selected. Try changing the moderator setting and check if the data in the database has changed. (What is shown on the pages may be mistaken due to some other modifications) Just imagine that for one reason or the other there is no real moderator (no user_level=2) then there is no way the modcp will work. Why not try and give a user (make a testuser) user_level = 2 via the database and then find out if the link is seen.

Again on the moderator status, in User >> permissions there is an option to make a user administrator. Just leave that to plain user. The moderator permissions are given lower down (on a per forum basis). Kick my *ss if this is boring but just from reading this topic through again - I'm convinced that is why you have no moderators (only administrators).

Prove that there are user_level = 2 and I'll shut up ;)
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

PreviousNext

Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron