Nicholas Posted December 27, 2010 Posted December 27, 2010 Hello everyone, ive updated Lithium's item market that *curt* updated little as well, also created a logs system and added security through-out all scripts. I techically recoded ItemMarket.php from top to bottom with full security and i also removed the annoying <?= and =?> as i dont like that type coding. I edited most the queries inside this mod for new table information and etc. I also tried adding IP logs with the buying items on Item Market. but i had problems with the Sellers IP. it just didnt select and insert the sellers IP address sadly. firstly the SQL for database You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now the "itemmarket.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now for "imadd.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now for the logs "market_logs.php" (you can call it whatever you like really) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If you have any troubles with anything feel free to ask. Hope you like the mod. Nicholas. Quote
Rasheed saeed Posted December 27, 2010 Posted December 27, 2010 Fir does with this. Nice add-on Quote
Nicholas Posted December 27, 2010 Author Posted December 27, 2010 your welcome, took forever to do techically full recode of this mod lol. also never seen any mods posted on here for Item Market's buying/selling/adding/removing logs so i just went ahead i created it haha. Quote
Curt Posted December 27, 2010 Posted December 27, 2010 BUG FOUND ! Line 49 Remove the entire query. Quote
Nicholas Posted December 27, 2010 Author Posted December 27, 2010 good find, actidental query inserted there... removed. Quote
rulerofzu Posted January 13, 2011 Posted January 13, 2011 I dont see why the usage of SELECT DISTINCT in this. Is any user or item going to have a duplicate? Quote
Curt Posted January 13, 2011 Posted January 13, 2011 I dont see why the usage of SELECT DISTINCT in this. Is any user or item going to have a duplicate? I used that because it selects the items from the item market so there would be duplicates... Quote
bratkax Posted January 23, 2011 Posted January 23, 2011 Seems to work perfectly. Only one problem - when I add 5 items to market it reaches the limit and I need to wait for others to buy it or remove item from market. But I've noticed that it doesn't update my marketquota after someone buys my item or I remove it. So i've updated the code a little bit. Quote
bratkax Posted January 23, 2011 Posted January 23, 2011 Seems to work perfectly. Only one problem - when I add 5 items to market it reaches the limit and I need to wait for others to buy it or remove item from market. But I've noticed that it doesn't update my marketquota after someone buys my item or I remove it. So i've updated the code a little bit. Find this somewhere around line 40: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ADD BELOW: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -------------------------------------------------- Find this few lines below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ADD BELOW: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -------------------------------------------------- Find thins in around line 120: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ADD BELOW: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -------------------------------------------------- And finally, find this around line 165: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. AND ADD: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -------------------------------------------------- Should work now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.