ALTER TABLE `shoutbox` ADD `room` int(10) unsigned NOT NULL DEFAULT 0;
css in your(s) theme(s) ccs file
.bb_icon, .bb_icon:hover {
background:#999999;
border:1px solid #666666;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding:1px;
min-width:16px;
cursor:pointer;
}
.bb_icon:hover {
border: 1px solid #dddddd;
}



#-----------------------------------------------
# DEDUCT
#-----------------------------------------------
if($_POST['gig2'])
{
if ( !is_numeric($_POST['class']))
{
$res = SQL_Query_exec("SELECT id, uploaded FROM users");
$arr1[0] = T_("ALL1");
}
else
{
$res = SQL_Query_exec("SELECT id, uploaded FROM users WHERE class=".$_POST['class']." AND status = 'confirmed'");
$res1 = SQL_Query_exec("SELECT level FROM groups WHERE group_id=".$_POST['class']."");
$arr1 = mysql_fetch_row($res1);
}
$sender = ( $_POST["fromsystem"] == "yes" ) ? "0" : $CURUSER["id"];
$subject = T_("SUBJECT_DED");
$msg = sprintf( T_("MSG_DED"), $_POST['gig2'], $arr1[0]);
while($arr = mysql_fetch_row($res))
{
$gig = strtobytes($_POST['gig2']);
$gig2 = ( $arr[1] < $gig ) ? $arr[1] : $gig;
if ( !is_numeric($_POST['class']))
{
SQL_Query_exec("UPDATE users SET uploaded = uploaded - ".$gig2." WHERE status = 'confirmed'");
}
else
{
SQL_Query_exec("UPDATE users SET uploaded = uploaded - ".$gig2." WHERE class=".$_POST['class']." AND status = 'confirmed'");
}
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg, poster) VALUES ($sender, $arr[0], '".get_date_time()."', ".sqlesc($subject).", ".sqlesc($msg).", $sender)");
}
write_log( sprintf(T_("UP_DEDUCTED"), class_user($CURUSER["username"]), $_POST['gig2'], htmlspecialchars($arr1[0])) );
autolink("upload-bonus.php", T_("UP_UPDATED"));
}
"Mythos, post: 88703":no needed fix this code is ok, it will send to userid=1is easy someone to fix this to receive pm when somebody click the report?i dont know what change to doing
'.date('j',$gettime).' d.
for
'.$day[date('j',$gettime)-1].'
and add
$day = array(''.T_("SUN").'', ''.T_("MON").'', ''.T_("TUE").'', ''.T_("WED").'', ''.T_("THU").'', ''.T_("FRI").'', ''.T_("SAT").'');
"Mythos, post: 88607":add this to promote pu to upper classdo you have for more ranks?
$gigs2 = add here uploaded minimum to be promote
$ratio = add here ratio minimum to be promote
$res = SQL_Query_exec("SELECT id FROM users WHERE class = '2' AND warned = 'no' AND uploaded >= $gigs2 AND (uploaded / downloaded) >= $ratio");
while ($arr = mysql_fetch_assoc($res)) :
SQL_Query_exec("UPDATE users SET class = '3' WHERE id = $arr[id]");
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Vous avez été promu Membre Elite, si votre ratio devient inférieur à 1.00, vous serez rétrogradé.', 'Vous avez été promu : Membre Elite')");
endwhile;
//OPTIMIZE TABLES
above add
//AUTO PROMOTE/DEMOTE
$gigs = 100*1073741824; // 100 GB
$delai = 28*86400; // 28 days
$date = get_date_time(gmtime() - $delai);
$time = get_date_time();
//Promote
$res = SQL_Query_exec("SELECT id FROM users WHERE class = '1' AND warned = 'no' AND added < '$date' AND uploaded >= $gigs AND (uploaded / downloaded) >= '1.0'");
while ($arr = mysql_fetch_assoc($res)) :
SQL_Query_exec("UPDATE users SET class = '2' WHERE id = $arr[id]");
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Vous avez été promu Membre Elite, si votre ratio devient inférieur à 1.00, vous serez rétrogradé.', 'Vous avez été promu : Membre Elite')");
endwhile;
//Demote
$ret = SQL_Query_exec("SELECT id FROM users WHERE class = '2' AND uploaded >= $gigs AND (uploaded / downloaded) < '1.0'");
while ($art = mysql_fetch_assoc($ret)) :
SQL_Query_exec("UPDATE users SET class = 1 WHERE id = $art[id]");
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $art[id], '$time', 'Vous avez été rétrogradé Membre car votre ratio est inférieur à 1.0.', 'Vous avez été rétrogradé : Membre')");
endwhile;
// END AUTO PROMOTE/DEMOTE
ALTER TABLE users ADD `commentbanned` CHAR(3) NOT NULL DEFAULT 'no' AFTER `forumbanned`;
account-details.php
find
$forumbanned = $user["forumbanned"] == 'yes';
add after
$commentbanned = $user["commentbanned"] == 'yes';
find
print("<tr><td>".T_("FORUM_BANNED").": </td><td align='left'><input name='forumbanned' value='yes' type='radio' " . ($forumbanned ? " checked='checked'" : "") . " />Yes <input name='forumbanned' value='no' type='radio' " . (!$forumbanned ? " checked='checked'" : "") . " />No</td></tr>\n");
add after
print("<tr><td>Comments Banned: </td><td align='left'><input name='commentbanned' value='yes' type='radio' " . ($commentbanned ? " checked='checked'" : "") . ">Yes <input name='commentbanned' value='no' type='radio' " . (!$commentbanned ? " checked='checked'" : "") . " />No</td></tr>\n");
admin-modtasks.php
find
$forumbanned = sqlesc($_POST["forumbanned"]);
add after
$commentbanned = sqlesc($_POST["commentbanned"]);
find in the big query
forumbanned=$forumbanned,
change for
forumbanned=$forumbanned, commentbanned=$commentbanned,
comments.php
find
begin_frame(T_("COMMENTS"));
change for
if($CURUSER["commentbanned"]=="yes")
show_error_msg("Error","You was banned to use comments.<br />Contact Staff!",0);
else
{
begin_frame(T_("COMMENTS"));
find
end_frame();
stdfoot();
change for
end_frame();
}
stdfoot();
torrents-details.php
find
begin_frame(T_("COMMENTS"));
change for
if($CURUSER["commentbanned"]=="yes")
show_error_msg("Error","You was banned to use comments.<br />Contact Staff!",0);
else
{
begin_frame(T_("COMMENTS"));
find
end_frame();
stdfoot();
change for
end_frame();
}
stdfoot();
<div class='wrapper'>
add above
<a name='top'></a>
footer.php
find
<!-- START FOOTER CODE -->
add above
<center><a href="#top"><b>Top</b></a></center>
"ArcticWolf, post: 88381":where can i find this code ?.................. the original tbdev was ugly but it showed an true tree and not just the people someone invited.