can you provide more details than "it does not work"
does the order history page not show the order history? or is the problem on the order details page?
one problem I see right off is that the recordset on the order history page is set to filter on the UserID _Server_ variable, but it should be set tp use the userID _Session_ variable.
change:
$WADAUserID_WADAsiteezyecorders = "-1";
if (isset($_SERVER['UserID'])) {
$WADAUserID_WADAsiteezyecorders = (get_magic_quotes_gpc()) ? $_SERVER['UserID'] : addslashes($_SERVER['UserID']);
}
to:
$WADAUserID_WADAsiteezyecorders = "-1";
if (isset($_SESSION['UserID'])) {
$WADAUserID_WADAsiteezyecorders = (get_magic_quotes_gpc()) ? $_SESSION['UserID'] : addslashes($_SESSION['UserID']);
}