How To create a New Module Position in My Template - Joomla! Forum - community, help and support


hi all,

i want create module position in current template @ top right side side website name , below search module, there lots of spce available. can put login module there. there no position showing if access link here
how do it. template code below:

code: select all

<?php
defined( '_jexec' ) or die( 'restricted access' );

$background_repeat = $this->params->get("background_repeat");
$background_image = $this->params->get("background_image");
$background_color = $this->params->get("background_color");
$fontfamily = $this->params->get("fontfamily");
$fontsize = $this->params->get("fontsize");
$fontcolor = $this->params->get("fontcolor");
$linkcolor = $this->params->get("linkcolor");
$width = $this->params->get("width");
$show_date = ($this->params->get("showdate", 1) == 1)?"no":"yes";
$show_pathway = ($this->params->get("showpathway", 1) == 1)?"no":"yes";

?>
<!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 require("head_includes.php"); ?>

<link href="css/template.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="background">
  <div id="header">
   <div id="header-in">
        <?php if($show_date == "yes") {?>
        <div id="date"><?php echo jhtml::date( 'now', '%a, %d.%m.%y' ); ?></div>
        <?php } ?>
        <?php if($show_pathway == "yes") {?>
        <div id="pathway"><jdoc:include type="module" name="breadcrumbs" /></div>
        <?php } ?>
        <?php if($this->countmodules('user4')) : ?>
        <div id="search_out">
        <div id="search"><jdoc:include type="modules" name="user4" style="xhtml" /></div>
        </div>
      <?php endif; ?>

    </div>
    </div>
    <div class="clr"></div>
   
    <div id="container">

<div id="banner_out">
    <div id="banner_left">
        <div class="sitetitle"><a href="<?php echo $this->baseurl; ?>" ><?php echo $mainframe->getcfg('sitename');?></a></div>
    </div>
    <?php if($this->countmodules('banner')) : ?>
        <div id="banner"><jdoc:include type="module" name="banners" style="xhtml" /></div>
    <?php endif; ?>
</div>       

<div class="clr"></div>   
     
<div id="topmenu_out">
    <div id="topmenu_left">
        <div id="topmenu_right">
            <div id="topmenu">
                <div id="navigation"><jdoc:include type="modules" name="user3" style="xhtml" /></div>
            </div>
        </div>
    </div>
</div>
                           
<div id="left_border">
    <div id="right_border">
        <div id="maincontent">
            <div id="main">
                <?php if($this->countmodules('left')) : ?>
                    <div id="left_out"><jdoc:include type="modules" name="left" style="rounded" /></div>
                <?php endif; ?>
                <?php if($this->countmodules('right')) : ?>
                    <div id="right_out"><jdoc:include type="modules" name="right" style="rounded" /></div>
                <?php endif; ?>
           
                <div id="content_out<?php echo $contentwidth; ?>">
               
                    <?php if($this->countmodules('user1 or user2')) : ?>
                    <div class="user_bg">
                        <div class="user_left">
                            <div class="user_right">
                            <?php if($this->countmodules('user1')) : ?>
                                <div class="topmodule_user<?php echo $topuserwidth; ?>">
                                    <div class="user_inside1"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
                                </div>
                            <?php endif; ?>
                            <?php if($this->countmodules('user2')) : ?>
                                <div class="separator"></div>
                                <div class="topmodule_user<?php echo $topuserwidth; ?>">
                                    <div class="user_inside"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
                                </div>
                            <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                   
                    <div id="content">
                        <div id="content_border_right">
                            <div id="content_border_left">
                                <div id="content_bottom_right">
                                    <div id="content_bottom_left">
        <jdoc:include type="message" />
                                        <div id="component"><jdoc:include type="component" /></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
               
                </div>
               
            </div>
        </div>
    <div class="clr"></div>
                               
    <?php if($this->countmodules('user5 or user6 or user7')) : ?>
    <div id="user_bottom">
        <div class="user_bg">
            <div class="user_left">
                <div class="user_right">
                <?php if($this->countmodules('user5')) : ?>
                    <div class="bottom_user<?php echo $userwidth; ?>">
                        <div class="user_inside1"><jdoc:include type="modules" name="user5" style="xhtml" /></div>
                    </div>
                <?php endif; ?>
                <?php if($this->countmodules('user6')) : ?>
                    <div class="separator"></div>
                    <div class="bottom_user<?php echo $userwidth; ?>">
                        <div class="user_inside"><jdoc:include type="modules" name="user6" style="xhtml" /></div>
                    </div>
                <?php endif; ?>
                <?php if($this->countmodules('user7')) : ?>
                    <div class="separator"></div>
                    <div class="bottom_user<?php echo $userwidth; ?>">
                        <div class="user_inside"><jdoc:include type="modules" name="user7" style="xhtml" /></div>
                    </div>
                <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
    <?php endif; ?>
   
    </div>
</div>
                           
<div id="bottom">
    <div id="bottom_right">
        <div id="bottom_left">
            <div id="bottom_bg">
                <div id="copy">&copy; 2009 <?php echo $mainframe->getcfg('sitename');?></div>
                <div id="othermenu">
                    <div id="othermenu_in"><jdoc:include type="modules" name="user10" style="xhtml" /></div>
                </div>
            </div>
        </div>
    </div>
</div>

</div>
</div>       
</body>
</html>

hi,


use code under search modules endif


<?php if($this->countmodules('login')) : ?>
<div id="login_css"><jdoc:include type="modules" name="login" style="xhtml" /></div>
<?php endif; ?>

apply css position in right side.. , styles id login_css (user defined id one)

and under template_details.xml

write in positions

<position>login</position>

--------------------------
hopefully work you...





Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい