Jump to content
MakeWebGames

Recommended Posts

Posted

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!

Posted

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.

Posted

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

Posted

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.

  • 2 years later...
Posted

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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...