Проблем с таблица

m1t3

Registered
Вижте най-долу в www.potter-life.com
Таблицата как не свършва
не знам защо е така уж затворих всички тагове
а след нея имам надпис за лиценза и той сега не се вижда
как да го оправя това
 
Ами на едно място има само 2 кода за начало на таблица и 4 кода, с които се завършва. Предполагам,че това е възможен проблем. Все пак страницата е пхп и аз виждам това,което ми показва браузъра така, че без да ми дадеш кода на страницата мога да направя само това.
 
Код:
 <?php
/**
* @version $Id: index.php 6022 2006-12-18 22:30:07Z friesengeist $
* @package www.potter-life.com
* @copyright Copyright (C) 2007 www.potter-life.com
* @license
* BG Harry Potter site
* 
* 
*
* 
*/

// Set flag that this is a parent file
define( '_VALID_MOS', 1 );

// checks for configuration file, if none found loads installation page
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
	$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
	header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" );
	exit();
}

require( 'globals.php' );
require_once( 'configuration.php' );

// SSL check - $http_host returns <live site url>:<port number if it is 443>
$http_host = explode(':', $_SERVER['HTTP_HOST'] );
if( (!empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr( $mosConfig_live_site, 0, 8 ) != 'https://' ) {
	$mosConfig_live_site = 'https://'.substr( $mosConfig_live_site, 7 );
}

require_once( 'includes/joomla.php' );

//Installation sub folder check, removed for work with SVN
if (file_exists( 'installation/index.php' ) && $_VERSION->SVN == 0) {
	define( '_INSTALL_CHECK', 1 );
	include ( $mosConfig_absolute_path .'/offline.php');
	exit();
}

// displays offline/maintanance page or bar
if ($mosConfig_offline == 1) {
	require( $mosConfig_absolute_path .'/offline.php' );
}

// load system bot group
$_MAMBOTS->loadBotGroup( 'system' );

// trigger the onStart events
$_MAMBOTS->trigger( 'onStart' );

if (file_exists( $mosConfig_absolute_path .'/components/com_sef/sef.php' )) {
	require_once( $mosConfig_absolute_path .'/components/com_sef/sef.php' );
} else {
	require_once( $mosConfig_absolute_path .'/includes/sef.php' );
}
require_once( $mosConfig_absolute_path .'/includes/frontend.php' );

// retrieve some expected url (or form) arguments
$option = strval( strtolower( mosGetParam( $_REQUEST, 'option' ) ) );
$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', null ) );

if ($option == '') {
	if ($Itemid) {
		$query = "SELECT id, link"
		. "\n FROM #__menu"
		. "\n WHERE menutype = 'mainmenu'"
		. "\n AND id = " . (int) $Itemid
		. "\n AND published = 1"
		;
		$database->setQuery( $query );
	} else {
		$query = "SELECT id, link"
		. "\n FROM #__menu"
		. "\n WHERE menutype = 'mainmenu'"
		. "\n AND published = 1"
		. "\n ORDER BY parent, ordering"
		;
		$database->setQuery( $query, 0, 1 );
	}
	$menu = new mosMenu( $database );
	if ($database->loadObject( $menu )) {
		$Itemid = $menu->id;
	}
	$link = $menu->link;
	if (($pos = strpos( $link, '?' )) !== false) {
		$link = substr( $link, $pos+1 ). '&Itemid='.$Itemid;
	}
	parse_str( $link, $temp );
	/** this is a patch, need to rework when globals are handled better */
	foreach ($temp as $k=>$v) {
		$GLOBALS[$k] = $v;
		$_REQUEST[$k] = $v;
		if ($k == 'option') {
			$option = $v;
		}
	}
}
if ( !$Itemid ) {
// when no Itemid give a default value
	$Itemid = 99999999;
}

// mainframe is an API workhorse, lots of 'core' interaction routines
$mainframe = new mosMainFrame( $database, $option, '.' );
$mainframe->initSession();

// trigger the onAfterStart events
$_MAMBOTS->trigger( 'onAfterStart' );

// checking if we can find the Itemid thru the content
if ( $option == 'com_content' && $Itemid === 0 ) {
	$id 	= intval( mosGetParam( $_REQUEST, 'id', 0 ) );
	$Itemid = $mainframe->getItemid( $id );
}

/** do we have a valid Itemid yet?? */
if ( $Itemid === 0 ) {
	/** Nope, just use the homepage then. */
	$query = "SELECT id"
	. "\n FROM #__menu"
	. "\n WHERE menutype = 'mainmenu'"
	. "\n AND published = 1"
	. "\n ORDER BY parent, ordering"
	;
	$database->setQuery( $query, 0, 1 );
	$Itemid = $database->loadResult();
}

// patch to lessen the impact on templates
if ($option == 'search') {
	$option = 'com_search';
}

// loads english language file by default
if ($mosConfig_lang=='') {
	$mosConfig_lang = 'english';
}
include_once( $mosConfig_absolute_path .'/language/' . $mosConfig_lang . '.php' );

// frontend login & logout controls
$return 	= strval( mosGetParam( $_REQUEST, 'return', NULL ) );
$message 	= intval( mosGetParam( $_POST, 'message', 0 ) );
if ($option == 'login') {
	$mainframe->login();

	// JS Popup message
	if ( $message ) {
		?>
		<script language="javascript" type="text/javascript">
		
		</script>
		<?php
	}

	if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
	// checks for the presence of a return url
	// and ensures that this url is not the registration or login pages
		// If a sessioncookie exists, redirect to the given page. Otherwise, take an extra round for a cookiecheck
		if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
			mosRedirect( $return );
		} else {
			mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode( $return ) );
		}
	} else {
		// If a sessioncookie exists, redirect to the start page. Otherwise, take an extra round for a cookiecheck
		if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
			mosRedirect( $mosConfig_live_site .'/index.php' );
		} else {
			mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode( $mosConfig_live_site .'/index.php' ) );
		}
	}

} else if ($option == 'logout') {
	$mainframe->logout();

	// JS Popup message
	if ( $message ) {
		?>
		<script language="javascript" type="text/javascript">
		
		</script>
		<?php
	}

	if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
	// checks for the presence of a return url
	// and ensures that this url is not the registration or logout pages
		mosRedirect( $return );
	} else {
		mosRedirect( $mosConfig_live_site.'/index.php' );
	}
} else if ($option == 'cookiecheck') {
	// No cookie was set upon login. If it is set now, redirect to the given page. Otherwise, show error message.
	if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
		mosRedirect( $return );
	} else {
		mosErrorAlert( _ALERT_ENABLED );
	}
}

/** get the information about the current user from the sessions table */
$my = $mainframe->getUser();

// detect first visit
$mainframe->detect();

// set for overlib check
$mainframe->set( 'loadOverlib', false );

$gid = intval( $my->gid );

// gets template for page
$cur_template = $mainframe->getTemplate();
/** temp fix - this feature is currently disabled */

/** @global A places to store information from processing of the component */
$_MOS_OPTION = array();

// precapture the output of the component
require_once( $mosConfig_absolute_path . '/editor/editor.php' );

ob_start();

if ($path = $mainframe->getPath( 'front' )) {
	$task 	= strval( mosGetParam( $_REQUEST, 'task', '' ) );
	$ret 	= mosMenuCheck( $Itemid, $option, $task, $gid );

	if ($ret) {
		require_once( $path );
	} else {
		mosNotAuth();
	}
} else {
	header( 'HTTP/1.0 404 Not Found' );
	echo _NOT_EXIST;
}

$_MOS_OPTION['buffer'] = ob_get_contents();

ob_end_clean();

initGzip();

header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );

// display the offline alert if an admin is logged in
if (defined( '_ADMIN_OFFLINE' )) {
	include( $mosConfig_absolute_path .'/offlinebar.php' );
}

// loads template file
if ( !file_exists( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' ) ) {
	echo _TEMPLATE_WARN . $cur_template;
} else {
	require_once( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' );
	echo '';
}

// displays queries performed for page
if ($mosConfig_debug) {
	echo $database->_ticker . ' queries executed';
	echo '<pre>';
 	foreach ($database->_log as $k=>$sql) {
 		echo $k+1 . "\n" . $sql . '<hr />';
	}
	echo '</pre>';
}

doGzip();
?>
<script> 
    function disableselect(e){return false} 
    function reEnable(){return true} 
    document.onselectstart=new Function ("return false") 
    if (window.sidebar) 
</script> 
<script> 
function openPopup(url,width,height){ 
window.open(url,'popup','toolbar=0,location=0,directories=0, statusbar=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height); 
} 
</script>
 
Пробвай така:

Код:
<?php
<script> 
    function disableselect(e){return false} 
    function reEnable(){return true} 
    document.onselectstart=new Function ("return false") 
    if (window.sidebar) 
</script> 
<script> 
function openPopup(url,width,height){ 
window.open(url,'popup','toolbar=0,location=0,directories=0, statusbar=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height); 
} 
</script>
?>

Или така:

Код:
<?php
echo '<script> 
    function disableselect(e){return false} 
    function reEnable(){return true} 
    document.onselectstart=new Function ("return false") 
    if (window.sidebar) 
</script> '
echo '<script> 
function openPopup(url,width,height){ 
window.open(url,'popup','toolbar=0,location=0,directories=0, statusbar=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height); 
} 
</script>'
?>

Не съм сигурен дали е от това, но се надявам да стане.
 
Това ще го пробвам ей сега, но имам и още един проблем
Отворете сайта с опера и ИЕ
Вижте как опера ми центрира всичко на което не съм казал изрично да стои в ляво
Това как да го оправя автоматично да се настройва в ляво, а аз да си го оправям да стои в центъра ако искам
 
Код:
 <?php
/**
* TheTrio - Potter-life.com template
* @version 1.0
* @TheTrio
* @copyright (C) 2005 by m1t3 Potter-life.com
* @This template is released under the GNU/GPL License
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!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">
<head>
<?php if ( $my->id ) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/templates/<?php echo $cur_template; ?>/css/template_css.css" />
<link rel="shortcut icon" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/images/favicon.ico"/>
<script src='templates/thetrio/fade.js' language='Javascript'></script>
</head>

<body>
<div align="center">
<table width="100%" height="82%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<p align="center">
<a href="http://www.potter-life.com"><img border="0" src="templates/thetrio/images/header.gif" width="722" bordercolor="#800000" height="282" alt="Potter-Life.com"></p></a>
<table border="0" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td valign="top" width="150"><div align="center">
				<table border="1" width="100%" cellspacing="0" cellpadding="10" bordercolor="#630021" style="border-collapse: collapse">
					<tr>
						<td valign="top"><?php mosLoadModules ( "left" ); ?>
						<p> </td>
					</tr>
				</table>
			</div>

		<br>
 </td>
		<td valign="top" width="422"><div>
			<table border="1" width="100%" width="100%" bordercolor="#630021" style="border-collapse: collapse">
				<tr>
					<td><img hspace="4" src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" border="0" alt="arrow" /><?php include $GLOBALS['mosConfig_absolute_path'] . '/pathway.php'; ?><br>
 <div align="center">
				<table border="0" width="100%" cellspacing="0" cellpadding="10">
					<?php
          if (mosCountModules('top')>0) {
            ?>
<tr>
						<td>
							<?php mosLoadModules ( "top" ); ?>
						</td>
					</tr><?php
          }
        ?>
					<tr>
						<td>
							<?php mosMainBody(); ?></td>
					</tr>
				</table>
			</div>
			<p> </td>
				</tr>
			</table>
		</div>
		</td>
		<td valign="top" width="150"><div>
				<table border="1" width="100%" width="100%" cellspacing="0" cellpadding="10" bordercolor="#630021" style="border-collapse: collapse">
					<tr>
						<td>
						<p align="left"><?php mosLoadModules ( "right" ); ?>
						<p align="left"> </td>
					</tr>
				</table>
				</div>

		<br>
 </td>
	</tr>
</table>
<p> </p>
</td></tr></table>
				</div>
<table border="0" width="100%" cellspacing="0" cellpadding="0" " height="80">
	<tr>
		<td align="center"><font size="1" face="Arial">
			<a target="_blank" href="http://www.potter-life.com">
			www.potter-life.com</a></font><font color="#CC6699"><br>
			</font>
			<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?></td>
	</tr>
</table>		</body>

</html>
 
Дам... понеже никъде нищо не видях, и затова се занавих, но ето къде е проблема.


Код:
<a title="Tyxo.bg counter" href="http://www.tyxo.bg/?17169" target="_blank"><img height="15" alt="Tyxo.bg counter" src="/books/broq4.gif" width="80" border="0" /></a><noscript />

Оправи кода на тиксото. Може би е ето така.

Код:
<noscript><a title="Tyxo.bg counter" href="http://www.tyxo.bg/?17169" target="_blank"><img height="15" alt="Tyxo.bg counter" src="/books/broq4.gif" width="80" border="0" /></a></noscript>

не знам какъв му е кода, но проблема е от него.
 
m1t3 каза:
Това ще го пробвам ей сега, но имам и още един проблем
Отворете сайта с опера и ИЕ
Вижте как опера ми центрира всичко на което не съм казал изрично да стои в ляво
Това как да го оправя автоматично да се настройва в ляво, а аз да си го оправям да стои в центъра ако искам

Tenks а за това нещо да ми кажете :(
ПП : Ей сега ще го пробвам да го оправя за туксото
 
Ами няма ли начин някъде от темплейта още да се зададе автоматично подреждане ляво
 
m1t3 каза:
Ами няма ли начин някъде от темплейта още да се зададе автоматично подреждане ляво

В смисъл всичко да е в ляво и вече само аз където съм му задал център да се центрира
защото в други сайтове не става така, а при мене става :(
да не съм объркал някъде
 

Back
Горе