test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • yasmagic Friend
    #157873

    I want to remove the the date/time & last modified info from the top and create a new module position there. Also, i want to keep the ja-login module position on the top-right. Is it possible to have two module position on the topbar in the same row?

    Phill Moderator
    #368659

    Yes, of course it is possible. That is one of the great things about Joomla and the T3 template system, how easy it is to create new positions.

    Please open templates/ja_social/blocks/topbar.php where you will find the following code.

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA Social Template
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. 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.com - http://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ------------------------------------------------------------------------
    */
    ?>
    <?php $this->genBlockBegin ($block) ?>
    <p class="ja-day">
    <?php
    echo "<span class="day">".date ('l')."</span>";
    echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
    ?>
    </p>
    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    <?php $this->genBlockEnd ($block) ?>

    Please change to

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA Social Template
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. 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.com - http://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ------------------------------------------------------------------------
    */
    ?>
    <?php $this->genBlockBegin ($block) ?>
    <?php if($this->countModules('topbar-left')) : ?>
    <div id="topbar-left" class="topbar-left">
    <ul>
    <jdoc:include type="modules" name="topbar-left" />
    </ul>
    </div>
    <?php endif; ?>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    <?php $this->genBlockEnd ($block) ?>

    This will create a new module position called topbar-left. You can either type this in your module manager (where it will remain there forever more) or add it to the dropdown list by adding the following to your templates/ja_social/templateDetails.xml file

    find

    <position>sample</position>
    <position>slogan</position>
    <position>top-panel</position>
    <position>top-panel-module</position>
    </positions>

    and change to

    <position>sample</position>
    <position>slogan</position>
    <position>top-panel</position>
    <position>top-panel-module</position>
    <position>topbar-left</position>
    </positions>

    You will then want to style that new module position. I assume that you want it floated to the left so at the end of your templates/ja_social/css/template.css file please add

    .topbar-left {
    float:left;
    }

    Please add any other styling you wish in there.

    yasmagic Friend
    #368884

    It worked. Thanks a lot.

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

This topic contains 3 replies, has 2 voices, and was last updated by  yasmagic 14 years ago.

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