Joomla Layout module position not displaying anything

Hi all,

I am developing a Joomla Layout for my joomla website and i am having difficulties getting a module position to be displayed on my left handside of my layout making my layout 3 coloum so if the menu called article menu is enabled for the sperefic pages it would make the page 3 colloum otherwise 2 colloums only problem is that its not displaying anything for the 3 colloum for my layout

Here is my php code.


if (mosCountModules('left')>0)
		{
			?> 
              <jdoc:include type="modules" name="left" id="artmenu"/>
                <?php
		}
		else
		{
			?>
            there is no numenu on the left
			<div id="game">
		<jdoc:include type="component" />
        </div>
			<?
		}

How can i fix this its driving me nuts for the last couple of days no information on the internet that is usful at all its just starting to pee me off,

Anyway can anyone give me a hand and help me to get my joomla website working any help would be good,

Thanks,William

Couldn’t this be achieved simply by creating a position in the Templatedetails file and then using CSS to style it when’s it called? That’s how I’d do because I’m not a PHP programmer.

yea i tried that still didnt work.

Ok, what about creating a second template and assigning it to those specific links?

full code is this


<?php



 session_start();



/**



 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.



 * @license		GNU/GPL, see LICENSE.php



 * Joomla! is free software. This version may have been modified pursuant



 * to the GNU General Public License, and as distributed it includes or



 * is derivative of works licensed under the GNU General Public License or



 * other free or open source software licenses.



 * See COPYRIGHT.php for copyright notices and details.



 */







// no direct access



defined( '_JEXEC' ) or die( 'Restricted access' );



?>



<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >



<head>



<jdoc:include type="head" />
<?php
if ( mosCountModules( 'left' ) <0) { ?>
<style type="text/css" media="screen">
	div.game
	{
		float:left;
		width:603px !important;		border-style:solid;

		border-color:#000;
	}
</style>
<?php }
else
{
	 ?>
<style type="text/css" media="screen">
div.game {width:800px!important;		border-style:solid;

		border-color:#000;}

</style>
<?php 	
}?>
<STYLE TYPE="text/css" MEDIA="screen">

  @import url(templates/mytemplate/css/style.css);



</STYLE>
<head>



<div id="container">



	<div id="header" style="background:url('templates/mytemplate/images/banner2a.jpg');background-repeat:no-repeat; width:977px;">

<div style="margin-left:495px;margin-top:62px;font-size:10px;">

	<style>

    #wall

	{

	  width:500px;

	  height:15px;

	  float:left;

	}

	.listmenu

	{

		list-style:none;

		width:50px;

		height:15px;

		float:left;

		margin-left:15px;

	}

	.break

	{

		list-style:none;

		width:50px;

		height:15px;

		float:left;

		margin-left:4px;

	}

</style>

<body>

<div id="wall">

	<ul>

    	<li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

    </ul>

</div>

</div>
</div>



        <div id="content">
        <?php
		if (mosCountModules('left')<0)
		{
			
			?><div id="game">
           <jdoc:include type="modules" name="left" /><?php
		}
		?>
		<jdoc:include type="component" />
        </div>
        <div id="nav">



                 <div id="innernav">



                   <jdoc:include type="modules" name="right" />



                   <?php



 include("demo/profile.php");?>



                  </div>



            </div>



    </div>



</div>



</body>



</html>

I am still not getting anywhere its been annoying me for last couple of days.

it should work either way if but i am using the default position left so it should work shouldnt it?

You have two open <head>s and no closes.

okay ive fixed it but it stil doesnt display my 3rd div on my left handside for my 3rd colloumn if its been enabled for my page?

What am i doing wrong?

updated code


<?php



 session_start();



/**



 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.



 * @license		GNU/GPL, see LICENSE.php



 * Joomla! is free software. This version may have been modified pursuant



 * to the GNU General Public License, and as distributed it includes or



 * is derivative of works licensed under the GNU General Public License or



 * other free or open source software licenses.



 * See COPYRIGHT.php for copyright notices and details.



 */







// no direct access



defined( '_JEXEC' ) or die( 'Restricted access' );



?>



<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >



<head>
<STYLE TYPE="text/css" MEDIA="screen">

  @import url(templates/mylayout/css/style.css);



</STYLE>
</head>



<div id="container">



	<div id="header" style="background:url('templates/mylayout/images/banner2a.jpg');background-repeat:no-repeat; width:977px;">

<div style="margin-left:495px;margin-top:62px;font-size:10px;">

	<style>

    #wall

	{

	  width:500px;

	  height:15px;

	  float:left;

	}

	.listmenu

	{

		list-style:none;

		width:50px;

		height:15px;

		float:left;

		margin-left:15px;

	}

	.break

	{

		list-style:none;

		width:50px;

		height:15px;

		float:left;

		margin-left:4px;

	}

</style>

<body>

<div id="wall">

	<ul>

    	<li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

        <li class="listmenu"><a href="">Link</a></li>

    </ul>

</div>

</div>
</div>



        <div id="content">
        <?php
		if (mosCountModules('left')<0)
		{
			
			?>
			<div style="width:200px;height:300px;float:left;"></div>
           <jdoc:include type="modules" name="left" /></div><div id="game"><?php
		}
		?>
		<jdoc:include type="component" />
        </div>
        <div id="nav">



                 <div id="innernav">



                   <jdoc:include type="modules" name="right" />



                   <?php



 include("demo/profile.php");?>



                  </div>



            </div>



    </div>



</div>



</body>



</html>