I know many of you have asked for this so here is a widget I made that will show the username, date, and amount of the last 10 donations. You can feel free to modify, use, and do whatever you want with this code. Make it as a PHP direct execution.
Code:
$output = "<table width=\"100%\"><tr><td width=\"40%\">Username:</td><td width=\"35%\">Date:</td><td width=\"25%\">Amount:</td></tr>";
$result=vB::$db->query_read("
SELECT userid, amount, dateline
FROM " . TABLE_PREFIX . "dbtech_vbdonate_donations ORDER BY id DESC LIMIT 10");
$i = 0;
while ($array = vB::$db->fetch_array($result))
{
$thename = vB::$db->query_first("
SELECT username FROM " . TABLE_PREFIX . "user WHERE userid = '$array[userid]'");
$output .= "<tr><td width=\"40%\"><a href=\"/member.php?" . $array[userid] . "\">" . $thename[username] . "</a></td><td width=\"35%\">" . date("m/d/y", $array[dateline]) . "</td><td width=\"25%\">$" . $array[amount] . "</td></tr>";
}
$output .= "</table>";