Hello’
Was wondering how can i fix my whos-online page. I can’t find a way to put it in the center of the area where it needs to be. Thanks
Looks centered to me, unless I’m missing something.
Looked at your page with 3 different browsers and they all showed the same thing…the top portion of the page is off center to the right. Are you using css on your page? Might help if you post the code for that page…
This is the code for it…I think it’s what you want to see.
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (Canada/World-ML template set)
############################################################################
#
# Project: Sample Included Website Design
# Module: sample.php
# Purpose: Sample Page
# Authors: Kevin W. Reed <[email protected]>
# TNET Services, Inc.
#
# Copyright: (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
############################################################################
# This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once("common.php");
############################################################################
$TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('Sample Blank Page');
$showGizmo = true; // set to false to exclude the gizmo
include("top.php");
############################################################################
?>
</head>
</script>
<body style="background-attachment: fixed; background-repeat: no-repeat;" background="images/sky-10.jpg">
<body>
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
?>
<div id="main-copy">
<table border="0" width="655"><td align="center">
<tr>
<td> <?php
error_reporting(E_ALL ^ E_NOTICE); // Report all errors except E_NOTICE warnings
ini_set('display_errors', 1); // turn error reporting on
//ini_set('log_errors', 1); // log errors
//ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); // where to log errors
// include the who's online functions
require ('include-whos-online-header.php');
$whos_online_records = update_whos_online();
// begin whos-online login check
$passed_login = false;
if ($C['enable_password_protect']) {
$passed_login = process_login();
}
?>
<!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" xml:lang="en" lang="en-US">
<head>
<title>Who's Online</title>
<meta name="description" content="Who's on this web site right now." />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=ISO-8859-1" />
<!-- begin whos online page header code -->
<?php
check_for_settings();
if( isset($_GET['refresh']) && is_numeric($_GET['refresh']) ){
$query = 'refresh='. $_GET['refresh'];
if( isset($_GET['show']) ) {
if ( $_GET['show'] == 'all' || $_GET['show'] == 'bots' || $_GET['show'] == 'guests' ){
$query .= '&show='. $_GET['show'];
}
}
if( isset($_GET['bots']) && $_GET['bots'] == 'show') {
$query .= '&bots=show';
}
echo '<meta http-equiv="refresh" content="' . $_GET['refresh'] . ';URL=' . $C['filename_whos_online'] . '?' . $query . '" />
';
}
?>
<script type="text/javascript" language="JavaScript">
<!--
function who_is(query) {
var whoisurl = '<?php echo $C['whois_url'] ?>' + query;
window.open(whoisurl,"who_is_lookup","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
}
//-->
</script>
<!-- end whos online page header code -->
</head>
<body>
<div id="main-copy">
<h1>Who's Online</h1>
<?php include($C['files_path'].'include-whos-online-page.php'); ?>
</div><!-- end main-copy -->
<tr>
<td align="center"><b><font face="Arial" color="#000080">WORLD VISITORS
AND ON-LINE MAP</font></b></td>
</tr>
<tr>
<td> <img src="http://www.sekywx.com/weather/wo-worldmap.php?time=15&units=minutes&map=1&pin=1&pins=on&text=on&textcolor=336699&textshadow=FFFFFF&textalign=cb&ul_lat=0&ul_lon=0&lr_lat=360&lr_lon=180" alt="Online Map">
</td>
</tr>
</tr>
</table><p></p>
<table border="0" width="655">
<tr>
<td bgcolor="#D3E8FE"> <?php echo $wo_record_array['now']; ?>
</td>
</tr>
<tr>
<td bgcolor="#D9FFD9"> <?php echo $wo_record_array['today']; ?></td>
</tr>
<tr>
<td bgcolor="#FFEAEE"> <?php echo $wo_record_array['month']; ?></td>
</tr>
<tr>
<td bgcolor="#EAFFFD"> <?php echo $wo_record_array['year']; ?>
</td>
</tr>
<tr>
<td bgcolor="#EEEEEE"> <?php echo $wo_record_array['all']; ?>
</td>
</tr>
</table>
<?php
############################################################################
include("footer.php");
############################################################################
# End of Page
############################################################################
?>