View Single Post
Old 25.04.2005, 20:50   #4 (permalink)
miga111
Baby Mamber
 
Join Date: Mar 2005
Posts: 7
miga111 is on a distinguished road
Default Re: editing template : planetfall...

Quote:
Originally Posted by skaz
How did you make the menus visible on both left and right in planetfall template. please reply
hi skaz ...
i did some changes on the index.php file ..

here is the code ..all you have to do is to open the index.php in planetfall folder and paste the following code

note that i had to take off the search box in the top of the page ...it didn`t work with it ,....


Code:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
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 href="<?php echo $mosConfig_live_site;?>/templates/rhuk_planetfall/css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body class="page_bg">
<a name="up" id="up"></a>
<?php
@$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) and !$_REQUEST['task'] == 'edit') ? 2 : 1;


?>
<div align="center" >
	<table width="798" border="0" cellpadding="0" cellspacing="0" class="big_frame">
	<tr>
		<td colspan="<?php echo $collspan_offset+1; ?>">
		<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/top_bar.jpg" width="100%" height="9" alt=""/>
		</td>
	</tr>
	<tr>

<td colspan="<?php echo $collspan_offset+1; ?>" height="111" width="809" background="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/mambo_header.jpg">

	
</td>

</tr>
	<tr>
		<td colspan="<?php echo $collspan_offset+1; ?>" class="silver_box" style="height:26px;">
		<div id="silver_toolbar">
			<div id="silver_date">
			<?php echo mosCurrentDate(); ?>
			</div>
			<div id="silver_menu">
			<?php mosLoadModules ( 'user3' ); ?>
			</div>
			<div style="clear: both;"></div>
		</div>
		</td>
	</tr>


<tr>
	
                        <td valign="top" class="right_box">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr valign="top">
				<td valign="top" class="right_box" width="151" style="width: 151px">
		<div id="right_box">
			<!-- far right menu -->
			<div class="leftblock" id="leftblock" style="width:143px">
			<?php mosLoadModules ( 'left' ); ?>
			</div>
			<div class="user1block" id="user1block" style="width:143px">
			<?php
			if ( mosCountModules( "user1" ) ) {
				mosLoadModules ( 'user1' );
			}
			?>
			</div>
		</div>
		</td>

	<td valign="top" class="content_box">
				<!-- main content area -->
				<div class="contentblock" id="contentblock" style="width:<?php echo 635 - ( 151 * ( $collspan_offset-1 ) )   ?>">
					
					<br />
					<?php
					if ( mosCountModules( 'top' ) ) {
						mosLoadModules ( 'top' );
					}
					mosMainBody();
					?>
					<br />
				</div>
				<?php
				if ( mosCountModules( 'bottom' ) ) { ?>
					<div class="footerblock" id="footerblock">
					<?php mosLoadModules ( 'bottom' ); ?>
					<br />
					</div>
					<?php
				}
				?>
				</td>


<?php
		if ( ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) and @!$_REQUEST['task'] == 'edit' ) {
			?>
			<td valign="top" class="middle_box" width="151" style="width:151px">
			<div id="middle_box">
				<?php
				if ( mosCountModules( 'right' ) ) {
					?>
					<div class="rightblock" id="rightblock" style="width:145px">
					<?php mosLoadModules ( 'right' ); ?>
					</div>
					<?php
				}
				if ( mosCountModules( 'user2' ) ) {
					?>
					<div class="user2block" id="user2block" style="width:143px">
					<?php mosLoadModules ( 'user2' ); ?>
					</div>
					<?php
				} ?>
			</div>
			</td>
			<?php
		}
		?>





			</tr>
			</table>
		</td>
		
		
	</tr>
	<tr>
		<td colspan="<?php echo $collspan_offset+1; ?>">
		<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/top_bar.jpg" width="100%" height="9" alt="" />
		</td>
	</tr>
	</table>
	<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<?php mosLoadModules( 'debug', -1 );?>
</body>
</html>
miga111 is offline   Reply With Quote