MyBB Community Forums

Full Version: Help! (Man, I keep comming with these threads!)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
When I go to http://www.techtabs.com/forums it says there is an error with the file global.php but the thing is I have not edited that file. I tried just using another copy but that didn't work, any ideas?
What did you change in the header template?
I didn't do anything to it, I was trying to install the Alt Rep. Mod, then this happened , I changed all the files back but it is still like this.
I'm pretty sure it's a problem with the header template. Can you post the contents of your header template in this thread?
Change iif at line 250 in global.php to if
I don't see that in the global file all I see is this

eval("\$header = \"".$templates->get("header")."\";");

I can get into the ACP but when I change the header back to the original it just tells me to change another file.
What is your header template's contents?
Here it is

		<script type="text/javascript">
<!--
function log_out()
{
	ht = document.getElementsByTagName("html");
	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
	if (confirm('$lang->sure_you_want_to_log_out'))
	{
		return true;
	}
	else
	{
		ht[0].style.filter = "";
		return false;
	}
}
//-->
</script>

            <script language="Javascript" type="text/javascript">
		 var cookieDomain = "$settings[cookiedomain]";
		 var cookiePath = "$settings[cookiepath]";
		 var quickdelete_confirm = "$lang->quickdelete_confirm";
		 var newpm_prompt = "$lang->newpm_prompt";
		 var deleteevent_confirm = "$lang->deleteevent_confirm";
		 var removeattach_confirm = "$lang->removeattach_confirm";
	</script>
<div id="container">

	
		<div id="header">
<!-- logo -->
<div class="logo"><a href="$settings[bburl]/index.php" name="top"><center><img src="$theme[logo]" alt="$settings[bbname]" border="0" /></center></a></div>
<!-- /logo -->

			<div id="panel">
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$theme[tablespace]" cellspacing="$theme[borderwidth]" border="0" width="100%" align="center">
<tr>
	<td class="trow1" width="100%">

			<table cellpadding="0" cellspacing="0" border="0">
			<tr valign="bottom">
				<td>&nbsp;</td>
				<td width="100%"><navigation></td>
			</tr>
			</table>

	</td>

	<if condition=$mybbuser[uid]> 0 <then>

		<td class="trow2" valign="top" nowrap="nowrap">
		<div class="smalltext">
		$lang->welcome_back<br />
			 <a href="private.php">$lang->welcome_pms</a> $lang->welcome_pms_usage
		</div>
		</td>

	<else />

		<td class="trow2" nowrap="nowrap" style="padding:0px">

		<!-- login form -->
		<form action="member.php" method="post">
                <input type="hidden" name="action" value="do_login" />
		<table cellpadding="0" cellspacing="3" border="0">
		<tr>
			<td class="smalltext">$lang->username:</td>
			<td><input type="text" name="username" title="$lang->username" value="$lang->username" onfocus="this.value=''" /></td>
			<td class="smalltext" colspan="2" nowrap="nowrap"></td>
		</tr>
		<tr>
			<td class="smalltext">$lang->password:</td>
			<td><input type="password" name="password" title="$lang->password" value="$lang->password" onfocus="this.value=''" /></td>
			<td><input type="submit" value="Go!" /></td>
		</tr>
		</table>
		</form>
		<!-- / login form -->

		</td>

	</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div id="conteneurmenu" align="center">
	<table class="tborder" cellpadding="$theme[tablespace]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
	<tr align="center">

		<if condition=$mybbgroup['canusercp']== yes <then>
			<td class="menu_control"><a href="$settings[bburl]/usercp.php">$lang->welcome_usercp</a></td>
		<else /></if>
		 <if condition=$mybbgroup['gid']== 1 <then>
			<td class="menu_control"><a href="$settings[bburl]/member.php?action=register">$lang->welcome_register</a>
                             </td>
		<else /></if>
		<td class="menu_control"><a href="$settings[bburl]/misc.php?action=help">$lang->toplinks_help</a></td>
		<td class="menu_control"><a href="$settings[bburl]/memberlist.php">$lang->toplinks_memberlist</a></td>
		<td class="menu_control"><a href="$settings[bburl]/calendar.php">$lang->toplinks_calendar</a></td>

     <if condition=$settings['popups']== 1 <then>

			<if condition=$mybbgroup['cansearch']== yes <then>
				<if condition=$mybbgroup['canusercp']== yes <then>
				<td class="menu_control"><a href="$settings[bburl]/search.php?action=getnew">$lang->welcome_newposts</a></td>
				<else />
				<td class="menu_control"><a href="$settings[bburl]/search.php?action=getdaily">$lang->welcome_todaysposts</a></td>
				</if>
				<td id="navbar_search" class="menu_control"><a href="javascript:;" onclick="menuLayers.show('navbar_search_menu', event)" onfocus="menuLayers.hide()">$lang->toplinks_search&nbsp;<img src="$theme[imgdir]/th1/open.gif" alt="" border="0" /></a></td>
			<else /></if>
			<if condition=$mybbgroup['canusercp']== yes <then>
				<td id="usercptools" class="menu_control"><a href="javascript:;" onclick="menuLayers.show('usercptools_menu', event)" onfocus="menuLayers.hide()">$lang->quick_links&nbsp;<img src="$theme[imgdir]/th1/open.gif" alt="" border="0" /></a></td>
			<else /></if>
		<else />
			<if condition=$mybbgroup['cansearch']== yes <then>
				<td class="menu_control"><a href="$settings[bburl]/search.php">$lang->toplinks_search</a></td>
				<if condition=$mybbgroup['canusercp']== yes <then>
				<td class="menu_control"><a href="$settings[bburl]/search.php?action=getnew">$lang->welcome_newposts</a></td>
				<else />
				<td class="menu_control"><a href="$settings[bburl]/search.php?action=getdaily">$lang->welcome_todaysposts</a></td>
				</if>
			<else /></if>
			<if condition=$mybbgroup['canusercp']== yes <then>
			<else /></if>
	</if>
		<if condition=$mybbuser[uid]> 0 <then>
			<td class="menu_control"><a href="$settings[bburl]/member.php?action=logout&amp;uid=$mybbuser[uid]"" onclick="return log_out()">$lang->welcome_logout</a></td>
		<else /></if>
	</tr>
	</table>
</div>
<!-- / nav buttons bar -->

<br />
<br />

<if condition=$settings['popups']== 1 <then>
<!-- NAVBAR POPUP MENUS -->

	<if condition=$mybbgroup['cansearch']== yes <then>
	<!-- header quick search form -->
	<div class="menupop" id="navbar_search_menu">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead">$lang->toplinks_search</td>
		</tr>
		<tr>
			<td class="menu_option" title="nohilite">
			<form action="search.php" method="post">
  			<input type="text" name="keywords" /> $gobutton
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="postthread" value="1" />                               

				<br />
						</td>
		</tr>
		<tr>
			<td class="menu_option"><a href="$settings[bburl]/search.php">$lang->search_forums</a></td>
		</tr>
		</table>
	</div></form>

	<!-- / header quick search form -->
	<else /></if>

	<if condition=$mybbuser[uid]> 0 <then>
	<!-- user cp tools menu -->
	<div class="menupop" id="usercptools_menu">
		<table cellpadding="4" cellspacing="1" border="0">

		<tr><td class="thead">$lang->quick_links</td></tr>
		<if condition=$mybbgroup['cansearch']== yes <then><tr><td class="menu_option"><a href="$settings[bburl]/search.php?action=getnew">$lang->welcome_newposts</a></td></tr><else /></if>
		<tr><td class="menu_option"><a href="$settings[bburl]/misc.php?action=markread">markread</a></td></tr>
		<tr><td class="menu_option"><a href="#" onclick="popupWin('misc.php?action=buddypopup', 'buddyList', 170, 300);">$lang->welcome_open_buddy_list</a></td></tr>

		<tr><td class="thead"><a href="usercp.php">$lang->welcome_usercp</a></td></tr>
		<if condition=$mybbgroup['cansearch']== yes <then><tr><td class="menu_option"><a href="$settings[bburl]/usercp.php?action=editsig">$lang->edit_sig</a></td></tr><else /></if>
		<if condition=$mybbgroup['cansearch']== yes <then><tr><td class="menu_option"><a href="$settings[bburl]/usercp.php?action=avatar">$lang->change_avatar</a></td></tr><else /></if>
		 <tr><td class="menu_option"><a href="$settings[bburl]/usercp.php?action=profile">$lang->edit_profile</a></td></tr>
		<tr><td class="menu_option"><a href="$settings[bburl]/usercp.php?action=options">$lang->edit_options</a></td></tr>

                 <tr><td class="thead">miscellaneous</td></tr>
		<if condition=$mybbgroup['canusepms']== yes <then><tr><td class="menu_option"><a href="$settings[bburl]/private.php">$lang->welcome_pms</a></td></tr><else /></if>
		<tr><td class="menu_option"><a href="$settings[bburl]/usercp.php?action=subscriptions">$lang->subscribed_threads</a></td></tr>
		<if condition=$mybbgroup['canviewonline']== yes <then><tr><td class="menu_option"><a href="$settings[bburl]/online.php">$lang->whos_online</a></td></tr><else /></if>
       </table>
	</div>
	<!-- / user cp tools menu -->
	<else /></if>
<!-- / NAVBAR POPUP MENUS -->
<else /></if>

				
			</div>
		</div>
		
		<div id="content">
			$bannedwarning
			$bbclosedwarning
			$unreadreports 

Hope this helps Big Grin
Chadwick Wrote:I can get into the ACP but when I change the header back to the original it just tells me to change another file.

What does the message say, and please post the header template contents.
I just posted the header template, when I revert it back to normal it tells me to change the footer after I changed that it tells me to change another template and so on and so on.
Pages: 1 2 3