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.
lufbra Wrote:Okay, and please pardon my ignorance, but what do I have to do to edit it...

href="{$mybb->settings['bburl']}/games.php">{$lang->gamesection}</a></li>

Also, does anyone have a small .gif image that can be added to it?

Any help with the above would be appreciated. Smile
lufbra Wrote:
lufbra Wrote:Okay, and please pardon my ignorance, but what do I have to do to edit it...

href="{$mybb->settings['bburl']}/games.php">{$lang->gamesection}</a></li>

Also, does anyone have a small .gif image that can be added to it?

Any help with the above would be appreciated. Smile

Took me a a bit of trial and error to do this right, but heres the code I use and have done myself for the games section and it's icon:

Quote:<li><a href="{$mybb->settings['bburl']}/games.php"><img src="{$theme['imgdir']}/toplinks/games.png" alt="" />Game Section</a></li>

Code goes into the header template of your theme, paste it under the other toplink code.

If you want alternate text to be displayed for the image if not available
it goes in between the quotes after alt="Your Alternate Text Description"

16 X 16 Icon (Was posted here on the board somewhere as well):

[attachment=8172]

:Edit: I knew the image of the controller was posted here, last page it was, sorry for the dupe posting of it as lufbra probably already saw it.

games.png goes in /images/your theme/toplinks

Don't forget to add it for your default theme as well by putting games.png in your /images/toplinks directory.

Hope that helps.Smile
Paretje Wrote:Thanks.

I know, but the only thing I can do is to make a new game system then. When the games doesn't sent the score encrypted, I can't decrypt them Wink

The only thing I can do is to use some cookies or sessions with the gid, but then we have the problem again that you can't play 2 games at the same moment.

No, it's added to make users can make easy a mod for it. In 1.2, there are even much more hooks in it.

I do, after the exams (19/12) I haven't school to 7/12, so then I can work much for the Game Section.
Yeah I know there's no way of stopping cheating, since:
a) You're relying on the client to send the score, and
b) The source code is available, and anyone who bothers can reverse any algorithm.

I'm just proposing that a simple "scramble" is probably better than nothing, as a user can't simply change a number in a request.

The only other feasible method is to use some "common sense" tactics. For example, if we have a snake game, in which you get 10 points each time you eat a fruit, it's impossible for someone to get 1,000,000 points in one minute. You may define something like a "score rate per second" field in your table, and do some comparisons. For the previous example, you may say that someone shouldn't be getting more than 20 points per second, so when a user submits a score 1 minute after starting the game, if the score > 1200, reject it.

Still not a sure way of stopping cheating, but it's better than nothing Toungue



Nonetheless, I'm aware that it takes a lot of time and effort. Whether you decide to implement it is totally up to you XD

Oh, and good luck in your exams!
ZiNga BuRgA Wrote:
Paretje Wrote:Thanks.

I know, but the only thing I can do is to make a new game system then. When the games doesn't sent the score encrypted, I can't decrypt them Wink

The only thing I can do is to use some cookies or sessions with the gid, but then we have the problem again that you can't play 2 games at the same moment.

No, it's added to make users can make easy a mod for it. In 1.2, there are even much more hooks in it.

I do, after the exams (19/12) I haven't school to 7/12, so then I can work much for the Game Section.
Yeah I know there's no way of stopping cheating, since:
a) You're relying on the client to send the score, and
b) The source code is available, and anyone who bothers can reverse any algorithm.

I'm just proposing that a simple "scramble" is probably better than nothing, as a user can't simply change a number in a request.

The only other feasible method is to use some "common sense" tactics. For example, if we have a snake game, in which you get 10 points each time you eat a fruit, it's impossible for someone to get 1,000,000 points in one minute. You may define something like a "score rate per second" field in your table, and do some comparisons. For the previous example, you may say that someone shouldn't be getting more than 20 points per second, so when a user submits a score 1 minute after starting the game, if the score > 1200, reject it.

Still not a sure way of stopping cheating, but it's better than nothing Toungue



Nonetheless, I'm aware that it takes a lot of time and effort. Whether you decide to implement it is totally up to you XD

Oh, and good luck in your exams!

a) Yes, but the game sends the score, so I can only ask and use what the game sends.
b) Of course, it's OpenSource and it's php, only when you decode the source, the user can't look to it.

I don't think that's a good method. I think the best thing I can do is to save the name and the gid of a game in a session. I get the name, I load the gid in the session, when they aren't correct, you get an error. So when the session isn't made, you can't add a game. I think that's the best method and a session is saved on the server...

Why not method? Then the admin must to add his scores, ... But, that isn't included in the php file when you add a game.
Hey! This is great. Don't know why I never tried this one before. LOL...now I'm off to find more games.

edit: OMG...I had no idea you added the games permissions to the individual groups. Was that in the readme? Must have missed it! Great! LOL...thanks for making this. It's really cool!
No, because there are since 1.1 default permissions.
Not entirely sure of your point, but my point was that for first time users of your plugin, they'll take the newest version. It doesn't matter about previous versions, since this will be the only one they see, so if that little tidbit of info isn't in the readme of the current version, it will be confusing. The only way I discovered it was by going to your site and looking at the screenshot in one of your locked threads. Doesn't seem like it would be that hard to put a little blurb about changing permissions in the readme. That's all! Big Grin
The readme is the installation guide, the permissions aren't anymore part of the installation, because the plugin does it. But at the site, I can add a page with a "manual" to edit them. And you must to edit the usergroups.php-file, so ...
Yes, the plugin does it for the default groups, but what about admins like me that create their own usergroups. The plugin only seems to adjust permissions for the default groups. I don't care either way, since I solved the problem myself, without help. I was merely pointing it out for other members, to spare you getting asked the same thing over and over again. If you like that, then OK! Toungue
That's true, I didn't think to that Wink

I think I'm going to make a more extended "After installation" guide on the Game Section site Wink