-
AuthorPosts
-
sugiarto Friend
sugiarto
- Join date:
- November 2008
- Posts:
- 91
- Downloads:
- 6
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 4 times in 1 posts
November 20, 2008 at 6:03 am #135532Hi all,
Can anyone tell me how to add new module position? I want to add new module in position before user8/user9, width and border is the same as banner, and align is left.
Thanks in advance.
Regards,
Sugiarto.Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
November 20, 2008 at 9:01 am #279745Dear sugiarto,
Please open index.php in templates/ja_teline_ii folder, at about line 192, find script:
[PHP]<?php
$spotlight = array (‘user8′,’user9’);
$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
if( $botsl ) {
?>
<!– BEGIN: BOTTOM SPOTLIGHT –>
<div id=”ja-botsl” class=”clearfix”><?php if( $this->countModules(‘user8’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user8’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user8’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user8″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user9’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user9’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user9’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user9″ style=”xhtml” />
</div>
<?php } ?></div>
<!– END: BOTTOM SPOTLIGHT –>
<?php } ?>[/PHP]And add following script above that script:
[PHP]<?php if($this->countModules(‘new_module_name’)) : ?>
<!– BEGIN: NEW_MODULE–>
<div id=”ja-new_module_name”>
<jdoc:include type=”modules” name=”new_module_name” />
</div>
<!– END: NEW_MODULE–>
<?php endif; ?>[/PHP]Next, open template.css in templates/ja_teline_ii/css folder, add following script to the end of file:
[PHP]#ja-new_module_name {
margin: 0;
padding-top: 15px;
text-align: left;
overflow: hidden;
width: 100%;
border-top: 1px solid #CCCCCC;
}[/PHP]Then, login to Administrator, go to Extensions -> Module manager to create or edit a module, select position to new_module_name, (In joomla 1.5.x, if this position hasn’t been exist yet, you can input direct new_module_name text to position dropdown)
Save changes and then go to the main page to view changes.
Hope it helps.
1 user says Thank You to JA Developer for this useful post
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by sugiarto 15 years, 12 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum