Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • picsitech Friend
    #153059

    I am trying to find the php necessary to move user1, user2, user3, user4, and user5 to display below the content/component body position. The reason I want to do this is the front page of my website has a large vertical for users1-5.

    If a visitor uses the search field, they have to scroll past the positions to see the search results. My solution is to move the body above those users so search results appear on top. I have done this before for other templates. I am just having trouble finding the php file that echos the layout. Thank you for any advice.

    http://picsitech.com/user-positions.gif

    http://hosts4.web-host.com/~tntequip

    Sincerely,

    Joe

    picsitech Friend
    #351732

    Solved it.

    Cut code from default.php and pasted it into topsl.php
    Took the code from topsl.php and placed it where I removed the other from default.php.
    Bascially i switiched the code between two php documents that displayed the array of modules 1-5 with the code that displayed the main container.

    So i placed:

    [PHP] <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>
    <div class=”main”><div class=”ja-wrap1″><div class=”ja-wrap2 clearfix”>

    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <div class=”ja-box1″><div class=”ja-box2″>
    <?php $this->loadBlock(‘main’) ?>
    <?php $this->loadBlock(‘left’) ?>
    </div></div>
    </div>

    <?php $this->loadBlock(‘right’) ?>

    </div></div></div>
    </div>
    <!– //MAIN CONTAINER –>[/PHP]

    right below the breadcrumbs in topsl.php and placed

    [PHP]

    <?php

    $spotlight = array (‘user1′,’user2′,’user3′,’user4′,’user5’);

    $botsl = $this->calSpotlight ($spotlight,100);

    if( $botsl ) :

    ?>

    <!– TOP SPOTLIGHT –>

    <div id=”ja-topsl” class=”wrap”>

    <div class=”main”>

    <div class=”ja-wrap1″><div class=”ja-wrap2″>

    <div class=”inner clearfix”>

    <?php if( $this->countModules(‘user1’) ): ?>

    <div class=”ja-box column ja-box<?php echo $botsl[‘user1’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user1’][‘width’]; ?>;”>

    <jdoc:include type=”modules” name=”user1″ style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <?php if( $this->countModules(‘user2’) ): ?>

    <div class=”ja-box column ja-box<?php echo $botsl[‘user2’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user2’][‘width’]; ?>;”>

    <jdoc:include type=”modules” name=”user2″ style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <?php if( $this->countModules(‘user3’) ): ?>

    <div class=”ja-box column ja-box<?php echo $botsl[‘user3’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user3’][‘width’]; ?>;”>

    <jdoc:include type=”modules” name=”user3″ style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <?php if( $this->countModules(‘user4’) ): ?>

    <div class=”ja-box column ja-box<?php echo $botsl[‘user4’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user4’][‘width’]; ?>;”>

    <jdoc:include type=”modules” name=”user4″ style=”JAxhtml” />

    </div>

    <?php endif; ?>

    <?php if( $this->countModules(‘user5’) ): ?>

    <div class=”ja-box column ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>

    <jdoc:include type=”modules” name=”user5″ style=”JAxhtml” />

    </div>

    <?php endif; ?>

    </div>

    </div></div>

    </div>

    </div>

    <!– //TOP SPOTLIGHT –>
    [/PHP]

    right below the main nav and topsl inside of deafult.php

    Afterwords i had to do some css modifications to adjust margins and padding.
    The breadcrumbs position i adjusted to only display when their is content inside of it.

    Seems to be conflict free.

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

This topic contains 2 replies, has 1 voice, and was last updated by  picsitech 14 years, 3 months ago.

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