I restarted like 5 times.. not sure which was the best way to do this every time... So I ended up doing mods separately. This means, it looks more complex than it really is as you really only have to apply 1/3 of the code below!
This mod adds a start for VIP users, AND/OR donators. Codes are posted separately at first, then both applied. Meaning that you have a separate mod where VIP users get the star, one where donators get the star, and one where both get the star, so read carefully and don't just copy/paste the code blindly!
If you want to use it for DONATORS only, follow ONLY the text between the blue tags!
If you want to use it for VIPs only, follow ONLY the text between the green tags!
If you want to use it for BOTH, follow ONLY the text between the orange tags!
Let's start with the comments (this is both for torrent comments and news comments):
============================================
This is to add a star for DONATORS!
============================================
in functions.php find:
find:
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
replace with:
if ($row["donated"] > 0) { $donated = "<img src=images/star.gif border=0>";
} else {
$donated = "";
}
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername $donated</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
Then, just under that:
} else {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
replace with:
}else {
print("<tr><td valign=top width=150 align=left
class=table_col2><center><b>$postername $donated</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
============================================
============================================
This is to add a star for VIPs!
============================================
find:
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
replace with:
if ($row["class"] == 3) { $vip = "<img src=images/star.gif border=0>";
} else {
$vip = "";
}
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername $vip</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
Then, just under that:
} else {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
replace with:
} else {
print("<tr><td valign=top width=150 align=left
class=table_col2><center><b>$postername $vip</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
============================================
============================================
This is if you want to add it for both!
============================================
find:
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
replace with:
if ($row["class"] == 3 || $row["donated"] > 0) {
if ($site_config["donatedstar"] || $site_config["vipstar"]) {
$star = "<img src=images/star.gif border=0>";
} else {
$star = "";
}
}
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername $star</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
Then, just under that:
} else {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
replace with:
} else {
print("<tr><td valign=top width=150 align=left
class=table_col2><center><b>$postername $star</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
============================================
And that's it for the torrent comments!
Now for the blocks...
Online users block:
in onlineusers_block.php
============================================
This is if you want to add it for DONATORS!
============================================
find:
$usersonlinequery = mysql_query("SELECT id, username, class FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
replace with:
$usersonlinequery = mysql_query("SELECT id, username, class, donated FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
find:
replace with:
if ($user["donated"] > 0) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>$star, ");
============================================
============================================
This is if you want to add it for VIPs!
============================================
find:
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>, ");
replace with:
if ($user["class"] == 3) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>$star, ");
============================================
============================================
This is if you want to add it for BOTH!
============================================
find:
$usersonlinequery = mysql_query("SELECT id, username, class FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
replace with:
$usersonlinequery = mysql_query("SELECT id, username, class, donated FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
find:
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>, ");
replace with:
if ($user["class"] == 3 || $user["donated"] > 0) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>$star, ");
============================================
And that's it for the users online block!
Now for the blocks...
Login block:
in login_block.php
============================================
This is if you want to add it for DONATORS!
============================================
find:
begin_block("$CURUSER[username]");
replace with:
if ($CURUSER["donated"] > 0) {
$star = " l<img src=images/star.gif border=0>";
} else {
$star = "";
}
begin_block("".$CURUSER[username]."$star");
============================================
============================================
This is if you want to add it for VIPs!
============================================
find:
begin_block("$CURUSER[username]");
replace with:
if (get_user_class($CURUSER) == "3") {
$star = " l<img src=images/star.gif border=0>";
} else {
$star = "";
}
begin_block("".$CURUSER[username]."$star");
============================================
============================================
This is if you want to add it for BOTH!
============================================
find:
begin_block("$CURUSER[username]");
replace with:
if (get_user_class($CURUSER) == "3" || $CURUSER["donated"] > 0) {
$star = " l<img src=images/star.gif border=0>";
} else {
$star = "";
}
begin_block("".$CURUSER[username]."$star");
============================================
That's it for the blocks....
Now the shoutbox!
in shoutbox.php
============================================
This is if you want to add it for DONATORS!
============================================
find:
$a = mysql_query("SELECT class, FROM `users` WHERE id = $row[userid] ");
replace with:
$a = mysql_query("SELECT class, donated FROM `users` WHERE id = $row[userid] ");
find:
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with:
if ($a["1"] > 0) { $star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$user.' '.$star.':</b></a> '.nl2br(format_comment($row['message']));
============================================
============================================
This is if you want to add it for VIPs!
============================================
find:
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with:
if ($a["0"] == "3") {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].' '.$star.':</b></a> '.nl2br(format_comment($row['message']));
============================================
============================================
This is if you want to add it for BOTH!
============================================
find:
$a = mysql_query("SELECT class, FROM `users` WHERE id = $row[userid] ");
replace with:
$a = mysql_query("SELECT class, donated FROM `users` WHERE id = $row[userid] ");
find:
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with:
if ($a["0"] == "3" || $a["1"] > 0) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].' '.$star.':</b></a> '.nl2br(format_comment($row['message']));
============================================
Whew! I think that's it.... Let me know if I missed anything, I'll add it right away!
I know, I havn't done the forums, waiting for an 'official' one from the developers...
or maybe I'll add it tomorrow, need some sleep now :S
This mod adds a start for VIP users, AND/OR donators. Codes are posted separately at first, then both applied. Meaning that you have a separate mod where VIP users get the star, one where donators get the star, and one where both get the star, so read carefully and don't just copy/paste the code blindly!
If you want to use it for DONATORS only, follow ONLY the text between the blue tags!
If you want to use it for VIPs only, follow ONLY the text between the green tags!
If you want to use it for BOTH, follow ONLY the text between the orange tags!
Let's start with the comments (this is both for torrent comments and news comments):
============================================
This is to add a star for DONATORS!
============================================
in functions.php find:
find:
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
replace with:
if ($row["donated"] > 0) { $donated = "<img src=images/star.gif border=0>";
} else {
$donated = "";
}
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername $donated</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
Then, just under that:
} else {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
replace with:
}else {
print("<tr><td valign=top width=150 align=left
class=table_col2><center><b>$postername $donated</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
============================================
============================================
This is to add a star for VIPs!
============================================
find:
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
replace with:
if ($row["class"] == 3) { $vip = "<img src=images/star.gif border=0>";
} else {
$vip = "";
}
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername $vip</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
Then, just under that:
} else {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
replace with:
} else {
print("<tr><td valign=top width=150 align=left
class=table_col2><center><b>$postername $vip</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
============================================
============================================
This is if you want to add it for both!
============================================
find:
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
replace with:
if ($row["class"] == 3 || $row["donated"] > 0) {
if ($site_config["donatedstar"] || $site_config["vipstar"]) {
$star = "<img src=images/star.gif border=0>";
} else {
$star = "";
}
}
if ($privacylevel != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername $star</b><br><i>$title</i></center><br>Uploaded: $useruploaded<br>Downloaded: $userdownloaded<br>Ratio: $userratio<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
Then, just under that:
} else {
print("<tr><td valign=top width=150 align=left class=table_col2><center><b>$postername</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
replace with:
} else {
print("<tr><td valign=top width=150 align=left
class=table_col2><center><b>$postername $star</b><br><i>$title</i></center><br>Uploaded: ---<br>Downloaded: ---<br>Ratio: ---<br><br><center><img width=80 height=80 src=$avatar></center><br></td>");
}
============================================
And that's it for the torrent comments!
Now for the blocks...
Online users block:
in onlineusers_block.php
============================================
This is if you want to add it for DONATORS!
============================================
find:
$usersonlinequery = mysql_query("SELECT id, username, class FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
replace with:
$usersonlinequery = mysql_query("SELECT id, username, class, donated FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
find:
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>, ");
replace with:
if ($user["donated"] > 0) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>$star, ");
============================================
============================================
This is if you want to add it for VIPs!
============================================
find:
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>, ");
replace with:
if ($user["class"] == 3) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>$star, ");
============================================
============================================
This is if you want to add it for BOTH!
============================================
find:
$usersonlinequery = mysql_query("SELECT id, username, class FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
replace with:
$usersonlinequery = mysql_query("SELECT id, username, class, donated FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP(" .
get_dt_num() . ") - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());
find:
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>, ");
replace with:
if ($user["class"] == 3 || $user["donated"] > 0) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
print("<a href="account-details.php?id=".$user["id"].""><font style=" color:
".$color."">".$user["username"]."</font></a>$star, ");
============================================
And that's it for the users online block!
Now for the blocks...
Login block:
in login_block.php
============================================
This is if you want to add it for DONATORS!
============================================
find:
begin_block("$CURUSER[username]");
replace with:
if ($CURUSER["donated"] > 0) {
$star = " l<img src=images/star.gif border=0>";
} else {
$star = "";
}
begin_block("".$CURUSER[username]."$star");
============================================
============================================
This is if you want to add it for VIPs!
============================================
find:
begin_block("$CURUSER[username]");
replace with:
if (get_user_class($CURUSER) == "3") {
$star = " l<img src=images/star.gif border=0>";
} else {
$star = "";
}
begin_block("".$CURUSER[username]."$star");
============================================
============================================
This is if you want to add it for BOTH!
============================================
find:
begin_block("$CURUSER[username]");
replace with:
if (get_user_class($CURUSER) == "3" || $CURUSER["donated"] > 0) {
$star = " l<img src=images/star.gif border=0>";
} else {
$star = "";
}
begin_block("".$CURUSER[username]."$star");
============================================
That's it for the blocks....
Now the shoutbox!
in shoutbox.php
============================================
This is if you want to add it for DONATORS!
============================================
find:
$a = mysql_query("SELECT class, FROM `users` WHERE id = $row[userid] ");
replace with:
$a = mysql_query("SELECT class, donated FROM `users` WHERE id = $row[userid] ");
find:
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with:
if ($a["1"] > 0) { $star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$user.' '.$star.':</b></a> '.nl2br(format_comment($row['message']));
============================================
============================================
This is if you want to add it for VIPs!
============================================
find:
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with:
if ($a["0"] == "3") {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].' '.$star.':</b></a> '.nl2br(format_comment($row['message']));
============================================
============================================
This is if you want to add it for BOTH!
============================================
find:
$a = mysql_query("SELECT class, FROM `users` WHERE id = $row[userid] ");
replace with:
$a = mysql_query("SELECT class, donated FROM `users` WHERE id = $row[userid] ");
find:
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].':</b></a> '.nl2br(format_comment($row['message']));
replace with:
if ($a["0"] == "3" || $a["1"] > 0) {
$star = " <img src=images/star.gif border=0>";
} else {
$star = "";
}
echo '</td><td style="font-size: 12px; padding-left: 5px"><a
href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'"
target="_parent"><b>'.$row['user'].' '.$star.':</b></a> '.nl2br(format_comment($row['message']));
============================================
Whew! I think that's it.... Let me know if I missed anything, I'll add it right away!
I know, I havn't done the forums, waiting for an 'official' one from the developers...
or maybe I'll add it tomorrow, need some sleep now :S





