[SOLVED] Module position breaks layout - Joomla! Forum - community, help and support
hi, wrote new module displays table images , links in it.
all pretty basic stuff. when publish it breaks site... well, breaks in firefox , ie, opera displays fine. know why is? using custom module position, moved user 3 above "top" , forced displayed guests only. if can offer on i'd thankful!
the module works absolutely fine when placed in "top" posiition didnt't create, there no distortion or anything.
but when place module in user3, position created, template goes screwy.
the code in template index.php main table follows:
am missing here?
my site can viewed @ http://www.thestudenthouse.co.uk
many thanks
all pretty basic stuff. when publish it breaks site... well, breaks in firefox , ie, opera displays fine. know why is? using custom module position, moved user 3 above "top" , forced displayed guests only. if can offer on i'd thankful!
the module works absolutely fine when placed in "top" posiition didnt't create, there no distortion or anything.
but when place module in user3, position created, template goes screwy.
the code in template index.php main table follows:
code: select all
<td valign="top" width="100%" class="a2center"><div class"main">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<?php if (moscountmodules('top')) { ?><td colspan="3" style="border-top: 3px solid #ffffff;"><br>
<div>
<center><?php mosloadmodules ( 'top' ); ?></centre>
</div><?php } ?><br>
</td></tr><tr>
[b]<center><?php if ( !$my->id ) { mosloadmodules( 'user3', -2 ); } ?></center>[/b]
</td>
</tr>
<tr>
<?php if (moscountmodules('user1')) { ?><td valign="top" style="border-top: 3px solid #ffffff;"><div>
<?php mosloadmodules ( 'user1' ); ?>
</div></td>
<td width="4" class="mod" valign="top" bgcolor="#ffffff" style="border-top: 3px solid #ffffff;"><div class="mod"> <?php } ?><?php if (moscountmodules('user2')) { ?> </div></td>
<td valign="top" style="border-top: 3px solid #ffffff;">
<div>
<?php mosloadmodules ( 'user2' ); ?>
</div>
</td><?php } ?>
</tr>
<tr align="left" valign="top">
<td colspan="3" style=" border-top: 4px solid #ffffff; padding: 5px;"><div class="main">
<?php mosmainbody(); ?>
</div></td>
</tr>
<tr>
<td colspan="3" valign="top" style="border-top: 3px solid #ffffff;"><?php if (moscountmodules('bottom')) { ?>
<div>
<center><?php mosloadmodules ( 'bottom' ); ?></center>
</div>
<?php } ?></td>
</tr>
</table>
am missing here?
my site can viewed @ http://www.thestudenthouse.co.uk
many thanks
your site gives error @ time:
parse error: parse error, unexpected $ in /home/fhlinux184/t/thestudenthouse.co.uk/user/htdocs/templates/studenthouse/index.php on line 192
Comments
Post a Comment