-
AuthorPosts
-
April 16, 2008 at 10:19 pm #127611
I’ ve create user14, user15, user16, user17, modules and trying to place them below user 1, 2, 5, 6, replaced with art banner modules. first user module (user14) scroll to a third line.
here is the code:
<blockquote><?php } ?><!– END: MAIN NAVIGATION –>
<?php
$topspotlight = array (‘user1’, ‘user2′,’user5′,’user6’);
$topsl = calSpotlight ($topspotlight);
if( $topsl ) {
?>
<!– BEGIN: TOP SPOTLIGHT –>
<div id=”ja-topslwrap”>
<div id=”ja-topsl”><div id=”innerpad” class=”clearfix”>
<?php if( mosCountModules(‘user1’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user1’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″><div class=”innerpad2″>
<?php mosLoadModules(‘user1’, -2); ?>
</div></div>
</div>
<?php } ?>
<?php if( mosCountModules(‘user2’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user2’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″><div class=”innerpad2″>
<?php mosLoadModules(‘user2’, -2); ?>
</div></div>
</div>
<?php } ?>
<?php if( mosCountModules(‘user5’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user5’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″><div class=”innerpad2″>
<?php mosLoadModules(‘user5’, -2); ?>
</div></div>
</div>
<?php } ?>
<?php if( mosCountModules(‘user6’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user6’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″><div class=”innerpad2″>
<?php mosLoadModules(‘user6’, -2); ?>
</div></div>
</div>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user6’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″>
<div class=”innerpad2″>
<?php } ?>
</div>
</div>
</div>
<?php if( mosCountModules(‘user14’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user1’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″>
<div class=”innerpad2″>
<?php mosLoadModules(‘user14’, -2); ?>
</div>
</div>
</div>
<?php } ?>
<?php if( mosCountModules(‘user15’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user2’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″>
<div class=”innerpad2″>
<?php mosLoadModules(‘user15’, -2); ?>
</div>
</div>
</div>
<?php } ?>
<?php if( mosCountModules(‘user16’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user5’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″>
<div class=”innerpad2″>
<?php mosLoadModules(‘user16’, -2); ?>
</div>
</div>
</div>
<?php } ?>
<?php if( mosCountModules(‘user17’) ) {?>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user6’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″>
<div class=”innerpad2″>
<?php mosLoadModules(‘user17’, -2); ?>
</div>
</div>
</div>
<div class=”ja-box<?php echo $topsl[‘modules’][‘user6’]; ?>” style=”width: <?php echo $topsl[‘width’]; ?>;”>
<div class=”innerpad1″>
<div class=”innerpad2″>
<?php } ?>
</div>
</div>
</div>
</div>
</div></div>
<!– END: TOP SPOTLIGHT –></blockquote>
Your help is appreciated.
Regards
T.L.Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 17, 2008 at 7:38 am #245750Hi xpnetxp !
You add this following code section below code section for user1,user2,user5,user6 :
<?php
$topspotlight = array ('user14', 'user15','user16','user17');
$topsl = calSpotlight ($topspotlight);
if( $topsl ) {
?>
<!-- BEGIN: TOP SPOTLIGHT -->
<div id="ja-topslwrap">
<div id="ja-topsl"><div id="innerpad" class="clearfix"><?php if( mosCountModules('user14') ) {?>
<div class="ja-box<?php echo $topsl['modules']['user14']; ?>" style="width: <?php echo $topsl['width']; ?>;">
<div class="innerpad1"><div class="innerpad2">
<?php mosLoadModules('user14', -2); ?>
</div></div>
</div>
<?php } ?><?php if( mosCountModules('user15') ) {?>
<div class="ja-box<?php echo $topsl['modules']['user15']; ?>" style="width: <?php echo $topsl['width']; ?>;">
<div class="innerpad1"><div class="innerpad2">
<?php mosLoadModules('user15', -2); ?>
</div></div>
</div>
<?php } ?><?php if( mosCountModules('user16') ) {?>
<div class="ja-box<?php echo $topsl['modules']['user16']; ?>" style="width: <?php echo $topsl['width']; ?>;">
<div class="innerpad1"><div class="innerpad2">
<?php mosLoadModules('user16', -2); ?>
</div></div>
</div>
<?php } ?><?php if( mosCountModules('user17') ) {?>
<div class="ja-box<?php echo $topsl['modules']['user17']; ?>" style="width: <?php echo $topsl['width']; ?>;">
<div class="innerpad1"><div class="innerpad2">
<?php mosLoadModules('user17', -2); ?>
</div></div>
</div>
<?php } ?></div></div>
</div>
<!-- END: TOP SPOTLIGHT -->
<?php } ?>good luck !
1 user says Thank You to Sherlock for this useful post
April 20, 2008 at 6:42 pm #246112Hello hainn84,
sorry for the delay re: & thanks for the coding. works like a charm 🙂
Best Regards
T.L.Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by xpnetxp 16 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum