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

Go to Profile

ereg is deprecated use preg_match instead.
Client ban mod — 2010-06-08 14:56:18 in v2 Only Mods Complete
ok here u go change to this in the class.

if ($agent["aktiv"] == 0) {

exit(err("This client is Banned did you read the FAQ!"));



}

}

else $this->insert();

}

else exit(err("Whats that one? n00b :D"));



}


Client ban mod — 2010-06-08 13:57:35 in v2 Only Mods Complete
"sammysung, post: 63748":
you can stop bittorrent clients from downloading with this hack, the end user has "tracker sending invalid data" error in their client, effectively stopping them from downloading.
What i want to know is if it can be set up to send a simple message to the client, something like "banned" or something like that.

im going to look at it.
First post updated with star and warned in the same function if u added star to torrents remove that part :blink:
Its in functions the torrent table function after these lines..

if (($row["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $row["owner"] && $CURUSER["edit_torrents"] != "yes")

echo "Anonymous";

elseif ($row["username"])
"lesstefs79, post: 63496":
fonctionne a merveille tr
Ok I have seen that users have been using the sql calls in alot of files just to collect class colors and when they have to change something it means having to go through all the different files to add new classes into it so it matches. So i made a function from the code you have all been using so it can be called from any file then theres only functions.php to change anytime u add something new.

Updated with star and warned icon!

In functions.php add... note to change to match your current classes

:blink:





more examples login block....

function class_user($name)

{

global $site_config;

$a ="SELECT class, donated, warned FROM `users` WHERE username ='".$name."'";

$res = mysql_query($a);

$classy = @mysql_fetch_row($res);

switch ($classy[0]) {

case 8: // SYS:

$col = "#15CFCD";

break;

case 7: // ADMINISTRATORSYS:

$col = "#ff0000";

break;

case 6: // Administrator

$col = "teal";

break;

case 5: // Super Moderator

$col = "#3300CC";

break;

case 4: // Moderator

$col = "#006600";

break;

case 3: // VIP

$col = "#FFFF00";

break;

case 2: // Uploader

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config[SITEURL]."/images/star.gif' alt='donated' border='0'>";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config[SITEURL]."/images/warn.gif' alt='warned' border=0>";

}else{

$warn="";

}



return unesc("<font color='".$col."'>".$name."".$star."".$warn."</font>");

 

}
Now all you need to do is for any "username" code for example  $row['user'] in shoutbox would now be




'.class_user($row['user']).'





or





".class_user($row['user'])."







depending on whether ' or " starts the echo or print

begin_block("".class_user($CURUSER[username])."");







torrenttable....





echo "<a href='account-details.php?id=$row[owner]'>".class_user($row[username])."</a>";



"SJC2TK, post: 63460":
i would love this also , but same for me , it don't work  :blink:
it may need js before another or something silly like that , will play with it and post results

It is actually working just some codes breaking it in index file so the solution...

open up functions.php and search..

function stdfoot() {

global $site_config, $CURUSER, $THEME, $LANGUAGE;
add after...




echo '<script type="text/javascript" src="'.$site_config["SITEURL"].'/backend/glossy.js"></script>';



and change backend to your glossy path ;)
"XxBeliaLxX, post: 63246":





if ($row["freeleech"] == 1) {

$free = "<img src='/images/579_free.png' / border=0>";

}else{

$free="no";

}

print("<td class=ttable_col2 align=center>".$free."</td>\n");
"gandalf76, post: 53702":
yes... this is my actualy config.php:i have added " bookmark, "

$site_config["torrenttable_columns"] = "category,name,uploader,comments,size,seeders,leechers,completed,health,exter

nal,bookmark";


Try this functions m8 and copy tick.gif to images.

Edit: lol azuris well atleast one will work.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3520"]functions.zip[/url]
Nikkbu — 2008-12-24 20:01:15 in General Chat
same here have a great day m8 :D
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