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.
hmmmm same here shouldnt it show up at top or a drop down page
WeAreWriters Wrote:
WeAreWriters Wrote:Do the games work for anyone else in I.E?
Paretje Wrote:@WeAreWriters
Yes. Without any problem

http://www.wearewriters.co.uk/forums/games.php

So can you play the games?


Also, do you understand about the footer?
(If you don't, play a game and then see the screen after you submit the score) What template does that page use? Then I can add the code to the bottom of it. But I can't until I know which template to find.

The redirect templates, thats only a MyBB function

clocktower Wrote:added all the games now i get this Sad




You do not have permission to access this page. This could be because of one of the following reasons:

1. Your account has either been suspended or you have been banned from accessing this resource.
2. You do not have permission to access this page. Are you trying to access administrative pages or a resource that you shouldn't be? Check in the forum rules that you are allowed to perform this action.
3. Your account may still be awaiting activation or moderation. (Resend Activation Code)


You are currently logged in with the username: 'clocktower'

Use the perms.php file Wink

DragonLord Wrote:I have download games1.0.5_1.0.4.tar.gz and install it at my forum and i have activate it but i can't find it where is it located?

But thats only for who use already the Game Section 1.0.4 to upgrade to 1.0.5 and the current version is 1.0.6 Wink
well i have version 1.6 installed still doesnt show up on nav bar in forums??

Use the perms.php file<<< done that even showed you it

my perms.php
to /httpdocs/community/inc/plugins
<?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.";
?>
Quote:my perms.php
to /httpdocs/community/inc/pluginsp
perms.php should NOT go into your plug in folder! You should put it in your ROOT folder. Like: www .mysite.com/mybb/perms.php  and execute it from there.

P.S. You really need to read the posts and guides more carefullyWink
ok added that in community folder set all permissions in admin cp so why doesnt it show up on navagation bar at top of forums god this is one mod that needs a brain surgeon or scientist
Absolutly not, but in 1.0.x I didn't made that in the plugin (perms)
The navigation will be normaly corectly. It search to
{$lang->toplinks_help}</a></li>
and it will be replaced with
{$lang->toplinks_help}</a></li>
					<li><a href="{$mybb->settings[\'bburl\']}/games.php">{$lang->gamesection}</a></li>
and dumb question which template do i add this in please
Normally, php/MyBB will do this. The name of the template is header
<a name="top" id="top"></a>
<div id="container">
<div id="header">
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div>
<div class="menu">
<ul>    
<li><a href="{$mybb->settings['bburl']}/link.php">New Nav-Bar</a></li>                                      <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" />{$lang->toplinks_help}</a></li>
<li><a href="{$mybb->settings['bburl']}/games.php">{$lang->gamesection}</a></li>
</ul>
</div>
<hr class="hidden" />
<div id="panel">
{$welcomeblock}
</div>
</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
<navigation>
<br class="clear" />

hmmm well thats my default header template and still doesnt show
thing is with it being a torrent site our mybb forums are intregrated into
into the other part so how would i add a link so members can see and click on games to play
(yeah im a pain)
		<div class="content">
	<div id="top">
		<div class="padding">

  <tr>
   <span style="float:right;">{$lang->welcome_current_time}</span>
  </tr>

			</div>
		</div>

		<div id="header">
			<div class="f_search">
				<form method="post" action="search.php">
					<input type="hidden" name="action" value="do_search" />
					<input type="hidden" name="postthread" value="1" />
					<input type="hidden" name="forums" value="all" />
					<input type="hidden" name="postdate" value="0" />
					<input type="hidden" name="pddir" value="1" />
					<input type="hidden" name="sortby" value="lastpost" />
					<input type="hidden" name="pddir" value="1" />
					<input type="hidden" name="sorder" value="desc" />
					<input type="hidden" name="showresults" value="threads" />
					<p><input type="text" value="search..." class="search" onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" name="keywords" id="search_query" maxlength="250" />
					<input type="submit" class="submit" value="Search" /></p>
				</form>
			</div>
		<div class="title">

				<h1><a href="{$mybb->settings['bburl']}">{$mybb->settings['bbname']}</a></h1>
			</div>
		</div>
	
		<div id="subheader">
			<div id="menu">
			  <ul>

<li class="page_item"><a href="../index.php"><b><font color=red>Home</b></font></a></li>
<li class="page_item"><a href="./index.php"><b><font color=blue>Forums<b></font></a></li>
<li class="page_item"><a href="../browse.php"><b><font color=yellow>Torrents</b></font></a></li>
<li class="page_item"><a href="search.php"><b><font color=orange>Search</b></font></a></li>
<li class="page_item"><a href="../viewrequests.php"><b><font color=gray>Requests</b></font></a></li>
<li class="page_item"><a href="../upload.php"><b><font color=lime>Upload</b></font></a></li>
<li class="page_item"><a href="../usercp.php"><b><font color=red>UserCP</b></font></a></li>
<li class="page_item"><a href="../irc.php"><b><font color=yellow>IRC</b></font></a></li>
<li class="page_item"><a href="/community/calendar.php"><b><font color=gray>Calendar</b></font></a></li>
<li class="page_item"><a href="../rules.php"><b><font color=red>Rules</b></font></a></li>
<li class="page_item"><a href="../faq.php"><b><font color=green>FAQ</b></font></a></li>
<li class="page_item"><a href="../staff.php"><b><font color=red>Staff</b></font></a></li>
{$admincplink2}
</ul>
			</div>
			
			
		</div>
		
		<div id="main">

	
			<div class="left_side">
{$welcomeblock}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
		

TS Special Edition Theme v3 Templates how would i add this

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

it that template