Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • doefoot Friend
    #161312

    Hi All. I modified the JA Purity II template and added 3 module positions (User 12, 13 & 14) by editing the layoutsblocksmain.php, and added them below the main content area. The design I was working with was pretty specific, and required that I use 3 module positions side by side.

    here’s the site: http://justimaging.co.za/msr

    My main.php doc now looks like this:

    <!-- CONTENT -->
    <div id="ja-main" style="width:650px; margin-right:10px; padding-left:10px;">
    <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">
    <jdoc:include type="modules" name="<?php echo $mass_top;?>" style="JAxhtml" />
    </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">
    <jdoc:include type="component" />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules('user12') ): ?>
    <div class="ja-box column ja-box<?php echo $botsl['user12']['class']; ?>" style="width: 33%;">
    <jdoc:include type="modules" name="user12" style="JAxhtml" />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules('user13') ): ?>
    <div class="ja-box column ja-box<?php echo $botsl['user31']['class']; ?>" style="width: 33%;">
    <jdoc:include type="modules" name="user13" style="JAxhtml" />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules('user14') ): ?>
    <div class="ja-box column ja-box<?php echo $botsl['user14']['class']; ?>" style="width: 33%;">
    <jdoc:include type="modules" name="user14" style="JAxhtml" />
    </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') ?>%">
    <jdoc:include type="modules" name="<?php echo $inset2;?>" style="JAxhtml" />
    </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">
    <jdoc:include type="modules" name="<?php echo $mass_bottom;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

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

    Problem, is, now when I add modules to the positions, none of the content is selectable or clickable. Is it a problem with my code? is there a better way of adding this type of module position below the Content section?
    Please note – I have next to non-existent php skills – I just copied and pasted what looked like it could work :((
    Please help…?

    pierantonio Friend
    #380892

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

    check this line … 31 instead of 13

    Good luck!

    doefoot Friend
    #380894

    Thanks for spotting that, Pierantonio. I’ve fixed the code, but unfortunately, the problem still persists.

    doefoot Friend
    #380942

    Anyone…? please…? I’d really appreciate any help I can get with this…

    hainn Friend
    #381223

    Hi,

    Firstly, I’d like to confirm the code you give here is good.

    Secondly, after take a look your website, I found the problem with your site is: Joomla supports some parameters to set “clickable” the title and image of an article, but you didn’t use these fields. You put everything of an article to the body, so please put the title and the image (or every clickable fields you need) into <a href=””></a> tag.

    Regards,

    mosim Friend
    #382313

    DoeFoot, were you able to get this to work?

    I need to do the same thing but I couldn’t find a main.php file. Where is this specifically located?

    Thanks,
    m.

    thuanlq Friend
    #382472

    Hi Mosim,

    Please open the folder “your webroottemplatesja_purity_iilayoutsblocks”, you can see “main.php” file.

    Regards,

    mosim Friend
    #383022

    Hi thuanlq –

    Hrmm…OK, I think perhaps I installed something incorrectly. I have no “layouts” folder. I’ve attached the ja_purity directory view.

    Thanks,
    m.


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

This topic contains 8 replies, has 5 voices, and was last updated by  mosim 13 years, 7 months ago.

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