Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Moderator CP MOD
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Moderator CP MOD
PostPosted: 04/24/2007 3:49 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:56 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Hi  wave

I just installed the Moderator CP MOD which is quite good for my moderators. They can now operation many things. The funniest thing and bad in this MOD is that only moderators can see this Moderator CP panel link at the bottom of forum page whereas support team, Main Moderator cannot see it! In MOD it says that the admin won't see the link. I tried my other ID to make it moderator than i can see the mod cp link at the bottom of forum but If i make myself Main MOD and gives the permission of any particular section to be the Moderator than I cannot see the link.

So is it possible that my Main Moderator can at least see and operate the MOD CP because he should have more authority than my normal moderators Very Happy
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] Moderator CP MOD
PostPosted: 04/24/2007 3:51 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:56 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
If you want I can attach the MOD also but the MOD is already installed and working perfectly with normal moderators but not with Main MOD or Support team + Moderator Very Happy
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Moderator CP MOD
PostPosted: 04/24/2007 2:25 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:56 AM
Location: St Pete, FL
peace.gif
If you want the Support and Main MOD to be able to see the ModCP link as well as make it available to Admins too, you can modify the code that was added to the includes/page_tail.php file to do this.  This is what you can do:

OPEN
includes/page_tail.php

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

REPLACE WITH
Code:
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a> : <a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</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 />' : '' );

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Moderator CP MOD
PostPosted: 04/24/2007 4:21 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:56 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Wowww. This works. My Main MOD will be v.happy to see it. This is really great NR  banana  banana  banana  banana  banana  banana
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Moderator CP MOD
PostPosted: 04/24/2007 5:01 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:56 AM
Location: St Pete, FL
peace.gif
Great news.  I'm glad it worked...

banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Moderator CP MOD
PostPosted: 04/24/2007 9:35 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:56 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
It worked in a sense that my Main MOD says that now he can see Moderator Control Panel at the bottom of the page and when he clicks that link, the next page says "You are not authorised to administer this board"

Any way to make him authorize like normal moderators  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Moderator CP MOD
PostPosted: 04/25/2007 12:44 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:56 AM
Location: St Pete, FL
peace.gif
Yes, you can correct that by making the following adjustment in the code:

OPEN
modcp/pagestart.php

FIND
Code:
else if ( $userdata['user_level'] != MOD && $userdata['user_level'] != ADMIN )

REPLACE WITH
Code:
else if ( $userdata['user_level'] != MOD && $userdata['user_level'] != ADMIN && $userdata['user_level'] != MAIN_MOD && $userdata['user_level'] != SUPPORT )

I'm assuming that you want to allow the Support and Main MOD access here...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Moderator CP MOD
PostPosted: 04/25/2007 5:45 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:56 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Yeah, I want to allow to MAIN MOD as well as Support team member. Hope it will work so once my Main MOD will reply, I will tell you what happens next Wink
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Moderator CP MOD
PostPosted: 04/25/2007 1:39 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:56 AM
Location: St Pete, FL
peace.gif
So have you heard from your Main mod yet???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Moderator CP MOD
PostPosted: 04/25/2007 2:17 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:56 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Yahooooooooo  banana  banana  banana  My MAIN MOD said its working perfectly. Thanks a lot brother  Dancing  Dancing  Dancing
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0812s (PHP: 55% - SQL: 45%) - SQL queries: 57 - GZIP disabled - Debug on