Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • darrenf Friend
    #148497

    Hi guys,

    Which file do I edit to remove the portion circled in red?

    Many thanks!

    darrenf Friend
    #332103

    Still haven’t figured this out. No one knows?

    Anonymous Moderator
    #332134

    Hi you

    Please open templatesja_rasitelayoutsdefault.php file, at about line 57, find following code section:


    <!-- MAIN CONTAINER -->
    <div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w'); ?>">
    <div class="main">

    <div class="ja-rs2-top"><div class="ja-rs2-tl"> </div><div class="ja-rs2-tr"> </div></div>

    <div class="ja-rs2-mid"><div class="ja-rs2-ml"><div class="ja-rs2-mr clearfix">

    <?php $this->loadBlock('breadcrumb') ?>

    <div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw') ?>%">
    <?php $this->loadBlock('main') ?>
    <?php $this->loadBlock('left') ?>
    </div>
    <?php $this->loadBlock('right') ?>
    </div></div></div>

    <div class="ja-rs2-bot"><div class="ja-rs2-bl"> </div><div class="ja-rs2-br"> </div></div>

    <?php $this->loadBlock('bot') ?>

    </div>
    </div>
    <!-- //MAIN CONTAINER -->

    and change to:


    <!-- MAIN CONTAINER -->
    <div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w'); ?>">
    <div class="main">
    <?php if (!$this->isFrontPage()) {?>
    <div class="ja-rs2-top"><div class="ja-rs2-tl"> </div><div class="ja-rs2-tr"> </div></div>

    <div class="ja-rs2-mid"><div class="ja-rs2-ml"><div class="ja-rs2-mr clearfix">

    <?php $this->loadBlock('breadcrumb') ?>

    <div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw') ?>%">
    <?php $this->loadBlock('main') ?>
    <?php $this->loadBlock('left') ?>
    </div>
    <?php $this->loadBlock('right') ?>
    </div></div></div>

    <div class="ja-rs2-bot"><div class="ja-rs2-bl"> </div><div class="ja-rs2-br"> </div></div>
    <?php
    }
    ?>

    <?php $this->loadBlock('bot') ?>

    </div>
    </div>
    <!-- //MAIN CONTAINER -->

    darrenf Friend
    #332239

    Thanks I managed to figure out what to do 😀

    templatesja_uranilayoutsdefault.php file

    <div id=”ja-wrapper”>
    <a name=”Top” id=”Top”></a>

    <!– HEADER –>
    <?php $this->loadBlock(‘header’) ?>
    <!– //HEADER –>

    <!– MAIN NAVIGATION –>
    <?php $this->loadBlock(‘mainnav’) ?>
    <!– //MAIN NAVIGATION –>

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

    <!– REMOVE THIS CODE –>
    <?php if (!$this->isFrontPage()) {?>
    <!– REMOVE THIS CODE –>

    <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>

    <div class=”main”>

    <div class=”ja-rounded-top”></div>
    <div class=”ja-rounded-center clearfix”>
    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <?php $this->loadBlock(‘main’) ?>
    <?php $this->loadBlock(‘left’) ?>
    </div>
    <?php $this->loadBlock(‘right’) ?>
    </div>

    </div>
    </div><div class=”clear: both;”></div>

    <!– //MAIN CONTAINER –>

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

    <!– REMOVE THIS CODE –>
    <?php
    }
    ?>
    <!– REMOVE THIS CODE –>

    <!– FOOTER –>
    <?php $this->loadBlock(‘footer’) ?>
    <!– //FOOTER –>

    </div>

    M.J.C.Botterblom Friend
    #333585

    I follow this thread because I want the same thing to be done, remove the block totally (where the link TOP is in)

    http://www.protestantsegemeenteblaricum.nl/nieuw/ this is my site

    when I use the script from darrenf nothing happens, the block is still there !!
    JA Developer says ;
    Please open templatesja_rasitelayoutsdefault.php file, at about line 57, find following code section: . . . . . . ect.

    But we uese the template ja_Urani and the script is not the same.

    I tried several options but still I have the block in my site.

    Can somebody help me with this problem?

    regards Rob

    uniquebiz Friend
    #333597

    Look at darren Fs code changes he says he is using the urani layout in
    templatesja_uranilayoutsdefault.php file

    darrenf Friend
    #333632

    Hey M.J.C.Botterblom

    I’ve checked out your site. You’re using Urani as well i believe.

    Go to templatesja_uranilayoutsdefault.php

    Refer to the post I made earlier and add the codes in red in the exact location.
    The reason why I wrote it as <!– REMOVE THIS CODE –> is so that I would know which codes to remove if I wanted that block viewable again in the future. You can skip these lines as it is just comments which does nothing.

    Do let me know if it solves your problem.

    🙂

    M.J.C.Botterblom Friend
    #333704

    Hi there,

    Thanks for the quick reply.

    I copyed en paste the code from darrenf on the right place in ..templatesja_uranilayoutsdefault.php file but nothing happens on the frontend. The ‘block’ is still there.

    http://www.protestantsegemeenteblaricum.nl/nieuw/
    I using light_moss as color settings

    regards

    Margo

    darrenf Friend
    #333742

    Hmm it should work.

    Did you check if you modification was saved?

    Could you try placing your current codes in another file as a back up and replace it with this:

    Let me know if it works. If it doesn’t, the issue could be else where.

    <?php
    /*
    # ————————————————————————
    # JA Urani for Joomla 1.5.x – Version 1.0 – Licence Owner JA176597
    # ————————————————————————
    # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    # @license – Copyrighted Commercial Software
    # Author: J.O.O.M Solutions Co., Ltd
    # Websites: http://www.joomlart.comhttp://www.joomlancers.com
    # This file may not be redistributed in whole or significant part.
    # ————————————————————————
    */

    // no direct access
    defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
    $this->_basewidth = 24;
    $positions = array (
    ‘left1’ =>”,
    ‘left2’ =>”,
    ‘left-mass-top’ =>”,
    ‘left-mass-bottom’ =>”,
    ‘right1′ =>’left’,
    ‘right2′ =>’right’,
    ‘right-mass-top’ =>’mass-top’,
    ‘right-mass-bottom’ =>”,
    ‘content-mass-top’ =>”,
    ‘content-mass-bottom’ =>”,
    ‘content-top’ =>”,
    ‘content-bottom’ =>”,
    ‘inset1’ =>”,
    ‘inset2’ =>”
    );
    //$this->customwidth(‘right1’, 25); <== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns.
    $this->definePosition ($positions);
    ?>

    <?php if ($this->isIE() && ($this->getParam(‘direction’)==’rtl’ || $this->direction == ‘rtl’)) { ?>
    <!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>
    <?php $this->loadBlock(‘head’) ?>
    </head>

    <body id=”bd” class=”fs<?php echo $this->getParam(JA_TOOL_FONT);?> <?php echo $this->browser();?>”>

    <div id=”ja-wrapper”>
    <a name=”Top” id=”Top”></a>

    <!– HEADER –>
    <?php $this->loadBlock(‘header’) ?>
    <!– //HEADER –>

    <!– MAIN NAVIGATION –>
    <?php $this->loadBlock(‘mainnav’) ?>
    <!– //MAIN NAVIGATION –>

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

    <!– REMOVE THIS CODE –>
    <?php if (!$this->isFrontPage()) {?>
    <!– REMOVE THIS CODE –>

    <!– MAIN CONTAINER –>
    <div id=”ja-container” class=”wrap <?php echo $this->getColumnWidth(‘cls_w’); ?>”>

    <div class=”main”>

    <div class=”ja-rounded-top”></div>
    <div class=”ja-rounded-center clearfix”>
    <div id=”ja-mainbody” style=”width:<?php echo $this->getColumnWidth(‘mw’) ?>%”>
    <?php $this->loadBlock(‘main’) ?>
    <?php $this->loadBlock(‘left’) ?>
    </div>
    <?php $this->loadBlock(‘right’) ?>
    </div>

    </div>
    </div><div class=”clear: both;”></div>

    <!– //MAIN CONTAINER –>

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

    <!– REMOVE THIS CODE –>
    <?php
    }
    ?>
    <!– REMOVE THIS CODE –>

    <!– FOOTER –>
    <?php $this->loadBlock(‘footer’) ?>
    <!– //FOOTER –>

    </div>

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

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

    </body>

    </html>

    M.J.C.Botterblom Friend
    #333855

    hi darrenf,

    yes I had saved the file and make sure your codes were in it.

    I make a new default.php file with your script, it is active now and it is still there.

    If you give me a mail info@pagefactory.nl , I could give you the ftp log in.

    thx so far and hope we find a solution

    regards Margo

    darrenf Friend
    #334076

    Hey Guys,

    I’m trying to help Margo with his site and I’m facing some difficulty of my own.
    I’ve realized that the codes to amend to solve his problem resides in
    templatesja_uranilayoutsblocks/footer.php

    Removing the codes in red removes the bar that he wants removed.
    I’m just wondering, why is the bar appearing in the first place since there is a if statement stating that it shouldn’t appear if its the frontpage.

    Is there a possibility that the site does not recognize his front page as the front page?

    <?php if(!$this->isFrontpage()):?>
    <div class=”ja-navhelper wrap”>
    <div class=”main”>

    <div class=”ja-rounded-center clearfix”>
    <div class=”ja-breadcrums”>
    <strong><?php echo JText::_(”)?></strong> <jdoc:include type=”module” name=”breadcrumbs” />
    </div>

    <ul class=”ja-links”>
    <li class=”layout-switcher”><?php $this->loadBlock(‘usertools/layout-switcher’) ?> </li>
    <li class=”top”><a href=”<?php echo $this->getCurrentURL();?>#Top” title=”Terug naar boven”>Top</a></li>
    </ul>

    <ul class=”no-display”>
    <li><a href=”<?php echo $this->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
    </ul>
    </div>
    <div class=”ja-rounded-bot”> </div>

    </div>
    </div>
    <?php endif; ?>

    <div id=”ja-footer” class=”wrap”>
    <div class=”main”>
    <div class=”ja-rounded-top”></div>
    <div class=”ja-rounded-center clearfix”>
    <?php if( $this->countModules(‘footnav’) ): ?>
    <div class=”ja-footnav”>
    <jdoc:include type=”modules” name=”footnav” />
    </div>
    <?php endif; ?>

    <div class=”inner”>
    <div class=”ja-copyright”>
    <jdoc:include type=”modules” name=”footer” />
    </div>
    </div>

    <div id=”ja-poweredby”>
    <a id=”t3-logo” href=”http://t3.joomlart.com” title=”Powered By T3 Framework” target=”_blank”>Powered By T3 Framework</a>
    </div>
    </div>
    <div class=”ja-rounded-bot”> </div>
    </div>
    </div>

    Anonymous Moderator
    #334600

    Hi darrenf

    You should change:


    <?php if(!$this->isFrontpage()):?>
    <div class="ja-navhelper wrap">
    <div class="main">
    <div class="ja-rounded-center clearfix">
    <div class="ja-breadcrums">
    <strong><?php echo JText::_('You are here')?></strong> <jdoc:include type="module" name="breadcrumbs" />
    </div>

    <ul class="ja-links">
    <li class="layout-switcher"><?php $this->loadBlock('usertools/layout-switcher') ?> </li>
    <li class="top"><a href="<?php echo $this->getCurrentURL();?>#Top" title="Back to Top">Top</a></li>
    </ul>

    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
    </ul>
    </div>
    <div class="ja-rounded-bot"> </div>
    </div>
    </div>
    <?php endif; ?>

    to:


    <?php if(!$this->isFrontpage()):?>
    <div class="ja-navhelper wrap">
    <div class="main">
    <div class="ja-rounded-center clearfix">

    </div>
    <div class="ja-rounded-bot"> </div>
    </div>
    </div>
    <?php endif; ?>

    darrenf Friend
    #334737

    Thanks! Your solution is better as the spacing between the modules are still preserved.

    I’m still curious on what if the statement does <?php if(!$this->isFrontpage()):?>

    The codes seems to be executed on both the front page as well as all other pages. So if we were to change the codes to the codes below.

    <?php if(!$this->isFrontpage()):?>
    <div class=”ja-navhelper wrap”>
    <div class=”main”>
    <div class=”ja-rounded-center clearfix”>

    </div>
    <div class=”ja-rounded-bot”> </div>
    </div>
    </div>
    <?php endif; ?>

    We won’t be able to have breadcrumbs for non front pages am I right?

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

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

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