| | | |  |  | |  |
25.05.2006, 13:35
|
#1 (permalink)
| | Baby Mamber
Join Date: Nov 2004
Posts: 8
| Help with template! I've got a problem that I just can't seem to fix!
Check this screenshot: http://www.randomriot.net/screenshot.jpg
You will see a space between the main-window
and the logo-header.
THAT is the problem. I can't get rid of it and I've tried
now for some time..
Thnx in advance
Index.php: PHP 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> <SCRIPT LANGUAGE="javascript">
<!--This is one of many scripts which are available at: *---
//--http://www.JavaScript.nu/javascript *---
//--This script is FREE, but you MUST let these lines *---
//--remain if you use this script. *---
function ny_sida2(url,width,height)
{
//***---Här kan du ändra fönstrets egenskaper, t.ex. om det ska finnas ett adressfält, en statusrad etc. Testa dig fram för att se vad som ska vara vad. Värdena kan vara "yes" eller "no".
//***-------***************************************************************************************--
egenskaper="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";
egenskaper+=",width="+width;
egenskaper+=",height="+height;
unik=new Date();
unik=unik.getSeconds()+"_"+unik.getMinutes()+"_"+unik.getHours();
window.open(url,unik,egenskaper);
}
//-->
</SCRIPT> <SCRIPT LANGUAGE="javascript">
<!--This is one of many scripts which are available at: *---
//--http://www.JavaScript.nu/javascript *---
//--This script is FREE, but you MUST let these lines *---
//--remain if you use this script. *---
function ny_sida(url,width,height)
{
//***---Här kan du ändra fönstrets egenskaper, t.ex. om det ska finnas ett adressfält, en statusrad etc. Testa dig fram för att se vad som ska vara vad. Värdena kan vara "yes" eller "no".
//***-------***************************************************************************************--
egenskaper="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
egenskaper+=",width="+width;
egenskaper+=",height="+height;
unik=new Date();
unik=unik.getSeconds()+"_"+unik.getMinutes()+"_"+unik.getHours();
window.open(url,unik,egenskaper);
}
//-->
</SCRIPT>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Random Riot©</title>
<LINK href="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/css/template_css.css" rel="stylesheet" type="text/css"/>
<style type="text/css" media="screen">
<!--
.albums { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif }
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
top: 145px;
left: 148px;
}
--></style>
</head>
<?php mosShowHead(); ?>
<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
{
require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
}?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<body bgcolor="black" style="background-image: url(http://www.randomriot.net/templates/akodarkgem/bg.gif); background-attachment: fixed;" marginheight="10" topmargin="0">
<div align="center">
<table width="801" border="0" cellspacing="0" cellpadding="0"><tr><td><IMG SRC="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/toplogo.gif"></td></tr><tr><td><IMG SRC="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/Scratch-Frame-Bottom_07.gif"></td></tr></table>
<table width="801" height="590" border="0" cellspacing="0" cellpadding="0">
<tr valign="top" height="11">
<td rowspan="2" width="289" style=" background-image: url(<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/Scratch-Frame-Bottom_03.gif); background-repeat: no-repeat;"><table width="262" height="531" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td height="405"><div align="left"><img src="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/menu.jpg" width="184" height="405" border="0" usemap="#Map" /></div></td>
</tr>
</table></td>
<tr valign="top">
<td valign="top" bgcolor="#000000" width="483" style=" background-image: url(<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/rightframebg.jpg); background-repeat: no-repeat; background-position: -px 0 ;"><BR />
<DIV STYLE="width: 480px; height: 500px; overflow: auto">
<table width="425" height="500" border="0" align="center" cellpadding="8" background="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/mainbg.jpg!">
<tr><td width="425" valign="top">
<?php mosMainBody(); ?> </td>
</table></div></td>
<td width="29" background="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/Scratch-Frame-Bottom_05.gif"><img src="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/Scratch-Frame-Bottom_05.gif" alt="" width="29" height="547" border="0"></td>
</tr>
<tr>
<td colspan="3"><img src="<?php echo $mosConfig_live_site; ?>/templates/akodarkgem/images/Scratch-Frame-Bottom_06.gif" alt="" width="801" height="33" border="0"></td>
</tr>
</table>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<td align="center" width="150"><?php mosLoadModules ( "counter" ); ?></td>
<td width="500">
<div align="center">
<font size="-1">© 2006 <a href="http://www.Randomriot.net">RandomRiot.net</a>.</a>. ALL RIGHTS RESERVED! </font>
</div>
</td>
<td><A href="index.php?option=com_login&Itemid=57">Admin</A> <?php if ( $my->id ) {
?><A href="javascript:ny_sida('index2.php?option=com_content&task=new§ionid=1&Itemid=0','795','365');">Lägg till Nyhet</A><?php
} ?></td> </table>
</div>
<map name="Map" id="Map"><area shape="rect" coords="6,4,87,40" href="index.php?option=com_frontpage&Itemid=1" />
<area shape="rect" coords="9,42,94,74" href="index.php?option=com_wrapper&Itemid=47" />
<area shape="rect" coords="8,77,87,112" href="index.php?option=com_files&Itemid=52" />
<area shape="rect" coords="9,114,129,145" href="#" /><!"index.php?option=com_wrapper&Itemid=51"!>
<area shape="rect" coords="6,149,120,181" href="#" /><area shape="rect" coords="7,184,108,219" href="index.php?option=com_zoom&Itemid=28" />
<area shape="rect" coords="8,223,180,254" href="index.php?option=com_wrapper&Itemid=46" />
<area shape="rect" coords="8,258,139,289" href="index.php?option=com_wrapper&Itemid=49" />
<area shape="rect" coords="9,292,153,326" href="javascript:ny_sida('http://www.randomriot.net/forum','800','600');" />
<area shape="rect" coords="7,330,87,361" href="index.php?option=com_wrapper&Itemid=53" />
<area shape="rect" coords="8,364,121,401" href="index.php?option=com_contact&catid=12&Itemid=3" />
</map></body>
</html> |
| |
31.05.2006, 19:53
|
#2 (permalink)
| | Baby Mamber
Join Date: May 2006
Posts: 4
| Re: Help with template! It's just a fault in the table, starting on line 273:
line 277: delete rowspan="2"
line 289: delete <tr valign="top">
that should help
greetings |
| |
31.05.2006, 20:06
|
#3 (permalink)
| | Baby Mamber
Join Date: Nov 2004
Posts: 8
| Re: Help with template! Quote: |
Originally Posted by drDamage It's just a fault in the table, starting on line 273:
line 277: delete rowspan="2"
line 289: delete <tr valign="top">
that should help
greetings | OMG! Thanx a thousand times! Worked perfectly...
Apperantly I missed the <TR valign="top"> everytime  |
| |
31.05.2006, 20:56
|
#4 (permalink)
| | Baby Mamber
Join Date: May 2006
Posts: 4
| Re: Help with template! There are still some minor bugs in the code.
For example:
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
should be <meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
Also the img tags should be closed ("... />")
There's a table without tr tags.
And you better use
<table ... style="background-image:url(http:.. .jpg)">
instead of <table ... background="http:... .jpg">
... |
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT +2. The time now is 01:28. | | | |