 | [Solved] Another Question/Problem (not urgent :) ) |  |
Posted: 05/22/2007 12:58 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:46 PM
|

|
|
|
|
 |
My mods no longer have the Mod control panel at the bottom of their pages. Its still in the ACP etc so I'm not sure where to check. Its only been noticed since the hosting change but that's not to say it happened after it.
Any ideas??  |
|
Last edited by Karen on 05/24/2007 3:17 AM; edited 1 time in total |
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/22/2007 4:17 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
Something must have happened with your page_tail.php file. The MOD code was not installed in it. So I imagine that you might have accidentally uploaded an older pre-Mod Control Panel version of the file. IOW, since the page_tail.php file was the only phpBB file modified by the MOD, the Moderator Control Panel MOD was not installed on your forum. It is working now for everyone with a 2 user_level setting. If you want those assigned with the 3 user_level to also have access, which would be lovingmommies and OweirdO, the code will have to be modified a bit more...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 12:36 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:46 PM
|

|
|
|
|
 |
Ooh OK
I want it for all my mods but some of them are users in a Mode usergroup so would they have it too? (I get so confused working that out
Do I find the mod and add that bit of missing code then or is it more complicated?
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 12:45 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
I'm really not sure what you mean. This is what we had to do to get it to work for all his moderators and support on AB's board...
OPEN
includes/page_tail.php
FIND
| Code:
|
|
( $userdata['user_level'] == MOD )
|
IN-LINE FIND
| Code:
|
|
( $userdata['user_level'] == MOD )
|
IN-LINE AFTER, ADD
| Code:
|
|
|| ( $userdata['user_level'] == MAIN_MOD ) || ( $userdata['user_level'] == SUPPORT )
|
So it would look like this when done:
| 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 ) || ( $userdata['user_level'] == MAIN_MOD ) || ( $userdata['user_level'] == SUPPORT ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '' );
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 12:53 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:46 PM
|

|
|
|
|
 |
Great thanks I'll try that
I wanted them to have access to different things so instead of making them mods I made a usergroup which had mod permissions so I could choose which bits they were mods in, but it doesn't really matter now they can all be the same  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 12:59 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:46 PM
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 1:03 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, you do. It's on about line 31 that starts like this:
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 1:10 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, the code is different now. Did you install another version of the MOD? I had installed the code for the Moderator Control Panel version 1.0.5 yesterday, but now the code is different...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 1:15 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:46 PM
|

|
|
|
|
 |
I can't see it.
All I can see is
| Code:
|
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : ((in_array($userdata['user_level'], explode(',', $board_config['modcp_levels_used']))) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '');
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Another Question/Problem (not urgent :) ) |  |
Posted: 05/23/2007 1:21 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, this part:
| Code:
|
|
(in_array($userdata['user_level'], explode(',', $board_config['modcp_levels_used']))
|
Is doing the same thing that I did with this:
| Code:
|
|
( $userdata['user_level'] == MOD ) || ( $userdata['user_level'] == MAIN_MOD ) || ( $userdata['user_level'] == SUPPORT )
|
I don't know where your code came from because it doesn't match the code that I added to the file yesterday. My code came from Kooky's Moderator CP version 1.0.5...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|