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.
right this mod is doing my head in i added perms in community folder
added my sites details ie http://www.super-torrents.co.uk in every games.php but still get no permitted and set all permissions in admin cp
hers my perms.php just dont get it Sad



<?php
/**
 * Game section for MyBB
 * Copyright © 2006 Online - Urbanus
 * 
 * Website: http://www.super-torrents.co.uk
 * 
 * Dutch and English support: http://www.Online-Urbanus.be/Forum
 * English support: http://community.mybboard.net/showthread.php?tid=12413
 */

define("IN_MYBB", 1);

require_once "./global.php";

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='1'");

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='2'");

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='3'");

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='4'");

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='5'");

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='6'");

$db->query("UPDATE ".TABLE_PREFIX."usergroups SET canviewgames='yes', canplaygames='yes' WHERE gid='7'");

$db->query("UPDATE ".TABLE_PREFIX."adminoptions SET canmanagegames='yes'");

echo "The permissions are saved.";
?>
The original is a little bit other.

1. Download perms.php
2. Upload perms.php to your MyBB root
3. Go to perms.php
4. Go to the Game Section
ive added perms.php to mybb/community >>perms.php added every thing all games,all permissions so owners/staff/users can play these games but when any one even me clicks games play it just says not permitted
But you must use it.
Quote:But you must use it.

please elaborate

plus when adding a game in admin cp
do i add this

http://www.super-torrents.co.uk/games/donkeykong
Its only donkeykong Wink
When I go to Game section > Add Game I get this:

Quote:MyBB Error
Access Denied

You do not have permission to access this part of the administration control panel.

My in admin usergroup both the values are set to yes
Go to the adminpermissions and save, or use the perms.php
maybe it didnt'w ork for me before, becuase i used the wrong files... when i download the MOD i ahve 3 foulders.
games1.0.6
games1.0.6_1.0.5
and
games.1.0.6_arcade


which one should i use?


Thanks!
Its explained in the first post. hen you don't use an old version or the arcade mod, then use games_1.0.6