Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • jimboja Friend
    #166590

    Hello,
    I’d like to add intro text in my ja bulletin modules (most read and latest news)
    I’ve tried added this to default.php but it does not seem to work:
    <?php echo $item->introtext; ?>
    Natively, JA Bulletin does not use introtext. Is there a way i can add this functionnality ?
    Thanks

    Sherlock Friend
    #402886

    Hi jimbojia,

    You open the file of modulesmod_jabulletinhelper.php search for this line of code
    [php] $lists [$i]->text = htmlspecialchars ( $row->title ); [/php]

    Change it to
    [php]
    $lists [$i]->text = htmlspecialchars ( $row->title );
    $lists [$i]->introtext = $row->introtext;
    [/php]

    Now you have the introtext field for using and just try again.

    jimboja Friend
    #403284

    Hello
    thanks dathq
    I did what you said but it did not change a thing…
    is there anywhere else to put this line?

    Sherlock Friend
    #404874

    <em>@jimboja 255915 wrote:</em><blockquote>Hello
    thanks dathq
    I did what you said but it did not change a thing…
    is there anywhere else to put this line?</blockquote>

    HI jimboja,

    I tried and it worked for me, be sure that you made change in the file of templatesja_teline_ivhtmlmod_jabulletindefault.php not modulesmod_jabulletintmpldefault.php

    jimboja Friend
    #409784

    Cannot find the line. HEre is the source code of the file you mentionned:

    <?php
    /*
    # ————————————————————————
    # JA Bulletin module for Joomla 1.5
    # ————————————————————————
    # 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.
    # ————————————————————————
    */
    defined(‘_JEXEC’) or die(‘Restricted access’); ?>
    <div id=”ja-bulletin”>
    <ul class=”ja-bulletin<?php echo $params->get(‘moduleclass_sfx’); ?> clearfix”>
    <?php if(!empty($list)): ?>
    <?php foreach ($list as $item) : ?>
    <li>
    <?php
    $padding = ($params->get( ‘show_image’))?”style=”padding-left:”.($params->get(‘width’)+10).”px””:””;
    if (isset($item->image)) :
    ?>
    <?php if( $item->image ) : ?>
    <a href=”<?php echo $item->link; ?>” class=”mostread<?php echo $params->get(‘moduleclass_sfx’); ?>-image”>
    <?php echo $item->image; ?>
    </a>
    <?php endif; ?>
    <?php endif; ?>
    <div <?php echo $padding;?> class=”box-right”>
    <a href=”<?php echo $item->link; ?>” class=”mostread<?php echo $params->get(‘moduleclass_sfx’); ?>”><?php echo $item->text; ?></a>
    <?php if ($showcreater) : ?>
    <br/> <span class=”createby”><?php echo $item->creater;?></span>
    <?php endif; ?>
    <?php if (isset($item->date)) : ?>
    – <span><?php echo JHTML::_(‘date’, $item->date, JText::_(‘DATE_FORMAT_LC4’)); ?></span>
    <?php endif; ?>
    <?php if (isset($item->hits)) : ?>
    <span class=”item-hits”>
    <?php if($useCustomText):
    echo JText::_($customText);
    endif;
    ?>
    <?php echo $item->hits; ?>
    </span>
    <?php endif; ?>
    <?php if ($showreadmore) : ?>
    <br/><a href=”<?php echo $item->link; ?>” class=”readon” title=”<?php echo JText::sprintf(‘READ MORE…’);?>”><?php echo JText::sprintf(‘Read more…’);?></a>
    <?php endif; ?>
    </div>

    </li>
    <?php endforeach; ?>
    <?php endif; ?>
    </ul>
    </div>

    gray Friend
    #409787

    I’ve created an modified version of the module to include the intro text. It’s working now on http://www.zerno.org.ua (second tab). If it’s needed, I can upload the whole archive.

    jimboja Friend
    #409789

    <em>@gray 264155 wrote:</em><blockquote>I’ve created an modified version of the module to include the intro text. It’s working now on http://www.zerno.org.ua (second tab). If it’s needed, I can upload the whole archive.</blockquote>

    Yes please and if you could help me locating the right file, it’ll be perfect as i also want to include author’s avatar there in some cases.
    Thanks a lot

    gray Friend
    #409878

    Attached is a modified version of JA Bulletin module v.1.0.3.
    – added option to choose sorting field – by articles’ creation or publication date
    – added option to add intro text
    Note: the CSS files used for rendering could be modified to match the site’s style.


    jimboja Friend
    #410000

    <em>@gray 264263 wrote:</em><blockquote>Attached is a modified version of JA Bulletin module v.1.0.3.
    – added option to choose sorting field – by articles’ creation or publication date
    – added option to add intro text
    Note: the CSS files used for rendering could be modified to match the site’s style.</blockquote>

    Thanks i’ll give it a try.

    bennie01 Friend
    #465020

    Have the same wish for the 2.5 version…

    multimediavideo Friend
    #472748

    great script, works great!
    How can I truncate the text after a certain number of characters?

    Thanks for the reply
    Multimediavideo

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

This topic contains 11 replies, has 5 voices, and was last updated by  multimediavideo 12 years ago.

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