test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • treybraid Friend
    #153621

    First I went in and created a new module position below content area… it renders fine except the scroller although set to 100% it flows outside of the wrapper…

    http://www.lagrangedevelopment.com

    This is the module I am using IMAGE CRAWLER

    The module position I created is ” scroller “… I have not added any styling to the template.css yet…What would I need to add to pull the width back and within the wrapper of the page/ template?

    Thanks
    Trey

    treybraid Friend
    #353068

    Anyone have any idea’s????

    treybraid Friend
    #353075

    Is their anyone than can offer some insight… Please!!!

    treybraid Friend
    #353079

    :confused:this is from the default.php file in the plugins_system>jat3>base themes>default>page folder:

    as you can see when viewing my site http://www.lagrangedevelopment.com

    …for some reason both the showcase and scroller mods are outside the wrapper of the page/ template… what did i do wrong…

    <?php
    /*
    # ————————————————————————
    # JA T3v2 Plugin – Template framework for Joomla 1.5
    # ————————————————————————
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license – GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details
    # on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.comhttp://www.joomlancers.com.
    # ————————————————————————
    */
    ?>
    <?php if ($this->isIE() && ($this->isRTL())) { ?>
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
    <?php } else { ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <?php } ?>

    <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>”>

    <head>
    <jdoc:include type=”head” />

    <?php //gen head base on theme info
    //$this->head();
    $this->showBlock (‘head’);
    ?>

    <?php
    $blocks = T3Common::node_children($this->getBlocksXML (‘head’), ‘block’);
    foreach ($blocks as $block) :
    $this->showBlock ($block);
    endforeach;
    ?>

    <?php echo $this->loadBlock (‘css’) ?>
    </head>

    <body id=”bd” class=”<?php echo $this->getBodyClass();?>”>
    <div id=”ja-wrapper”>
    <a name=”Top” id=”Top”></a>

    <?php
    $blocks = T3Common::node_children($this->getBlocksXML (‘top’), ‘block’);
    foreach ($blocks as $block) :
    $this->showBlock ($block);
    endforeach;
    ?>

    <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’)?$this->getColumnWidth(‘cls_w’):’ja-mf’; ?>”>
    <?php $this->genBlockBegin ($this->getBlocksXML (‘middle’)) ?>
    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <!– CONTENT –>
    <div id=”ja-main” style=”width:<?php echo $this->getColumnWidth(‘m’) ?>%”>
    <div class=”inner clearfix”>

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

    <?php
    //content-mass-top
    if($this->hasBlock(‘content-mass-top’)) :
    $block = $this->getBlockXML (‘content-mass-top’);
    ?>
    <div id=”ja-content-mass-top” class=”ja-mass ja-mass-top clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php

    endif; ?>

    <div id=”ja-contentwrap” class=”clearfix <?php echo $this->getColumnWidth(‘cls_m’); ?>”>
    <div id=”ja-content” class=”column” style=”width:<?php echo $this->getColumnWidth(‘cw’) ?>%”>
    <div id=”ja-current-content” class=”column” style=”width:<?php echo $this->getColumnWidth(‘c’) ?>%”>
    <?php
    //content-top
    if($this->hasBlock(‘content-top’)) :
    $block = $this->getBlockXML (‘content-top’);
    ?>
    <div id=”ja-content-top” class=”ja-content-top clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    <?php if (!$this->getParam (‘hide_content_block’, 0)): ?>
    <div id=”ja-content-main” class=”ja-content-main clearfix”>
    <?php echo $this->showBlock (‘content’) ?>
    </div>
    <?php endif ?>

    <?php
    //content-bottom
    if($this->hasBlock(‘content-bottom’)) :
    $block = $this->getBlockXML (‘content-bottom’);
    ?>
    <div id=”ja-content-bottom” class=”ja-content-bottom clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>
    </div>

    <?php
    //inset1
    if($this->hasBlock(‘inset1’)) :
    $block = $this->getBlockXML (‘inset1’);
    ?>
    <div id=”ja-inset1″ class=”ja-col column ja-inset1″ style=”width:<?php echo $this->getColumnWidth(‘i1’) ?>%”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>
    </div>

    <?php
    //inset2
    if($this->hasBlock(‘inset2’)) :
    $block = $this->getBlockXML (‘inset2’);
    ?>
    <div id=”ja-inset2″ class=”ja-col column ja-inset2″ style=”width:<?php echo $this->getColumnWidth(‘i2’) ?>%”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    </div>

    <?php
    //content-mass-bottom
    if($this->hasBlock(‘content-mass-bottom’)) :
    $block = $this->getBlockXML (‘content-mass-bottom’);
    ?>
    <div id=”ja-content-mass-bottom” class=”ja-mass ja-mass-bottom clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>
    </div>
    </div>
    <!– //CONTENT –>
    <?php if (($l = $this->getColumnWidth(‘l’))): ?>
    <!– LEFT COLUMN–>
    <div id=”ja-left” class=”column sidebar” style=”width:<?php echo $l ?>%”>
    <?php
    //left-mass-top
    if($this->hasBlock(‘left-mass-top’)) :
    $block = $this->getBlockXML (‘left-mass-top’);
    ?>
    <div id=”ja-left-mass-top” class=”ja-mass ja-mass-top clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    <?php
    $cls1 = $cls2 = “”;
    if ($this->hasBlock(‘left1’) && $this->hasBlock(‘left2’)) {
    $cls1 = “ja-left1”;
    $cls2 = “ja-left2”;
    }
    if ($this->hasBlock(‘left1’) || $this->hasBlock(‘left2’)):
    ?>
    <div class=”ja-colswrap clearfix <?php echo $this->getColumnWidth(‘cls_l’); ?>”>
    <?php if ($this->hasBlock(‘left1’)):
    $block = $this->getBlockXML(‘left1’);
    ?>
    <div id=”ja-left1″ class=”ja-col <?php echo $cls1;?> column” style=”width:<?php echo $this->getColumnWidth(‘l1’)?>%”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif ?>

    <?php if ($this->hasBlock(‘left2’)):
    $block = $this->getBlockXML(‘left2’);
    ?>
    <div id=”ja-left2″ class=”ja-col <?php echo $cls2;?> column” style=”width:<?php echo $this->getColumnWidth(‘l2’)?>%”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif ?>
    </div>
    <?php endif ?>
    <?php
    //left-mass-bottom
    if($this->hasBlock(‘left-mass-bottom’)) :
    $block = $this->getBlockXML (‘left-mass-bottom’);
    ?>
    <div id=”ja-left-mass-bottom” class=”ja-mass ja-mass-bottom clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>
    </div>
    <!– //LEFT COLUMN–>
    <?php endif; ?>

    </div>
    <?php if (($r = $this->getColumnWidth(‘r’))): ?>
    <!– RIGHT COLUMN–>
    <div id=”ja-right” class=”column sidebar” style=”width:<?php echo $r ?>%”>

    <?php
    //left-mass-top
    if($this->hasBlock(‘right-mass-top’)) :
    $block = $this->getBlockXML (‘right-mass-top’);
    ?>
    <div id=”ja-right-mass-top” class=”ja-mass ja-mass-top clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    <?php
    $cls1 = $cls2 = “”;
    if ($this->hasBlock(‘right1’) && $this->hasBlock(‘right2’)) {
    $cls1 = “ja-right1”;
    $cls2 = “ja-right2”;
    }
    if ($this->hasBlock(‘right1’) || $this->hasBlock(‘right2’)): ?>
    <div class=”ja-colswrap clearfix <?php echo $this->getColumnWidth(‘cls_r’); ?>”>
    <?php if ($this->hasBlock(‘right1’)):
    $block = $this->getBlockXML(‘right1’);
    ?>
    <div id=”ja-right1″ class=”ja-col <?php echo $cls1;?> column” style=”width:<?php echo $this->getColumnWidth(‘r1’)?>%”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif ?>

    <?php if ($this->hasBlock(‘right2’)):
    $block = $this->getBlockXML(‘right2’);
    ?>
    <div id=”ja-right2″ class=”ja-col <?php echo $cls2;?> column” style=”width:<?php echo $this->getColumnWidth(‘r2’)?>%”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif ?>
    </div>
    <?php endif ?>
    <?php
    //right-mass-bottom
    if($this->hasBlock(‘right-mass-bottom’)) :
    $block = $this->getBlockXML (‘right-mass-bottom’);
    ?>
    <div id=”ja-right-mass-bottom” class=”ja-mass ja-mass-bottom clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>
    </div>
    <!– //RIGHT COLUMN–>

    <?php endif; ?>
    <?php $this->genBlockEnd ($this->getBlocksXML (‘middle’)) ?>

    </div>

    <?php
    //Add fix height for main area
    if (T3Common::node_attributes ($this->getBlocksXML (‘middle’), ‘fixheight’)) {
    $this->showBlock (‘fixheight’);
    }
    ?>

    <?php
    //showcase
    if($this->hasBlock(‘showcase’)) :
    $block = $this->getBlockXML (‘showcase’);
    ?>
    <div id=”ja-showcase” class=”ja-showcase clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    <?php
    //mass-bottom2
    if($this->hasBlock(‘mass-bottom2’)) :
    $block = $this->getBlockXML (‘mass-bottom2’);
    ?>
    <div id=”ja-mass-bottom2″ class=”ja-mass-bottom2 clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    <?php
    //scroller
    if($this->hasBlock(‘scroller’)) :
    $block = $this->getBlockXML (‘scroller’);
    ?>
    <div id=”ja-scroller” class=”ja-scroller clearfix”>
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif; ?>

    <!– //MAIN CONTAINER –>

    <?php
    $blocks = T3Common::node_children($this->getBlocksXML (‘bottom’), ‘block’);
    foreach ($blocks as $block) :
    $this->showBlock ($block);
    endforeach;
    ?>

    </div>

    <jdoc:include type=”modules” name=”debug” />

    <?php if ($this->isIE6()) : ?>
    <?php $this->showBlock(‘ie6/ie6warning’) ?>
    <?php endif; ?>

    </body>

    </html>

    Khanh Le Moderator
    #353140

    With T3v2, you can override all stuff in base theme in the plugin without modify it. You should never alter files in the pluign directly. I suggest that you should create your own theme to store your own customization & override.

    In this case, if you want to add more 3 block under content, you should do like this.

    1. Rollback your modification above.
    2. In template manager, go to tab Layout. Click to edit layout default (I guess you use the default layout).
    3. Add block to bottom blocks:

    <blocks name=”bottom” style=”xhtml”>
    <block name=”mass-bottom2″ style=”raw” type=”modules”>mass-bottom2</block>
    <block name=”showcase” style=”raw” type=”modules”>showcase</block>
    <block name=”scroller” style=”raw” type=”modules”>scroller</block>
    <block name=”botsl” type=”spotlight” markup=”3″>user5,user6,user7,user8</block>
    <block name=”navhelper” type=”navhelper” markup=”3″/>
    <block name=”footer” type=”footer” main-inner=”1″/>
    </blocks>

    The type=”modules” means that the block will use blocks/modules.php which loads module positions listed in that block.

    treybraid Friend
    #353167

    do i also need to edit the page.php which i have already done? i actually edited the xml file’s which had the block layouts as well… i had just not added type= modules..

    trey

    treybraid Friend
    #353169

    i have no idea what you are talking about creating a profile…. i just reset my files and edited the file you mentioned above and i have a white screen now when i preview my website…. “wtf?”

    someone please help me out here…

    trey

    treybraid Friend
    #353172

    WOW!!!! Khanh Le you are a lifesaver– I fixed it!!!! YIPPEE!!!!

    …question for you though— if I am adding a 2 or 3 column mod/s do I just replicate this block: ( of course with different name and css tyling )

    <block name=”botsl” type=”spotlight” markup=”3″>user5,user6,user7,user8</block>

    Thanks for the help again…

    Trey

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

This topic contains 8 replies, has 2 voices, and was last updated by  treybraid 14 years, 4 months ago.

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