MyBB Community Forums

Full Version: Game Section
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
O, no gamedata. In that case this mod is not the right for me. Unfortunatly. Sad

I am using 1.0.6
Susanne Wrote:O, no gamedata. In that case this mod is not the right for me. Unfortunatly. Sad

I am using 1.0.6
then can you post or PM(me) the url you your arcrade so i can see the porblem
Nekng, thank you for that, but I already deleted the mod because I really must use it with "gamedata".
I need a way to be able to edit my users messages on it, if there is a way for you to do that.
WeAreWriters Wrote:
Paretje Wrote:You must save your admin permissions.

What exactly do you mean by this? what exactly do you mean by save the admin permissions?

Well, goes to the page of editing your own admin permissions (or other admins) and you save it then Wink

Tyndie Wrote:are there any game packs for this mod?

All the games of other systems like the arcade mod works Wink
New bug found in 1.0.x

This bug is a bug that make it possible to use some SQL injections. Its advised at strictest to fix this bug!

Its easy to fix it, its only upload the follow the follow instrunctions:

1. Download this file: [attachment=5062]
2. Upload this file to the games folder

OR do it manual:

1. Open submit.php and find:
$gid = $_COOKIE['gid'];
$uid = $mybb->user['uid'];
$score = $_POST['gscore'];

Rewrite it with the follow code:
$gid = intval($_COOKIE['gid']);
$uid = $mybb->user['uid'];
$score = intval($_POST['gscore']);

2. In the same file find:
if(!isset($_COOKIE['gid']) || !isset($_POST['gscore']))
{
	error($lang->noinput, $lang->error);
}

Rewrite it with the follow code:
if(!intval($_COOKIE['gid']) || !isset($_POST['gscore']))
{
	error($lang->noinput, $lang->error);
}
There is no,
if(!isset($_COOKIE['gid']) || !isset($_POST['gscore']))
{
    error($lang->noinput, $lang->error);
} 


In my submit.php file.
Then you must upload that file Wink
I've two little problems with the submit function:

1. Some games submit their data fine but with others the process stopps while transmitting and the only way to go on is to reload the page or to go back to another page of the forum. Can somebody tell me why? Wink
2. Some users found a way to cheat. The opened another (easier) game on another window played it and wait to submit. Then they played the game which the want to score, and when it comes to the point to submit the score they submit the (higher) score from the (easier) first game.Rolleyes
Is there a way to stop this?

Thanks!

Lenkradschloss

P.S.: Is something like tournaments planed for this plugin? Would be great! Wink
Quote:1. Download this file: [attachment=97]
What file? :-p