Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • beautifaye Friend
    #128845

    This is a perfect template but would love a module postion here plz !!
    Any help ?
    Thanks
    😉

    Menalto Friend
    #250406

    For Joomla 1.0.xx:
    Open up the index.php file and find this:


    <?php if(!$tmpTools->isFrontPage()) : ?>
    <?php mosMainBody(); ?>

    Add this code above:


    <?php if(mosCountModules('yourmodule')) : ?>
    <!-- BEGIN: YOURMODULE -->
    <div id="ja-yourmodule">
    <?php mosLoadModules('yourmodule', 0); ?>
    </div>
    <!-- END: YOURMODULE -->
    <?php endif; ?>

    So it will look like this:


    <?php if(mosCountModules('yourmodule')) : ?>
    <!-- BEGIN: YOURMODULE -->
    <div id="ja-yourmodule">
    <?php mosLoadModules('yourmodule', 0); ?>
    </div>
    <!-- END: YOURMODULE -->
    <?php endif; ?>
    <?php if(!$tmpTools->isFrontPage()) : ?>
    <?php mosMainBody(); ?>
    <?php endif; ?>

    The save and open the css file for the template.
    Add this code at the bottom:


    #ja-yourmodule {
    margin: 0;
    padding-top: 15px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #CCCCCC;
    }

    For Joomla 1.5.3


    <?php if(!$tmpTools->isFrontPage()) : ?>
    <jdoc:include type="component" />
    <?php endif; ?>

    Add this code above:


    <?php if($this->countModules('yourmodule')) : ?>
    <!-- BEGIN: YOURMODULE -->
    <div id="ja-yourmodule">
    <jdoc:include type="modules" name="yourmodule" />
    </div>
    <!-- END: YOURMODULE -->
    <?php endif; ?>

    So it will look like this:


    <?php if($this->countModules('yourmodule')) : ?>
    <!-- BEGIN: YOURMODULE -->
    <div id="ja-yourmodule">
    <jdoc:include type="modules" name="yourmodule" />
    </div>
    <!-- END: YOURMODULE -->
    <?php endif; ?>
    <?php if(!$tmpTools->isFrontPage()) : ?>
    <jdoc:include type="component" />
    <?php endif; ?>

    The save and open the css file for the template.
    Add this code at the bottom:


    #ja-yourmodule {
    margin: 0;
    padding-top: 15px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #CCCCCC;
    }

    You can change yourmodule to any name you want, but make it a unique name to prevent conflict with other modules.

    If you wanna have the module as seen on the image here you can place it a little bit different(This is shown on Joomla 1.5.3):
    Find this:


    <?php if($tmpTools->isFrontPage()) : ?>
    <div id="ja-breadcrumb">
    <jdoc:include type="module" name="breadcrumbs" />
    </div>
    <?php endif ; ?>

    And paste this code above:


    <?php if($this->countModules('yourmodule')) : ?>
    <!-- BEGIN: YOURMODULE -->
    <div id="ja-yourmodule">
    <jdoc:include type="modules" name="yourmodule" />
    </div>
    <!-- END: YOURMODULE -->
    <?php endif; ?>

    So it will look like this:


    <?php if($this->countModules('yourmodule')) : ?>
    <!-- BEGIN: YOURMODULE -->
    <div id="ja-yourmodule">
    <jdoc:include type="modules" name="yourmodule" />
    </div>
    <!-- END: YOURMODULE -->
    <?php endif; ?>
    <?php if($tmpTools->isFrontPage()) : ?>
    <div id="ja-breadcrumb">
    <jdoc:include type="module" name="breadcrumbs" />
    </div>
    <?php endif ; ?>

    beautifaye Friend
    #250418

    Many thanks works a treat
    Cheers

    ralley Friend
    #250428

    Menalto,

    Thanks so much for the great tip!! I noticed in the picture you provided of your site that you have moved one of two columns to the left hand side of the page. Would you mind posting how you accomplished this as well?

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  ralley 16 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum