Open the table...
"/mkportal/templates/default/tpl_main.php" said:
function open_main($mainwidth) {
global $mklib;
return <<<EOF
<!-- apre la tabella principale del corpo della pagina -->
<body bgcolor="#EFEFEF" onload="java script:GetPos()">
<div align="center">
<!-- Supertable open -->
<table align="center" border="5" width="85%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<!-- End Supertable open -->
<table align="center" border="0" width="{$mainwidth}" id="tabmain" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
EOF;
}
global $mklib;
return <<<EOF
<!-- apre la tabella principale del corpo della pagina -->
<body bgcolor="#EFEFEF" onload="java script:GetPos()">
<div align="center">
<!-- Supertable open -->
<table align="center" border="5" width="85%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<!-- End Supertable open -->
<table align="center" border="0" width="{$mainwidth}" id="tabmain" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
EOF;
}
Close the table...
"/mkportal/templates/default/tpl_main.php" said:
function view_footer($block) {
global $mklib;
return <<<EOF
<!-- chiusura delle tabelle restanti e footer della pagina -->
</table>
</td>
</tr>
</table>
<p align="center">{$block}</p>
<!-- Supertable close -->
</td>
</tr>
</table>
<!-- End Supertable close -->
</div>
</body>
</html>
EOF;
}
global $mklib;
return <<<EOF
<!-- chiusura delle tabelle restanti e footer della pagina -->
</table>
</td>
</tr>
</table>
<p align="center">{$block}</p>
<!-- Supertable close -->
</td>
</tr>
</table>
<!-- End Supertable close -->
</div>
</body>
</html>
EOF;
}
I tried it and it worked on my test site.
I borrowed some dropshadow graphics from one of my sites and played with MKPortal a bit. The graphic background looked great. I used a header image to close off the top, a vertically tiled background to fill in the body of the table, and a graphic to close off the bottom. All in a fixed table. I can see already that the Topsite module is going to stretch out just about any fixed layout. The forums also presented a stretching issue when nested in the portal. If I closed the left or right boxes for the forum view in the MKPortal CP it looked good. But all hades breaks loose when you click on the arrows and open up the closed boxes. It really looks like tables need to resize to the browser window to work well with this portal.
-=DKC=-













