test
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • cansay Friend
    #149700

    I already made a thread about my problem.
    But I think I posted it the wrong place 🙁 ?
    http://www.joomlart.com/forums/topic/2-x-jasidenews-in-left-module-position/

    I looked at this image and it indicates that there is only 1 position for ja_news defined as left?
    The other position is just for frontpage published articles if I understand correctly..

    I would like to have 2 modules of ja_News next to each other at the left module position, But I cant figure out how to acheave this 🙁

    I have copied ja_news module and given it module prefix left9.
    But im not doing this correctly I see 🙁

    I have only made this change to Default.php

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

    I have uploaded 2 screenshots where firebug shows the html code for the 2 divs.


    1. my-news-section-is-places-in-ja-content
    2. I-would-like-my-News-section-to-look-like-the-Reviews-div-ja-col-column-ja-inset2
    cansay Friend
    #337111

    I think I need to use this information ?

    But since im not sure I hope some of you other users or an admin could give me
    some advice 😀

    http://www.joomlart.com/forums/showthread.php?p=168739#post168739

    cansay Friend
    #337407

    PLEASE SOMONE HELP ME 🙁

    Am I not explaining my self good enough ?

    I cant really start using the template or modules before I find out how to change this 🙁

    Should I ask for admin help and provide passwords ?
    Or will that not be okay for such a problem as mine 🙁 ?

    cansay Friend
    #337611

    Please help ?

    Saguaros Moderator
    #337677

    Dear cansay!

    Please see the t3’s layouts:
    http://wiki.joomlart.com/wiki/JA_Template_Framework/Guides

    Your customization is not correct. you can not use the “insert1” position in this case, right is the “content-top” position and made more some changes in the tempalte:

    1) you made the custom work for the “insert1” correct.
    2) pls open the file: templatesja_rasitelayoutsblocksmain.php and find code:
    [PHP]<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />[/PHP]

    and replace:
    [PHP]
    <div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>

    <div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
    <jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
    </div></div></div>

    <div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
    [/PHP]

    3) you put the ja sidernews on the “content-top” position

    Good luck

    cansay Friend
    #337708

    <em>@tienhc 171251 wrote:</em><blockquote>Dear cansay!

    Please see the t3’s layouts:
    http://wiki.joomlart.com/wiki/JA_Template_Framework/Guides

    Your customization is not correct. you can not use the “insert1” position in this case, right is the “content-top” position and made more some changes in the tempalte:

    1) you made the custom work for the “insert1” correct.
    2) pls open the file: templatesja_rasitelayoutsblocksmain.php and find code:
    [PHP]<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />[/PHP]

    and replace:
    [PHP]
    <div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>

    <div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
    <jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
    </div></div></div>

    <div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
    [/PHP]

    3) you put the ja sidernews on the “content-top” position

    Good luck</blockquote>

    Thank you alot for your sime Mr.

    I was ready to cry yesterday and im not good at PHP 🙁

    Im not sure I understand you correct

    <blockquote>Your customization is not correct. you can not use the “insert1” position in this case, right is the “content-top” position and made more some changes in the tempalte:</blockquote>

    You mean than I cant use insert1 in
    templates/Ja_Rasite/loyout/default.php ???

    I removed insert1 = left9
    Added Content-top = content-top


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

    I then changed my main.php and removed/deleted the entire <div id=”ja-content”>
    Marked with red

    <!-- CONTENT -->
    <div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
    <div class="inner clearfix">

    <jdoc:include type="message" />

    <?php
    $mass_top = $this->getPositionName ('content-mass-top');
    if($this->countModules($mass_top)) : ?>
    <div class="ja-mass ja-mass-top clearfix">

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

    <div class="ja-rs3-mid"><div class="ja-rs3-ml"><div class="ja-rs3-mr">
    <jdoc:include type="modules" name="<?php echo $mass_top;?>" style="JAxhtml" />
    </div></div></div>

    <div class="ja-rs3-bot"><div class="ja-rs3-bl"> </div><div class="ja-rs3-br"> </div></div>
    </div>
    <?php endif; ?>

    <div id="ja-contentwrap" class="<?php echo $this->getColumnWidth('cls_m'); ?>">
    <?php
    $inset1 = $this->getPositionName ('inset1');
    $inset2 = $this->getPositionName ('inset2');
    ?>
    <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 = $this->getPositionName ('content-top');
    if($this->countModules($content_top)) : ?>
    <div class="ja-content-top clearfix">
    <jdoc:include type="modules" name="<?php echo $content_top;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    <?php $contents = $this->getBuffer('component');
    if (!preg_match ('/<div class="blog">s*</div>/',$contents)) :?>
    <div class="ja-content-main clearfix">
    <div class="ja-rs5-top"><div class="ja-rs5-tl"> </div><div class="ja-rs5-tr"> </div></div>

    <div class="ja-rs5-mid"><div class="ja-rs5-ml"><div class="ja-rs5-mr clearfix">
    <jdoc:include type="component" />
    </div></div></div>

    <div class="ja-rs5-bot"><div class="ja-rs5-bl"> </div><div class="ja-rs5-br"> </div></div>
    </div>
    <?php endif; ?>

    <?php
    $content_bottom = $this->getPositionName ('content-bottom');
    if($this->countModules($content_bottom)) : ?>
    <div class="ja-content-bottom clearfix">
    <jdoc:include type="modules" name="<?php echo $content_bottom;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>
    </div>

    <?php if($this->countModules($inset1)) : ?>
    <div class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
    <jdoc:include type="modules" name="<?php echo $inset1;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    </div>

    <?php if($this->countModules($inset2)) : ?>
    <div class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
    <div class="ja-rs5-top"><div class="ja-rs5-tl"> </div><div class="ja-rs5-tr"> </div></div>

    <div class="ja-rs5-mid"><div class="ja-rs5-ml"><div class="ja-rs5-mr">
    <jdoc:include type="modules" name="<?php echo $inset2;?>" style="JAxhtml" />
    </div></div></div>

    <div class="ja-rs5-bot"><div class="ja-rs5-bl"> </div><div class="ja-rs5-br"> </div></div>
    </div>
    <?php endif; ?>
    </div>

    <?php
    $mass_bottom = $this->getPositionName ('content-mass-bottom');
    if($this->countModules($mass_bottom)) : ?>
    <div class="ja-mass ja-mass-bottom clearfix">

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

    <div class="ja-rs5-mid"><div class="ja-rs5-ml"><div class="ja-rs5-mr">
    <jdoc:include type="modules" name="<?php echo $content_top;?>" style="JAxhtml" />
    </div></div></div>

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

    </div>
    <?php endif; ?>

    </div>
    </div>
    <!-- //CONTENT -->

    But when I replace this
    [PHP]<jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />[/PHP]

    With this code it looks wrong 🙁

    Im not sure if im making a mistake or ?
    It seams like the module gets the correct possition but the
    ja-rs5-top
    ja-rs5-mid
    and ja-rs5-bot

    Are not correctly added.

    Saguaros Moderator
    #337711

    Pls see my screenshot, may be you made wrong 7275

    7276

    cansay Friend
    #337719

    <em>@tienhc 171289 wrote:</em><blockquote>Pls see my screenshot, may be you made wrong 7275

    7276</blockquote>

    Thx alot sir.
    You are REALLY making a big help for me here :D:-*:D;)

    It must be my main.php im not doing correct then sir?

    I have attached it and layout.php.

    This is how it looks now.

    THANK YOU VERY MUCH FOR HELPING ME.
    I know im not very good at this 🙁

    But I can help others on the forum, and if you ever have any problems with
    computer hardware, I can help 😀


    1. Almost_there_now
    1. Maindefault.php_.zip
    cansay Friend
    #337884

    Could you please check my attached file tienhc ?

    I think my main is not correct 🙁

    cansay Friend
    #338038

    My site is live now at http://www.octeamdenmark.com

    Should I provide login details instead ?

    Saguaros Moderator
    #338228

    Dear

    Here is your ticket :#EXN-652245

    Please post the ftp account and the administrator in there, i ‘ll check and resolve this issue for you.
    PS: pls change status of your ticket to “OPEN”

    Thanks

    cansay Friend
    #338463

    <em>@tienhc 171953 wrote:</em><blockquote>Dear

    Here is your ticket :#EXN-652245

    Please post the ftp account and the administrator in there, i ‘ll check and resolve this issue for you.
    PS: pls change status of your ticket to “OPEN”

    Thanks</blockquote>

    I cant login 🙁

    Same password and username as the forum I take it ?

    Saguaros Moderator
    #338516

    Dear cansay!

    Pls give me the account information via PM

    Thanks a lot

    cansay Friend
    #338806

    Havent had time to see what has changed. But It was fixed and this is the main.php 😀

    [PHP]<!– CONTENT –>
    <div id=”ja-main” style=”width:<?php echo $this->getColumnWidth(‘m’) ?>%”>
    <div class=”inner clearfix”>

    <jdoc:include type=”message” />

    <?php
    $mass_top = $this->getPositionName (‘content-mass-top’);
    if($this->countModules($mass_top)) : ?>
    <div class=”ja-mass ja-mass-top clearfix”>

    <div class=”ja-rs3-top”><div class=”ja-rs3-tl”> </div><div class=”ja-rs3-tr”> </div></div>

    <div class=”ja-rs3-mid”><div class=”ja-rs3-ml”><div class=”ja-rs3-mr”>
    <jdoc:include type=”modules” name=”<?php echo $mass_top;?>” style=”JAxhtml” />
    </div></div></div>

    <div class=”ja-rs3-bot”><div class=”ja-rs3-bl”> </div><div class=”ja-rs3-br”> </div></div>
    </div>
    <?php endif; ?>

    <div id=”ja-contentwrap” class=”<?php echo $this->getColumnWidth(‘cls_m’); ?>”>
    <?php
    $inset1 = $this->getPositionName (‘inset1’);
    $inset2 = $this->getPositionName (‘inset2’);
    ?>
    <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 = $this->getPositionName (‘content-top’);
    if($this->countModules($content_top)) : ?>
    <div class=”ja-content-top clearfix”>
    <div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>

    <div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
    <jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
    </div></div></div>

    <div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
    </div>
    <?php endif; ?>

    <?php $contents = $this->getBuffer(‘component’);
    if (!preg_match (‘/<div class=”blog”>s*</div>/’,$contents)) :?>
    <div class=”ja-content-main clearfix”>
    <div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>

    <div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr clearfix”>
    <jdoc:include type=”component” />
    </div></div></div>

    <div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
    </div>
    <?php endif; ?>

    <?php
    $content_bottom = $this->getPositionName (‘content-bottom’);
    if($this->countModules($content_bottom)) : ?>
    <div class=”ja-content-bottom clearfix”>
    <jdoc:include type=”modules” name=”<?php echo $content_bottom;?>” style=”JAxhtml” />
    </div>
    <?php endif; ?>
    </div>

    <?php if($this->countModules($inset1)) : ?>
    <div class=”ja-col column ja-inset1″ style=”width:<?php echo $this->getColumnWidth(‘i1’) ?>%”>
    <jdoc:include type=”modules” name=”<?php echo $inset1;?>” style=”JAxhtml” />
    </div>
    <?php endif; ?>

    </div>

    <?php if($this->countModules($inset2)) : ?>
    <div class=”ja-col column ja-inset2″ style=”width:<?php echo $this->getColumnWidth(‘i2’) ?>%”>
    <div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>

    <div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
    <jdoc:include type=”modules” name=”<?php echo $inset2;?>” style=”JAxhtml” />
    </div></div></div>

    <div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>
    </div>
    <?php endif; ?>
    </div>

    <?php
    $mass_bottom = $this->getPositionName (‘content-mass-bottom’);
    if($this->countModules($mass_bottom)) : ?>
    <div class=”ja-mass ja-mass-bottom clearfix”>

    <div class=”ja-rs5-top”><div class=”ja-rs5-tl”> </div><div class=”ja-rs5-tr”> </div></div>

    <div class=”ja-rs5-mid”><div class=”ja-rs5-ml”><div class=”ja-rs5-mr”>
    <jdoc:include type=”modules” name=”<?php echo $content_top;?>” style=”JAxhtml” />
    </div></div></div>

    <div class=”ja-rs5-bot”><div class=”ja-rs5-bl”> </div><div class=”ja-rs5-br”> </div></div>

    </div>
    <?php endif; ?>

    </div>
    </div>
    <!– //CONTENT –>[/PHP]

    omar al ansari Friend
    #352663

    Hi All,

    I am trying to achieve the same thing however I am not able to follow what changes have been done.

    Would appreciate it if someone could explain the changes 🙂

Viewing 15 posts - 1 through 15 (of 16 total)

This topic contains 16 replies, has 3 voices, and was last updated by  Saguaros 14 years, 3 months ago.

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