I used to have a lot more problems when I made this thread, but I was able to fix some issues. Here is my current issue...
Basically my friend (who vanished) coded my site over to make it look more professional than what I had. But I don't understand everything.
I started working on the pages and it seems I have fixed some things. However the pages view differently in Opera as compared to viewing them in their natural Mozilla Firefox.
I believe that the problem may lye in the header file?
As you can see in the opera browser, the text is a diff size on the left, and the pages have some weird gaps. Download the Opera Browser here...
http://www.opera.com/download/
See the gaps (in Opera) on this page for example:
http://www.garbagewars.com/art.php
See the Header Code here:
<?php
if( !defined('IN_SITE') )
{
exit;
}
if( !defined('NO_ACCEPT_XHTML_HEADER') )
{
/* Accept-header Code by NeoThermic (www.neothermic.com). Modified as needed by MHobbit or David McKim. */
$accept_header = explode( ',', $_SERVER["HTTP_ACCEPT"]);
$xhtml_value = preg_grep( '/^application\/xhtml\+xml(;q=(0\.\d{1,5}|1\.0|[01]))?$/i', $accept_header);
$xhtml_value = array_values($xhtml_value); // reset the keys
if (count($xhtml_value) == 0)
{
$xhtmlxml = floatval(0.0); //if you're not specified anywhere, you don't support it
}
else
{
// now parse the XHTML value found for any q-value
if ( strpos($xhtml_value[0], 'q') === FALSE )
{
// with no q-value explicitly set, then your XHTML support is 1
$xhtmlxml = floatval(1.0);
}
else
{
// with one specified, lets obtain it
$qloc = strpos($xhtml_value[0], 'q');
$qvalue = substr($xhtml_value[0], $qloc + 2 ); //we add two to skip past the = sign
$xhtmlxml = floatval($qvalue);
}
}
//now do the above but for text/html
$html_value = preg_grep( '/^text\/html(;q=(0\.\d{1,5}|1\.0|[01]))?$/i', $accept_header);
$html_value = array_values($html_value); //reset the keys
if (count($html_value) == 0)
{
$texthtml = floatval(0.0); // if you're not specified anywhere, you dont' support it
}
else
{
// now parse the HTML value found for any q-value
if ( strpos($html_value[0], 'q') === FALSE )
{
// with no q-value explicitly set, then your HTML support is 1
$texthtml = floatval(1.0);
}
else
{
// with one specified, let's obtain it
$qloc = strpos($html_value[0], 'q');
$qvalue = substr($html_value[0], $qloc + 2 ); // we add two to skip past the = sign
$texthtml = floatval($qvalue);
}
}
if ($xhtmlxml > $texthtml || ($xhtmlxml == $texthtml && $texthtml > 0))
{
header("Content-type: application/xhtml+xml");
}
else
{
header("Content-type: text/html; charset=UTF-8");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<!-- GWP Site -->
<!-- Copyright (c) 2006 GarbageWars Productions. All rights reserved. -->
<!-- http://www.garbagewars.com -->
<head>
<title><?php echo PAGE_TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/advertise.css" />
<link rel="stylesheet" type="text/css" href="./css/art.css" />
<link rel="stylesheet" type="text/css" href="./css/comics.css" />
<link rel="stylesheet" type="text/css" href="./css/contacts.css" />
<link rel="stylesheet" type="text/css" href="./css/donate.css" />
<link rel="stylesheet" type="text/css" href="./css/fanwork.css" />
</head>
<body>
<div id="wrapper">
<div id="header" align="center">
<div id="topmenu">
<ul>
<li class="first-li">
<a href="http://www.garbagewars.com"><img src="./images/site/buttons/home.png" alt="Home" /></a></li>
<li><a href="./comics.php"><img src="./images/site/buttons/comics.png" alt="Comics" /></a></li>
<li><a href="./art.php"><img src="./images/site/buttons/art.png" alt="Art" /></a></li>
<li><a href="./shop/"><img src="./images/site/buttons/shop.png" alt="Shop" /></a></li>
<li><a href="./extras.php"><img src="./images/site/buttons/extras.png" alt="Extras" /></a></li>
<li><a href="./contacts.php"><img src="./images/site/buttons/contacts.png" alt="Contacts" /></a></li>
<li><a href="./links.php"><img src="./images/site/buttons/links.png" alt="Links" /></a></li>
</ul>
</div>
</div>
<div id="gutter"></div>
See the art.php page code here:
<?php
// don't want any errors to be displayed...
error_reporting(0);
// This is a relative path to the web root.
$site_root_path = './';
define('IN_SITE', true);
define('PAGE_TITLE', 'Garbagewars.com > Art');
// Let's get started... :-D ... the page header
include( $site_root_path . 'includes/page_header.php' );
// The left sidebar
include( $site_root_path . 'includes/left_sidebar.php' );
?>
<div id="center-col">
<div id="logo">
<img src="./images/site/logo/gwp.png" alt="Logo" />
</div>
<div class="ad">
<?php
/*
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 2, '', '', '1', $phpAds_context);
str_replace('border=\'0\'', 'border=\'0\' /', $phpAds_raw);
echo $phpAds_raw['html'];
}
*/
?>
<br style="clear: both" />
</div>
<div class="block-container">
<div class="block-header">
<img src="./images/site/pages/art.png" alt="Art" />
</div>
<div class="block-content">
<div class="border-container">
<div class="border-container2">
<table width="522">
<tr>
<th>Avatar</th>
<th>Name / Art Gallery</th>
</tr>
</table>
<hr />
<table width="522">
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/David%20McKim.png" alt="" />
</td>
<td class="name">
<a href="http://www.garbagewars.com/gallery/thumbnails.php?album=lastupby&uid=6">David
McKim</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/Devin%20Ross.png" alt="" />
</td>
<td class="name">
<a href="#">Devin Ross</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/mari.png" alt="" />
</td>
<td class="name">
<a href="#">mari</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/Cin.png" alt="" />
</td>
<td class="name">
<a href="#">Cin</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/blurymind.png" alt="" />
</td>
<td class="name">
<a href="#">blurymind</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/Kaellia.png" alt="" />
</td>
<td class="name">
<a href="#">Kaellia</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/Akaro.png" alt="" />
</td>
<td class="name">
<a href="#">Akaro</a>
</td>
</tr>
<br />
<tr>
<td class="avatar">
<img src="http://www.garbagewars.com/news/avatars/Aanoi.png" alt="" />
</td>
<td class="name">
<a href="#">Aanoi</a>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<?php
// The right sidebar
include( $site_root_path . 'includes/right_sidebar.php' );
// The end... the page footer
include( $site_root_path . 'includes/page_footer.php' );
?>