Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Moderator Cp & a Super Moderator C
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-07-29 08:57:15
ok this will produce a seprate mod cp and a super mod cp admins can veiw them all! supermods can use mod one if they no where to look.

mod cp contains:

Dectect possible cheaters

peers

warned users

whos where

torrents

news archive

top 10

server load

add users

unactivated accounts

clear shoutbox

reports

modocp contains all of the above and:

email bans

free leech torrents

latest comments

mass pm

word censor

upload modcp.php and modocp.php to your root directory

goto themes/yourtheme/headers.php

find

print("[<a href=admincp.php>" . STAFFCP . "</a>] &nbsp;&nbsp;");}
add after it


if($CURUSER["level"]=="Super Moderator") {print("[<a href=modocp.php>Super Mod Cp</a>] ");}

if($CURUSER["level"]=="Moderator") {print("[<a href=modcp.php>Mod Cp</a>] ");}





goto login_block.php

find



<? if ($CURUSER["control_panel"]=="yes") {print("<a href=admincp.php>" . STAFFCP . "</a>");}?>





then add after it



<? if($CURUSER["level"]=="Super Moderator") {print("<a href=modocp.php>Super Mod Cp</a>");}?>

<? if($CURUSER["level"]=="Moderator") {print("<a href=modcp.php>Mod Cp</a>");}?>




should work perfect!

enjoy!!!!!!!!!!!!!!

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2687"]modcp.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2688"]modocp.php[/url]
modcp.php
Download
modocp.php
Download
Unknown User
2008-08-09 19:46:51
I tried it and the only thing that I have to say is that the Supermod file has too much options. It gives them access to admin's control panel and their own. They have more access than the own admin, which is not good at all!
Unknown User
2008-08-09 20:01:49
it shudnt give access to admins cp unless youve allowed them to.

if you talking about some of the extra features not being in admincp then you can easily remove them from there cp and put them in admin instead but theres nothing there that i dont trust my staff with fully :blink:
Unknown User
2008-08-21 06:25:06
Fantastic just what i was looking for!!!
Unknown User
2008-10-08 16:47:43
big problem...

my supermod can't send masspm:

error: "Sorry you do not have the rights to access this page!"

help?
Unknown User
2008-10-08 17:46:45
work thanks

[url="http://france-partages.com"]Visit My Website[/url]
Unknown User
2008-10-12 23:31:32
Thank you for the job....

Many thanks ;)
Unknown User
2008-10-13 07:07:36
for work fine, i have replace any "admincp.php" with "modocp.php"

in modocp.php
Unknown User
2008-10-18 12:36:25
very good idea, it works perfectly. great job ;)
Unknown User
2008-10-18 13:18:52
"gandalf76, post: 47205":
big problem...my supermod can't send masspm:

error: "Sorry you do not have the rights to access this page!"

help?

u need to add this in mod cp

if ($action=="masspm"){

stdhead("Mass Private Message");

navmenu();





//send pm

if ($_GET["send"] == '1'){



$sender_id = ($_POST['sender'] == 'system' ? 0 : $CURUSER['id']);



$dt = sqlesc(get_date_time());

$msg = $_POST['msg'];



if (!$msg)

show_error_msg("Error","Please Enter Something!",1);



$updateset = $_POST['clases'];



$query = mysql_query("SELECT id FROM users WHERE class IN (".implode(",", $updateset).")");

while($dat=mysql_fetch_assoc($query)){

mysql_query("INSERT INTO messages (sender, receiver, added, msg) VALUES ($sender_id, $dat[id], '" . get_date_time() . "', " . sqlesc($msg) .")");

}



write_log("A Mass PM was sent by ($CURUSER[username])");

show_error_msg("Complete", "Mass PM Sent",1);

die;

}



begin_frame("Mass Private Message");

print("<table border=0 cellspacing=0 cellpadding=5 align=center width=90%>\n");

print("<form method=post action=admincp.php?action=masspm&send=1>\n");

print("<B>Send to:</B><BR>\n");



$query = "SELECT group_id, level FROM groups";

$res = mysql_query($query);



while ($row = mysql_fetch_array($res)){

extract ($row);



echo "<input type=checkbox name=clases[] value=$row[group_id]> $row[level]<BR>\n";

}
Unknown User
2008-10-19 20:16:55
ok solved.

thanx!
Unknown User
2008-11-16 15:05:23
Not Found

The requested URL /stats.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

in

Torrents Status

help

plizzzzzzz :D
Unknown User
2008-11-24 10:27:41
soz havent been aorund for a while thnx foz for giving them advice

bs hacker the reason for that is you dont ahcve stats.php uploader which is another mod that will be found on here i dont have a link i afraid as i said i havent been around for a long while.

thnx
Unknown User
2008-12-15 21:53:31
personaly I prefer use the class ID i thin is better for who have changed the names of the moderator and super moderator

this code works  :D

in login_block.php use this

<? if($CURUSER["class"]=="6") {print("<a href=modocp.php>Super Mod Cp</a>");}?><br>

<? if($CURUSER["class"]=="5") {print("<a href=modcp.php>Mod Cp</a>");}?>
in header.php use this


if($CURUSER["class"]=="6") {print("[<a href=modocp.php>Super Mod Cp</a>] ");}

if($CURUSER["class"]=="5") {print("[<a href=modcp.php>Mod Cp</a>] ");}






ps if my code is incorrect answer me (im a newbie in php and in english)
Unknown User
2008-12-30 05:04:05
Hello

I get

Fatal error: Call to undefined function get_ratio_color() in /home/datbasename/public_html/modocp.php on line 549

on modocp.php when I try to see top 10

It shows doantors and how many uploaded torrents top 10 uploaders have done but then the scrolling stops.

Any help would apricihiated.

Im looking in the script now to see what it could be but no php expert Im afraid...

Thx in advance!

Edit:

I realized that it had to do with the ratio colour, so I guess I havnt instalkled that plugin/mod.

By simply deleting the lines that gave me the error I was able to get the stats to work fully.

Thx anyways.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728