Help with ModCP.

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 !

Help with ModCP.

Postby NGLeader on Mon 12. May, 2003 07:19

Hi, I've just install modcp. Awesome Mod. :D

Now here's what I want to do:
1.) I have Moderator Ban Panel installed and would like to add it to modcp.
What file do I have to edit to add Mod Ban Panel to Mod CP, I want the link on the left menu and I want Mod Ban Panel to open in the right windows.

2.) I also would like to add my Knowledge Base Control to the modcp.

Many Thanks.

Viper
Next Generation Computers :: Technical Center
NGLeader
Poster
Poster
 
Posts: 10
Joined: Mon 12. May, 2003 07:01

Postby kooky on Mon 12. May, 2003 15:00

To add an Admin Option in the Mod CP, just upload the file from your admin dir in the modcp dir

But with the ban CP, a moderator could ban the admin :?
therefore this is a potential issue
otherwise it exists a mod on phpBB Hacks with Ban CP for moderator which deny mod to ban an admin

You can see it and try to adapt it with the mod CP

For other option, you can add the files admin_xxxx.php in the modcp,
but becareful if a Mod can change admin account or take control of the Admin CP.....

Mod CP is very easy to change
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby NGLeader on Mon 12. May, 2003 18:44

Hey, kooky.

Here's what I have so far.
I moved "mod_user_ban.php and modpagestart.inc" to Mod CP, Then I had to rename "mod_user_ban.php" to admin_user_ban.php for it to show up in Mod CP. It work but with one error.
Error: Undefined variable: setmodules in C:\httpd\HTDOCS\phpbb2\modcp\admin_user_ban.php on line 6
Line 6 is: if ($setmodules == 1)

Is there anyway to intergrate this mod with Mod CP, The Mod Ban CP I'm using will not let Moderators ban moderators or admins. this would be a great enhancement for Mod CP.

PS. How do I add Mod CP to "overall_ header.tpl"

Thanks.
NGLeader
Poster
Poster
 
Posts: 10
Joined: Mon 12. May, 2003 07:01

Postby kooky on Mon 12. May, 2003 23:17

No, this mod can not be rename in admin_user_ban

You have to add your own admin_user_ban and try to add the change from the mod

i have time to see that

To add the modcp link in overall header, you have to add the {ADMIN CP_LINK} in footer
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Intergrating Mod Ban Panel with Mod CP

Postby NGLeader on Tue 13. May, 2003 16:08

Hey, kooky.

I did it. :lol:
I've intergrated 'mod ban panel with your mod cp'.
Nothing is impossible. If you want me to post the codes send me a pm.

Now I'll delete the Ban Panel link and add your Mod CP link for my moderators.
NGLeader
Poster
Poster
 
Posts: 10
Joined: Mon 12. May, 2003 07:01

Mod CP Link

Postby NGLeader on Tue 13. May, 2003 16:48

HELP. :cry:

I need the correct way to add the link in over_header.tpl.
Right now I'm using this:
Code: Select all
<a href="modcp/index.php?sid=b74e82fc653167a8c4c552f47e2983b2" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="Mod CP" hspace="3" />Mod Panel</a>

How do I link with out adding the Session ID.

Please, Please and Pretty Please. :D
NGLeader
Poster
Poster
 
Posts: 10
Joined: Mon 12. May, 2003 07:01

Postby kooky on Thu 15. May, 2003 01:50

It 's not a good choice to show this link to guests or simple users :?

You should add a swith for moderators
Code: Select all
<!-- BEGIN switch_user_is_moderator -->
<!-- END switch_user_is_moderator -->


and to remove the session id, just remove the line from ?sid........ to the end

like this
Code: Select all
<a href="modcp/index.php" title="Mod CP"><img scr="..........>
:)
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby NGLeader on Thu 15. May, 2003 08:40

That's not working, this is what shows up in the address bar.
Code: Select all
http://nextgen.tzo.net/phpbb2/?sid=
and I get a blank page.
NGLeader
Poster
Poster
 
Posts: 10
Joined: Mon 12. May, 2003 07:01

Next

Return to Moderator CP [2.0.17/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron