Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • cndglobal Friend
    #185924

    Hello
    In JA_NEX 2.5 I am trying to configure the module mod_janews_featured.
    Basically I am trying to use the module as just a slide show without linking to any article.
    I want to hide the article title and white space that appears under the image in the slideshow on the home page.
    – – – – – – – – – – – – – –
    I have tried this in several ways but no luck.
    templatesja_nexhtmlmod_janews_featurednexblog.php
    In this file I think there may be a way to prevent the Title from showing but would like some guidance on where to edit the file.
    Any help would be appreciated.
    Thanks,
    cbdglobal


    1. mod_janews_featured
    Ninja Lead Moderator
    #486862

    You can try this way

    Open templates/ja_nex/html/mod_janews_featured/nex/blog.php file

    from

    <h2 class="ja-zintitle">
    <a href="<?php echo $news->link;?>" title="<?php echo strip_tags($news->title); ?>">
    <?php echo $news->title;?>
    </a>
    </h2>

    change to

    <!--h2 class="ja-zintitle">
    <a href="<?php echo $news->link;?>" title="<?php echo strip_tags($news->title); ?>">
    <?php echo $news->title;?>
    </a>
    </h2-->

    Remember to clear cache from Admin area after changed

    cndglobal Friend
    #488042

    here is the file with the changes I made
    cndglobal

    <?php

    /**

    * ------------------------------------------------------------------------

    * JA Nex Template

    * ------------------------------------------------------------------------

    * Copyright (C) 2004-2011 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.com - http://www.joomlancers.com

    * This file may not be redistributed in whole or significant part.

    * ------------------------------------------------------------------------

    */

    defined('_JEXEC') or die('Restricted access');

    /* This template for headline (frontpage): first news with big image and next news with smaller images

    bigimg_w, bigimg_h, smallimg_w, smallimg_h

    */

    $showhlreadmore = intval (trim( $helper->get( 'showhlreadmore', 0 ) ));

    $align = $helper->get( 'align', 0 );

    //if($align==0) $align="none";

    $bigmaxchar = $helper->get ( 'bigmaxchars', 200 );

    $bigshowimage = $helper->get ( 'bigshowimage', 1 );

    $smallmaxchar = $helper->get ( 'smallmaxchars', 100 );

    $smallshowimage = $helper->get ( 'smallshowimage', 1 );

    $bigitems = intval (trim( $helper->get( 'bigitems', 1) )) > 0 ? intval (trim( $helper->get( 'bigitems', 1) )) : 1;

    $animType = $helper->get ( 'animType', 'animNewsMoveHor');

    $autoplay = $helper->get ( 'autoplay', 1);

    $duration = (int)$helper->get('duration', 400);

    $autoplay_duration = (int)$helper->get('autoplay_duration', 3);

    $showtooltip = intval (trim( $helper->get( 'showtooltip', 1 ) ));

    $i = 0;

    $bigimageheight = $helper->get ( 'bigimg_h', 0 );

    $bigimagewidth = $helper->get ( 'bigimg_w', 0 );

    ?>

    <?php if(count($rows) > 0) : ?>

    <?php

    if (!defined ('_MODE_JANEWS_FP_ASSETS_DEFAULT')) {

    define ('_MODE_JANEWS_FP_ASSETS_DEFAULT', 1);

    if (JFolder::exists('templates/'.$app->getTemplate().'/html/'.$module->module.'/'.$theme.'/')){

    JHTML::script('script.js','templates/'.$app->getTemplate().'/html/'.$module->module.'/'.$theme.'/');

    }

    else {

    JHTML::script('script.js','modules/'.$module->module.'/tmpl/'.$theme.'/');

    }

    }?>

    <?php if ($module->showtitle) {?>

    <div id='jafp-title'><?php echo $module->title?></div>

    <?php } ?>

    <div id="ja-zinfp-wrap-<?php echo $module->id?>" class="ja-zinfp-wrap <?php echo $theme?> ja-zinfp-<?php echo $animType;?>">

    <div id="ja-zinfp-<?php echo $module->id?>" class="ja-zinfp clearfix">

    <div class="ja-zinfp-main-wrap">

    <div class="ja-zinfp-main clearfix">

    <div class="ja-zinfp-featured-wrap column">

    <div class="ja-zinfp-featured-border">

    <div class="ja-zinfp-featured clearfix">

    <?php foreach ($rows as $news) {

    if($i<$bigitems) {

    if($bigshowimage && $news->bigimage) {

    $top_t = $bigimageheight - 40;

    }

    else {

    $top_t = 0;

    }

    ?>

    <div class="ja-zincontent-wrap <?php if($i==0){ echo 'active show';} else{ echo 'hide';}?>">

    <div class="ja-zincontent clearfix <?php if(!$news->bigimage): echo "ja-zinhasnoimage"; endif; ?>">

    <?php if($bigshowimage && $news->bigimage) { ?>

    <div class="ja-zincontent-img clearfix" <?php if ($align!=0) {?> style="float:<?php echo $align; ?>" <?php } ?>>

    <?php echo $news->bigimage?>

    </div>

    <?php } ?>

    </div>

    </div>

    <?php if($i==$bigitems-1){?>

    </div>

    <?php if($bigitems>1 && count($rows)>1){?>

    <div class="ja-zinfp-links-actions clearfix" style="top: <?php echo($top_t)?>px;">

    <span class="box-counter"><span class="counter">1</span> <?php echo JText::_('of')?> <?php echo $bigitems?></span>

    <a href="javascript:void(0)" class="ja-zinfp-links-actions-next next">

    <span><?php echo JText::_('JAFP_PREV')?></span>

    </a>

    <a href="javascript:void(0)" class="ja-zinfp-links-actions-prev prev">

    <span><?php echo JText::_('JAFP_NEXT')?></span>

    </a>

    <span class="next"><img src="modules/mod_janews_featured/tmpl/default/loading.gif" alt="Loading"/></span>

    </div>

    <?php }?>

    </div>

    </div>

    <div class="ja-zinfp-normal-wrap column">

    <div class="ja-zinfp-normal clearfix">

    <?php }?>

    <?php }else{?>

    <div class="ja-zincontent-wrap" <?php if(($i-$bigitems)%3==0): echo 'style="clear: both;"'; endif; ?>>

    <div class="ja-zincontent clearfix <?php if($showtooltip){?>editlinktip jahasTip<?php }?>" <?php if($showtooltip){?>title="<?php echo trim(strip_tags($news->title), '"'); ?>::<?php echo htmlspecialchars($news->smallimage.$news->bigintrotext)?>"<?php }?>>

    <?php if($smallshowimage && $news->smallimage) {?>

    <div class="ja-zincontent-img" <?php if ($align!=0) {?> style="float:<?php echo $align; ?>" <?php } ?>>

    <?php echo $news->smallimage?>

    </div>

    <?php } ?>

    <div class="ja-zinmeta clearfix">

    <span class="createdate">

    <?php echo JHTML::_('date', $news->created, JText::_('DATE_FORMAT_LC3')); ?>

    </span>

    </div>

    <h4 class="ja-zintitle">

    <a href="<?php echo $news->link;?>" title="<?php echo strip_tags($news->title); ?>">

    <?php echo $news->title;?>

    </a>

    </h4>

    <div class="ja-zinintro">

    <?php echo $smallmaxchar > strlen($news->smallintrotext)?$news->introtext:$news->smallintrotext?>

    </div>

    </div>

    </div>

    <?php }?>

    <?php ++$i?>

    <?php }?>

    </div>

    </div>

    </div>

    </div>

    </div>

    </div>

    <script type="text/javascript">

    /* <!]> */

    </script>

    <?php endif; ?>

    Ninja Lead Moderator
    #488146

    And did you fix the problem on your site?

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

This topic contains 4 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 8 months ago.

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