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
User Posts
Nothing found.

Go to Profile

[url="http://www.torrenttrader.org/index.php?showtopic=9132&hl=super"]http://www.torrenttrader.org/index.php?sho...32&hl=super[/url]

english version with extra features! and a super mod cp as well!
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:
HACKER ALERT — 2008-08-07 22:06:34 in General Chat
thnx cursed will be on look out!
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]
if you add the loggedin only bit it always reloaded the site in the frame so i decide this would be easier than having the site reload in the frame.

as its lamost the same code as browse torrents bit on the homepage
to make it show other blocks are only visible to members after you see

begin_block etc

just add

if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>You Are Not Logged In<br>Only Members Can View The ShoutBox Please Login or Signup.</CENTER><BR><BR>";

} else {





then before end_block

add

}
by modding my other mod for a friends list i have managed to amke a affiliates version which looks like below





add via php my admin

CREATE TABLE IF NOT EXISTS `Affil2` (

 `url` text NOT NULL,

 `name` text NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Dumping data for table `Affil2`

--



INSERT INTO `Affil2` (`url`, `name`) VALUES

('"http://piratescove.uni.cc/"', '"http://img154.imageshack.us/img154/6661/nblogozh6.jpg"'),







first

create addaffil2.php






<?



require_once("backend/functions.php");

dbconn(false);

if (!$CURUSER || $CURUSER["class"]<"6"){

show_error_msg("Error","Sorry you do not have the rights to access this page!");

}



stdhead("Add Affiliate");

?>



<FORM NAME="fa" ACTION="addafilpst.php" METHOD="POST">

Please make sure there are quotes around the url<br>



<B>Image URL:</B> <INPUT TYPE="text" NAME="name" SIZE=40><br>

<B>Site URL: </B> <INPUT TYPE="text" NAME="url" VALUE="URL HERE IN QUOTES" SIZE=40><br>

<P><INPUT TYPE="submit" VALUE="Add Link"></P>

</FORM>

---<a href="http://piratescove.uni.cc">Code By Tengo @ Pirates Cove</a> ---

<?



?>





then create addafilpst.php





<?php

require_once("backend/functions.php");

dbconn(false);

stdhead("Add Affiliate");



if ($_SERVER['REQUEST_METHOD'] == "POST") {



// the following 4 lines are needed if your server has register_globals set to Off

$name = $_POST['name'];

$url = $_POST['url'];



$SQL = " INSERT INTO Affil2 ";

$SQL = $SQL . " ( name, url) VALUES ";

$SQL = $SQL . " ('$name','$url') ";

$result = mysql_query($SQL);



if (!$result) {

echo("ERROR: " . mysql_error() . "\n$SQL\n"); }



echo ("New Link Added\n");



}

?>





upload thoose to your root directory



then create

afil2_block.php (upload with block manger in admincp)





<?	

begin_block(" Affiliates ");

?>

<marquee onMouseover="this.scrollAmount=2" onMouseout="this.scrollAmount=6">

<?

$query = mysql_query ("SELECT * From Affil2");

while($row = mysql_fetch_array($query))



{

$url = $row['url'];

$name = $row['name'];

echo "<a href=",$row['url'],"><img border=0 WIDTH=200 HEIGHT=100  src=",$row['name'],"/> </a>";

}



end_block();

?>





add in admin cp



<td align="center"><a href=addaffil2.php><img src="images/admin/rules.gif" border=0 width=32 height=32><br>Affiliates<br>Bottom</a><BR></td>









if you would like it to be viewed at the bottom of your apge and not the top:

in index.php

find

stdfoot();[/code



and add above it

[code]

include ('blocks/afil2_block.php');
in index.php

find

if ($site_config['SHOUTBOX']){

begin_frame("Shoutbox");
then add under it


if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>You Are Not Logged In<br>Only Members Can View The ShoutBox Please Login or Signup.</CENTER><BR><BR>";

} else {





then before



end_frame





add



}



Simple and works!
first post updated with no need to fill in mysql, a new marquee function and no need to add html via the addafil!
thnx for the updated coed everytime i tried it with require_oince i got an error so i did it like that, and also i have no idea how to do php coding or mysql i was learning as i went and for a first tikme coder and for my first project i though i did quiet well!
ok this script will allow you to add a list of sites to a block via admin cp it will look like below



Add via PHPMYADMIN

CREATE TABLE IF NOT EXISTS `affil` (

 `Url` text NOT NULL,

 `name` text NOT NULL,

 `who` text NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Dumping data for table `affil`

--



INSERT INTO `affil` (`Url`, `name`, `who`) VALUES

('<a href="http://piratescove.uni.cc">', 'Pirates Cove', 'Friendly Site'),
createa file called affilad.php


<?



require_once("backend/functions.php");

dbconn(false);

stdhead("Add Affiliate");

?>



<FORM NAME="fa" ACTION="as.php" METHOD="POST">

<B>Description: </B> <INPUT TYPE="text" NAME="who" SIZE=40 value="Friendly Site!"> <br>

<B>Site Name:</B> <INPUT TYPE="text" NAME="name" SIZE=40><br>Please make sure there are quotes around the url<br>

<B>Site URL: </B> <INPUT TYPE="text" NAME="url" VALUE="URL HERE IN QUOTES" SIZE=40><br>

<P><INPUT TYPE="submit" VALUE="Add Link"></P>

</FORM>

---<a href="http://piratescove.uni.cc">Code By Tengo @ Pirates Cove</a> ---

<?



?>





then createa file called as.php



<?php

require_once("backend/functions.php");

dbconn(false);

stdhead("Add Affiliate");



if ($_SERVER['REQUEST_METHOD'] == "POST") {



// the following 4 lines are needed if your server has register_globals set to Off

$who = $_POST['who'];

$name = $_POST['name'];

$url = $_POST['url'];



$SQL = " INSERT INTO affil ";

$SQL = $SQL . " (who, name, Url) VALUES ";

$SQL = $SQL . " ('$who', '$name','$url') ";

$result = mysql_query($SQL);



if (!$result) {

echo("ERROR: " . mysql_error() . "\n$SQL\n"); }



echo ("New Link Added\n");



}

?>







upload both of thoose files to your root directory!



thn createa file calledFriends_block.php (the name isnt important as long as it has _block.php at the end!



<?	

begin_block(" Friends ");

?>

<marquee direction=up scrollamount=2 loop=infinite>

<?

$query = mysql_query ("SELECT * From affil");

while($row = mysql_fetch_array($query))

{

$url = $row['Url'];

$description = $row['who'];

$name = $row['name'];

echo "<center> <br><a href=",$row['Url'],">",$row['name']," </a> <br> ",$row['who'];

}

end_block();

?>







upload that via blocks in admin cp!





in admincp.php add:



<td align="center"><a href=affilad.php><img src="images/admin/rules.gif" border=0 width=32 height=32><br>Affiliates</a><BR></td>



and that is it! goto your admincp press affiliates ad add them!

any problems please write here il b happy to help!
worked like a charm as just what i was looking for thnx
okie i have codeed a link to make it work as a hyperlink  :mellow:  however will only she as

invited by: 8

as in invited by user number 8 and 8 is a hyperlink :o
i have tried it i no how to do hyperlinks but i couldnt get it to work  :mellow:  i tried your way and got this error

Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/pirateco/public_html/account-details.php on line 254

lol
ok ive been working on this it works fine on my site, this is my first mod so please be nice!

this will show a link like this





Open account-details.php

and find

http://yoursite.comaccount-details.php?id=99
which will take you to the person who invited them!

$modcomment = htmlspecialchars($user["modcomment"]);



and Underadd



$invited_by = $user["invited_by"];





then find



print("<tr><td>Invites</td><td align=left><input type=text size=4 name=invites value=".$user["invites"]."></tr>\n");





and Under it add



print("<tr><td>Invited By</td><td><a href=account-details.php?id=".$user["invited_by"].">".$user["invited_by"]."</a></td></tr>");



and thats it!

hope this is used by someone and if anyone knows how to mkae it display the username with hyperlink plesae post it here! this is the best i could do with my very limited knowledge!

thnx Tengo

btw the sql should already be in the database if not let me no and il try and work it out :mellow:
to remove the border around the image

after

WIDTH=150



add



 border='0'



so the code looks like this



<img src='blocks/forum.png' WIDTH=150 border='0'>
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728