Here is a solution for your problem to let users see what scripts they purchased. Create a new table, called userpurchaseinformation or something in MySQL. If you have a purchase id, then it would be like this [purchaseid, userid, itemname, itemdescription, quantity, individualcost, purchasemethod]
Everytime a user purchases something, the fields are entered. Then when they go to their members area to see what items they purchased, you can use vB's global variable $bbuserinfo[userid] and do a simple sql query and array it.
PHP Code:
$usersid = $bbuserinfo["userid"];
$array1 = $DB_site->query("SELECT * FROM userpurchaseinformation WHERE userid='$usersid'");
while($array=$DB_site->fetch_array($array1)) {
echo "$array[purcasdasd]";
echo "$array[asdasdseid]";
echo "$array[padsdasdaseid]";
echo "$array[purdasdasdd]";
echo "$array[asdasd]";
echo "<br>";
}
Keep in mind, I used vB sql query structure above, and I can't recale the while code that vB uses to array, but you can use phps normal way if you wish. Its simple as that to show, and keep data.
Bookmarks