-
AuthorPosts
-
May 23, 2008 at 7:50 pm #128845
This is a perfect template but would love a module postion here plz !!
Any help ?
Thanks
😉Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
May 24, 2008 at 9:08 am #250406For 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 ; ?>May 24, 2008 at 11:07 am #250418Many thanks works a treat
CheersMay 24, 2008 at 2:14 pm #250428Menalto,
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?
-
AuthorPosts
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