TheMasterGeneral Posted May 9, 2015 Share Posted May 9, 2015 Info - This mod won't (in-depthly) track your users' inputs, but it'll allow you to see their browsing habits while playing the game. Involves editing files. Open staff_logs.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath paste: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Go to the end of the file, and paste: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save, upload. Open header.php, find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Paste under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save, upload. SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Please note that using this on a small game over the course of a month, it resulted in a table that weighed in at 52KB. (Small game = less than 10 active players per day.) You can run a command in your day/weekly cron to delete actions that are over X age old. (That's what I'm doing now.) This will work 100% of the time the game doesn't have errors. (It'll even work if you only have require('globals.php'); in your file.) The page is sanitized before added into the DB. The only real use of this is to track your users' actions, as this won't let you see their forms (unless you have the forms sent over GET) Comments, rating, etc.. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted May 9, 2015 Share Posted May 9, 2015 [...] (unless you have the forms sent over GET)[...] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Everything1 is logged. Use unserialize() in the log view - make sure to prevent it from parsing as code on output 1 Not actually everything, but most of it.. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted May 9, 2015 Share Posted May 9, 2015 Oh, also.. "Donation Time"? Quote Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted May 9, 2015 Author Share Posted May 9, 2015 Its a more or less copy and paste from the donation logs (Which I copy and pasted from the staff notes, which when its all down and copy and pasted and whatnot, came from the attack logs :P) Quote Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted May 9, 2015 Author Share Posted May 9, 2015 There was a few derps in the OP. (URL Links, mainly, within the code) and have been fixed and the OP has been updated. Quote Link to comment Share on other sites More sharing options...
AdamHull Posted May 9, 2015 Share Posted May 9, 2015 [MENTION=70347]NonStopCoding[/MENTION] did something simular for a game we where helping out on, but instead of watch all users you could select the ones you wanted to watch Quote Link to comment Share on other sites More sharing options...
Zettieee Posted May 9, 2015 Share Posted May 9, 2015 pretty simple to add: if($ir['watched'] > 0){ //the code here } Quote Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted May 10, 2015 Author Share Posted May 10, 2015 That also works. In a bit, I'll create a search by user id function. Few minutes! Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 10, 2015 Share Posted May 10, 2015 You can look at this for ideas: http://makewebgames.io/showthread.php/22379-Free-Log-Suspicious-Users Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 10, 2015 Share Posted May 10, 2015 will release mine later when i am home if it will any help to you Quote Link to comment Share on other sites More sharing options...
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.