Akash Posted April 15, 2008 Posted April 15, 2008 Ok, I was just messing around a bit and thought it may be a good idea to create a gym record. All it is, is the user trains up, and their ID, IP, stat gain and time of training and stat trained are logged. They can then view most of these logged details on a file called gymrecord.php. Thsi benefits staff, who can check the logs in order to see if there are any cheaters. It also helps users, as they can see whether their stat gain is increasing. PLEASE NOTE: This is only for people who have alot of storage space. If you do not have that much, it will cause lag. The best thing to do is set a cron that empties the logs once a week. FOR V2 ONLY! Create a file called gymrecord.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then find in gym.php: 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. Then run the following sql: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And there, you're done! Quote
Akash Posted April 15, 2008 Author Posted April 15, 2008 Re: Gym Record Thanks...please post to let me know if you want something added, or if there's any bugs Quote
John1 Posted April 15, 2008 Posted April 15, 2008 Re: Gym Record this is a great idea i wish i thought of it, i am definitely going to use it in my game Quote
Akash Posted April 15, 2008 Author Posted April 15, 2008 Re: Gym Record As it says, I made this for staff and users. But what's the point in staff wasting time on going into phpMyAdmin, opening the table, browsing and looking through unclear information? Well, I have made an addition to the staff part of the mod. It's simple, just a table like the mail logs in staff panel, but it has all the info. FOR V2 ONLY Find in staff_logs.php: 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. Then find: 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. After that go into smenu and add this link below mail logs: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I tested and works fine, hope it's all ok for me. You know where I am if you need help with it. Also, I haven't made the logs go onto a new page when there is alot, purely because most users of this mod will reset the logs every so often. Quote
Halo Posted April 16, 2008 Posted April 16, 2008 Re: Gym Record Nice one Akash, but i made my own one like this before Quote
Akash Posted April 16, 2008 Author Posted April 16, 2008 Re: Gym Record Thanks guys foe the positive comment :D Glad everyone likes it Quote
henda Posted April 17, 2008 Posted April 17, 2008 Re: Gym Record Yeh great but it doesnt show you who trained on that stat as you have two gym id ' s not user id But yeh great thanks :-) Quote
Akash Posted April 17, 2008 Author Posted April 17, 2008 Re: Gym Record It does, one field is the number of the train, so 1,2,3 etc. The other will always be the same, it is your ID Quote
Magictallguy Posted April 17, 2008 Posted April 17, 2008 Re: Gym Record How would you set it up to work with Nyna's gym? Found Here I've tried and failed! Quote
Akash Posted April 17, 2008 Author Posted April 17, 2008 Re: Gym Record Well it's possible, but I have no idea. Her gym is completely different to the default V1/V2 one, so perhaps pm her and she might help Quote
The Ace Posted April 24, 2008 Posted April 24, 2008 Re: Gym Record I like this and I use it in my game! :) Great mod! But, how do I get it to display the username of the person who trained, in staff gym logs? (I want to keep the userid as well). (I know this is probably easy, but I banged my head quite badly and I'm not totally with it, if ya know what I mean...) :-P Cheers. Quote
jay-dogg2009 Posted December 28, 2010 Posted December 28, 2010 for the username to apear jsut replace replace this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. With this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in the staff_logs.php and the username issue will be sorted :) 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.