test
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • dieudonne Friend
    #164097

    Hello,

    I have some problems to display category with Ja Bulletin Module.

    example in the demo.
    In the module “Latest News” (ja-tabs1 position), if a main category like “World” is selected, nothing appears on the front page.

    If “All Categories” is selected, or a sub category of “World” or other, everything is fine…

    see my screenshot.

    So what can I do to fix this ?

    Thanks in advance.

    (ja teline IV – Joomla 1.6)


    1. 2011-05-17-13h36_11
    pritam Friend
    #391624

    Hello,

    To Fix the issue Ja Buttetin don’t display main category

    you can refer to this url http://www.joomlart.com/forums/topic/order-in-ja-bulletin-latest-news/

    dieudonne Friend
    #391627

    Thanks, but the code (in modules/mod_jabulletin/modulehelper.php) is more complicated (it is not the same!!) :

    [PHP]// Set ordering
    $ordering = $params->get(‘type’, ‘latest’);
    if($ordering==’latest’){
    $ordering = ‘a.modified’;
    }
    else{
    $ordering = ‘a.hits’;
    }
    $dir = ‘DESC’;

    $model->setState(‘list.ordering’, $ordering);
    $model->setState(‘list.direction’, $dir);

    $items = $model->getItems();

    if($items){

    $i = 0;
    $showHits = $params->get(‘show_hits’,0);
    $showHits = $showHits == “1”?true:false;
    $showimg = $params->get ( ‘show_image’, 1 );
    $w = ( int ) $params->get ( ‘width’, 80 );
    $h = ( int ) $params->get ( ‘height’, 96 );
    $showdate = $params->get ( ‘show_date’, 1 );

    $thumbnailMode = $params->get( ‘thumbnail_mode’, ‘crop’ );
    $aspect = $params->get( ‘use_ratio’, ‘1’ );
    $crop = $thumbnailMode == ‘crop’ ? true:false;
    $lists = array ();
    $jaimage = JAImage::getInstance();

    foreach ($items as &$item) {
    $item->slug = $item->id.’:’.$item->alias;
    $item->catslug = $item->catid.’:’.$item->category_alias;

    if ($access || in_array($item->access, $authorised))
    {
    // We know that user has the privilege to view the article
    $item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug));
    }
    else {
    $item->link = JRoute::_(‘index.php?option=com_user&view=login’);
    }

    $item->introtext = JHtml::_(‘content.prepare’, $item->introtext);
    $item->text = htmlspecialchars ( $item->title );

    if ($showdate) {
    $item->date = $item->modified == null||$item->modified==””||$item->modified==”0000-00-00 00:00:00″ ? $item->created : $item->modified;
    }
    $item->image = ”;
    if ($showimg) {
    $imageSource = $jaimage->parseImage( $item->introtext. $item->fulltext);
    if ( $imageSource ) {
    if( $thumbnailMode != ‘none’ ) {
    $imageURL = $jaimage->resize( $imageSource, $w, $h, $crop, $aspect );
    if( $imageURL ){
    if ( $imageURL == $imageSource ) {
    $width = $w ? “width=”$w”” : “”;
    $height = $h ? “height=”$h”” : “”;
    $item->image = “<img src=”$imageURL” alt=”{$item->text}” title=”{$item->text}” $width $height />”;
    } else {
    $item->image = “<img src=”$imageURL” alt=”{$item->text}” title=”{$item->text}” />”;
    }
    } else {
    $item->image = ”;
    }
    } else {
    $width = $w ? “width=”$w”” : “”;
    $height = $h ? “height=”$h”” : “”;
    $item->image = “<img src=”$imageSource” alt=”{$item->text}” title=”{$item->text}” $width $height />”;
    }
    }
    }

    $item->creater = isset($item->author)?$item->author:””;
    if($showHits)
    {
    $item->hits = isset($item->hits)?$item->hits:0;
    }
    else
    {
    $item->hits = null;
    }
    }
    }

    return $items;
    } [/PHP]

    So I don’t how to change this. I don’t want to make a mistake.
    And I don’t understand what it doesn’t work with the main category. It is not logic !

    dieudonne Friend
    #392122

    Any news of this bug ??

    chavan Friend
    #393740

    Hello dieudonne,
    Sorry for late response, please PM me your admin information for further checking. Thanks.

    dieudonne Friend
    #395888

    Hello, I PM you 1 week ago, and now ?
    Can you give me some news ?

    Don Lee Friend
    #396014

    <em>@dieudonne 246465 wrote:</em><blockquote>Hello, I PM you 1 week ago, and now ?
    Can you give me some news ?</blockquote>

    Hi,

    thuannt has been away from working for weeks, can you please provide us with the access info again via your support ticket then another developer will check the issue for you http://support.joomlart.com/index.php?/Tickets/Ticket/View/72722

    Thanks, your patience is appreciated!

    Don

    dieudonne Friend
    #396159

    The access info is already in the ticket !

    It’s a test version, but if you do the same thing with the quickstart version, the same problem appears….

    Thank in advance.

    thangnn1510 Friend
    #396195

    Sorry for this but we need all FTP and Admin account. You have sent the Admin account please give us both of them. Thanks.

    dieudonne Friend
    #399946

    Ok I open a new ticket (KFG-139-67764) with all information.

    And on the front page (on the right) , you’ll see “publications” tab.
    This is where the problem is.

    Thanks in advance.

    thangnn1510 Friend
    #400044

    Hi Dieudonne!

    Thanks for giving me the login information. There’s no article in main Category you have selected for JA Bulletin. In this case you should add articles for that category or select more sub-categories inside it.

    Please tell us if you need more help.

    Thank you.

    dieudonne Friend
    #400073

    Hello,

    thank you for your explanation.

    I just figured that it was necessary to select multiple categories (ctrl-clic)

    I was convinced that if you select a main category, it automatically displays the sub categories.

    Everything is ok now.
    Thank you for your help.

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

This topic contains 12 replies, has 5 voices, and was last updated by  dieudonne 13 years, 5 months ago.

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