Is it Possible to Fetch user Information?

For context, I have a forum site using PhpBB and I am creating mini-games for users to play and take screenshots to save their score. So far I am using a variable where users can input a code to verify they are not reusing scorres (whoever they send would give them a unique code). I want to be more effectively to see if there is a way using javascript to fetch information to display ad a variable in the event when the game event trigger occurs to let them screenshot.

Can I use Javascript and display variable for the current Date and Time?
Can I use a script where they can fetch the username from MySQL database (I do host the games on my hosted server.

I want to find a more effective way to prevent my users from cheating.
I want to find a more effective way to prevent my users from cheating.
That's generally not something you can effectively do. Your game's code is easily available to them, and anyone familiar with JavaScript (not even with RPG Maker itself) will usually be able to grant themself console access and make their score whatever they want.

Though of course you can make cheating harder - just bear in mind that it won't be too hard.

Can I use Javascript and display variable for the current Date and Time?
Sure, just use new Date() .

Can I use a script where they can fetch the username from MySQL database (I do host the games on my hosted server.
That's trickier. What you really don't want to do is to connect to the database directly from the game, since that requires leaving the credentials within it - this would allow anyone to not just submit arbitrary scores, but take control over the whole database.

You'd generally want the game to connect to a server you control, and that server to handle communicating with the database. Alternatively, use Firebase or a similar database meant to be used with static websites.
trying looking in this


uploding data to websites from project


ready to use webiste for project
trying looking in this
Just make sure you also read this:

Just make sure you also read this:

thanks for making it me remember let me inform all of you i have made progress on new plugin that now allow you have server and client version so now all your id pass is protected in server side and client dont have access to it ,
i will upload the video 🙂.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-fetch-user-information.170008/