Great item, thanks for your hard work! I am just wondering, if the user has more than 10 items, which ones get shown? Can the user choose the items to display?
I am planing to use it with Feeble's changes (i.e. nothing gets shown if they have nothing). But I was wondering about which items get displayed and if there is a choice for it. Also, is there a demo forum with this running that I can see?
Thanks again!!
they get displayed in order of purchase, but if you wanted to display them in order of a certain condition you could add this bit of code
ORDER BY ****** ****
with the first set of asterix being the condition and the second set of asterix being whether read in ASC (ascending) or DESC (descending) so say you wanted to order by price you could go
ORDER BY it.price ASC which would go 1st least expensive > 10th most expensive in the users inventory
and DESC would change flip the order so most expensive to 10th least expensive in the users inventory
and just put that order code in this statement
$result = db_query("
SELECT it.desc, it.image, inv.id
FROM {$db_prefix}shop_inventory AS inv, {$db_prefix}shop_items AS it
WHERE inv.ownerid = {$message['member']['id']} AND inv.itemid = it.id
ORDER BY it.price ASC
LIMIT 10", __FILE__, __LINE__);
and if you wanted to change how many items you display just change the LIMIT 10 to whatever number you want.
on that note all of this will be added into the new version which will have an admin section and allow you to switch from sig to post view and order of items how many to show etc but i haven't finished it yet so if you want to do those in the interim that's cool. just bare in mind any changes in code will result in the item not uninstalling unless you make the changes in the actual packages xml file before installing.
hope that helps.