Taken from [url="http://www.torrenttrader.org/index.php?showtopic=6015"]here[/url], requested [url="http://www.torrenttrader.org/index.php?showtopic=7661"]here[/url].
in account-details.php
find:
dbconn(true);
loggedinonly();
stdhead("Staff bookmark");
$id = 0 + $_GET["id"];
if (isset($_GET["delete"]) && ($_GET["delete"] != "yes")) {
show_error_msg("Delete user $id from staff bookmarks?", "Click <a href=adminbookmark.php?delete=yes&id=$id>here</a> to confirm",1);
}
if ($_GET["delete"] == "yes") {
mysql_query("UPDATE users SET addbookmark = 'no', bookmcomment = '' WHERE id = $id") or die (mysql_error());
show_error_msg("User removed", "User has been removed from staff bookmarks. <a href=adminbookmark.php>Go back</a>.",1);
}
$addbookmark = number_format(get_row_count("users", "WHERE addbookmark='yes'"));
begin_frame("<font color=2fdceb>($addbookmark) total bookmarked users</font>", true);
begin_table();
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:800px" class="tableinborder" ><tr><td
class="tabletitle">ID</td><td class="tabletitle" align="left">Username</td><td class="tabletitle"
align="left">Comment</td><td class="tabletitle" align="left">Uploaded</td><td class="tabletitle"
align="left">Downloaded</td><td class="tabletitle" align="left">Ratio</td><td class="tabletitle"
align="center">Delete</td></tr>
<?
$res=mysql_query("SELECT id,username,bookmcomment,uploaded,downloaded FROM users WHERE addbookmark='yes' ORDER BY id") or
print(mysql_error());
while ($arr = @mysql_fetch_assoc($res)) {
if($arr["downloaded"] != 0){
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
} else {
$ratio="---";
}
$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
$uploaded = mksize($arr["uploaded"]);
$downloaded = mksize($arr["downloaded"]);
$uploaded = str_replace(" ", "<br>", mksize($arr["uploaded"]));
$downloaded = str_replace(" ", "<br>", mksize($arr["downloaded"]));
echo "<tr><td class=tablea >" . $arr[id] . "</td><td class=tablea align=\"left\"><b><a href=account-details.php?id=" .
$arr[id] . ">". $arr[username] . "</b></td><td class=tablea align=\"left\">" . $arr[bookmcomment] . "</a></td><td
class=tablea align=\"left\">" . $uploaded . "</td></a></td><td class=tablea align=\"left\">" .$downloaded. "</td><td
class=tablea align=\"left\">$ratio</td>
<td class=tablea align=\"center\"><a href=adminbookmark.php?delete=no&id=".$arr[id]."><img src=images/del.png border=0></a>
</td>
</tr>";
}
end_table();
end_frame();
stdfoot();
?>
In admincp.php, find:

rename the image staff_book.png and put it in the images/admin directory.
Enjoy!
PS: If anyone can confirm this works on 2.03, mods can move it to completed mods. I know it works on 2.00 and 2.01 just haven't tested it on a more recent release... though I don't see why it wouldn't work :)
ALTER TABLE users ADD(addbookmark enum ('yes','no') NOT NULL default 'no');ALTER TABLE `users` ADD `bookmcomment` TEXT NOT NULL;in account-details.php
find:
<?phprequire "backend/functions.php";dbconn(true);
loggedinonly();
stdhead("Staff bookmark");
$id = 0 + $_GET["id"];
if (isset($_GET["delete"]) && ($_GET["delete"] != "yes")) {
show_error_msg("Delete user $id from staff bookmarks?", "Click <a href=adminbookmark.php?delete=yes&id=$id>here</a> to confirm",1);
}
if ($_GET["delete"] == "yes") {
mysql_query("UPDATE users SET addbookmark = 'no', bookmcomment = '' WHERE id = $id") or die (mysql_error());
show_error_msg("User removed", "User has been removed from staff bookmarks. <a href=adminbookmark.php>Go back</a>.",1);
}
$addbookmark = number_format(get_row_count("users", "WHERE addbookmark='yes'"));
begin_frame("<font color=2fdceb>($addbookmark) total bookmarked users</font>", true);
begin_table();
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:800px" class="tableinborder" ><tr><td
class="tabletitle">ID</td><td class="tabletitle" align="left">Username</td><td class="tabletitle"
align="left">Comment</td><td class="tabletitle" align="left">Uploaded</td><td class="tabletitle"
align="left">Downloaded</td><td class="tabletitle" align="left">Ratio</td><td class="tabletitle"
align="center">Delete</td></tr>
<?
$res=mysql_query("SELECT id,username,bookmcomment,uploaded,downloaded FROM users WHERE addbookmark='yes' ORDER BY id") or
print(mysql_error());
while ($arr = @mysql_fetch_assoc($res)) {
if($arr["downloaded"] != 0){
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
} else {
$ratio="---";
}
$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
$uploaded = mksize($arr["uploaded"]);
$downloaded = mksize($arr["downloaded"]);
$uploaded = str_replace(" ", "<br>", mksize($arr["uploaded"]));
$downloaded = str_replace(" ", "<br>", mksize($arr["downloaded"]));
echo "<tr><td class=tablea >" . $arr[id] . "</td><td class=tablea align=\"left\"><b><a href=account-details.php?id=" .
$arr[id] . ">". $arr[username] . "</b></td><td class=tablea align=\"left\">" . $arr[bookmcomment] . "</a></td><td
class=tablea align=\"left\">" . $uploaded . "</td></a></td><td class=tablea align=\"left\">" .$downloaded. "</td><td
class=tablea align=\"left\">$ratio</td>
<td class=tablea align=\"center\"><a href=adminbookmark.php?delete=no&id=".$arr[id]."><img src=images/del.png border=0></a>
</td>
</tr>";
}
end_table();
end_frame();
stdfoot();
?>
In admincp.php, find:
<td align="center"><a href=admincp.php?action=style><img src="images/admin/themes.gif" border=0 width=32
height=32><BR>Theme Management</a><BR></td>below, add:<td align="center"><a href=adminbookmark.php><img src="images/admin/staff_book.png" border=0 width=32
height=32><br>Bookmarked Users</a><BR></td>
rename the image staff_book.png and put it in the images/admin directory.
Enjoy!
PS: If anyone can confirm this works on 2.03, mods can move it to completed mods. I know it works on 2.00 and 2.01 just haven't tested it on a more recent release... though I don't see why it wouldn't work :)