-
AuthorPosts
-
April 14, 2011 at 9:42 pm #162801
Good morning, I gently help
I want to add modules user 12 user 13 user 14 with the same formatting of 5 user user user 6 7 but copying the same code that makes me drop a module. Below I post the modified code.
Thanks in advance aid
[PHP] <!– //JA NEWS –>
<?php } ?><?php
$spotlight = array (‘user5′,’user6′,’user7’);$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.5);
if( $botsl ) {
?>
<!– BOTTOM SPOTLIGHT–>
<div id=”ja-botsl”>
<div class=”inner clearfix”><?php if( $this->countModules(‘user5’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user5″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user6’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user6’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user6’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user6″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user7’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user7’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user7’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user7″ style=”jamodule” />
</div>
<?php } ?></div></div>
<!– //BOTTOM SPOTLIGHT 2 –>
<?php } ?><?php if ( $this->countModules(‘zavale’) ) { ?>
<!– zavale –>
<div id=”zavale”>
<jdoc:include type=”modules” name=”zavale” style=”jamodule” />
</div>
<!– //zavale –>
<?php } ?>
<!– BOTTOM SPOTLIGHT–>
<div id=”ja-botsl”>
<div class=”inner clearfix”><?php if( $this->countModules(‘user12’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user12’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user12’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user12″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user13’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user13’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user13’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user13″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user14’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user14’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user14’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user14″ style=”jamodule” />
</div>
<?php } ?></div></div>
<!– //BOTTOM SPOTLIGHT 2 –>
</div>
<!– //CONTENT –>[/PHP]Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 15, 2011 at 6:48 am #386499You try with this
[PHP] <!– //JA NEWS –>
<?php } ?><?php
$spotlight = array (‘user5′,’user6′,’user7’);$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.5);
if( $botsl ) {
?>
<!– BOTTOM SPOTLIGHT–>
<div id=”ja-botsl”>
<div class=”inner clearfix”><?php if( $this->countModules(‘user5’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user5″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user6’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user6’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user6’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user6″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user7’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user7’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user7’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user7″ style=”jamodule” />
</div>
<?php } ?></div></div>
<!– //BOTTOM SPOTLIGHT 2 –>
<?php } ?><?php if ( $this->countModules(‘zavale’) ) { ?>
<!– zavale –>
<div id=”zavale”>
<jdoc:include type=”modules” name=”zavale” style=”jamodule” />
</div>
<!– //zavale –>
<?php } ?>
<?php
$spotlight = array (‘user12′,’user13′,’user13’);$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.5);
if( $botsl ) {
?>
<!– BOTTOM SPOTLIGHT–>
<div id=”ja-botsl2″>
<div class=”inner clearfix”><?php if( $this->countModules(‘user12’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user12’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user12’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user12″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user13’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user13’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user13’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user13″ style=”jamodule” />
</div>
<?php } ?><?php if( $this->countModules(‘user14’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user14’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user14’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user14″ style=”jamodule” />
</div>
<?php } ?></div></div>
<!– //BOTTOM SPOTLIGHT 2 –>
<?php } ?>
</div>
<!– //CONTENT –>
[/PHP] -
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by Saguaros 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum