Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • obliat Friend
    #464464

    Oddly enough, despite your efforts, there is just something weird with all this and it’s because of K2 I’m sure of it, but this is what I only use.

    So I just found that in the JA Bulleting module (I had Latest plus Most Read on jatabs1 position) items in the list show no creation, but last modified date – and there is no setting in the module where I can change this so I can’t figure out why it would pick the Last modified date over Creation date?!?

    I actually found via Firebug, that this is set in template/ja_teline_iv/html/mod_jabulletin/default.php with a class=post-date and the related code is:

    <span class="post-date">
    <?php if ($showcreater) : ?>
    <span class="createby"><?php echo JText::_('By: '); ?><span><?php echo $item->creater;?></span></span>
    <?php endif;?>

    <?php if (isset($item->date)) :?>
    <span class="createdate"><?php echo JText::_('Post').': '; echo JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC4')); ?></span>

    But I don’t see a reason thet it picks up Last modified date ?!? And I know it does so because I checked some old articles and I saw Ja Bulletin list shows Last modified time…

    Great that you supplied new module version, but I guess module related files in the template html folder are not affected by it – and they are back from May

    Hope this sparks some ideas to you :-[

    obliat Friend
    #465327

    Hi Sherlock, please let me know if you had time to look into this – I keep the newest module version on my webpage, but it has some odd behaviour of showing smileys instead of th40bs so please kindly advise if I need to roolback in case there’s issues with finding a decision.

    Thanks and best wishes

    Martin

    Sherlock Friend
    #465404

    Hi obliat,

    I think it’s a logical bug on this module, you can try as following
    Open the file modulesmod_jabulletinhelper.php looking for this code
    [PHP]
    if ($showdate) {
    $item->date = $item->modified == null || $item->modified == “” || $item->modified == “0000-00-00 00:00:00” ? $item->created : $item->modified;
    }

    [/PHP]

    Change it to
    [PHP]
    if ($showdate) {
    $item->date = $item->created;
    }

    [/PHP]

    Let me know if this help !

    obliat Friend
    #465645

    Thanks Sherlock,

    this fixed the creation date issue – it now shows date of creation.

    I will take a look at the code (the newest version of the module) again as I still have the other issue that it now shows (different) smileys instead of thumbs on some items and it’s very odd you know.

    The main request, however, still needs attention – I am setting timeframe for most read items but it still shows the oldest most read K2 items, not those from the time period I set.

    Thanks a again and let me know if you find a decision to those things.

    Best Regards
    Martin

    Sherlock Friend
    #465667

    Okay obliat, I checked again one more time and actually it’s my fault, the code should be
    [PHP]if($ordering == “i.hits” && $params->get(‘timerange’)){
    $datenow = JFactory::getDate();
    $date = $datenow->toMySQL();
    $query.=” AND i.created > DATE_SUB(‘{$date}’,INTERVAL “.$params->get(‘timerange’).” DAY) “;

    }[/PHP]

    Instead of
    [PHP]
    if($ordering == “mostread” && $params->get(‘timerange’)){
    $datenow = JFactory::getDate();
    $date = $datenow->toMySQL();
    $query.=” AND i.created > DATE_SUB(‘{$date}’,INTERVAL “.$params->get(‘timerange’).” DAY) “;

    }[/PHP]

    Sorry for the mistake, I updated into your module for you, you can check again to see it work now.

    obliat Friend
    #465699

    YYYYYEEEEEEEESSSSSSSSSSSSS – that is a dream come true – please, no PLEASE include this officially in the module and please guys do a blog about it – seriously – it now shows most read from latest articles as you can specify real short time frame and your website looks updated and that you care about your readers. AWESOME, MARVELOUS.

    THANK YOU.

    One last request is to help me with this smiley issue that I told you in my last post.

    Sherlock Friend
    #465703

    Hi obliat,

    Maybe in the article contents you have some smiley icons, if that the module would get out those icons as thumbnail images, I think you should remove those icons from the content if possible.

    obliat Friend
    #465759

    No mate, this started once I upgraded the module with the one you provided 🙂

    It was showing only thumbs before that – but I can’t trace what change that you made could be causing this behaviour

    What I discovered is that the systems creates atutomatically a folder:

    public_html/images/resized/components/com_jce/editor/tiny_mce/plugins/emotions/img

    with several smileys inside, and even if I delete it creates it again.

    I can easily attribute it to JCE editor, but again, this started once I upgraded JA Bulletin module (I haven’t made changes to JCE)

    Ideas? 🙂

    Sherlock Friend
    #465802

    Okay, it’s mistake in the module, I have just fixed it for you, please check

    obliat Friend
    #465871

    Well, I can’t express how glad I was to see it show thumbs again.

    I am so happy that it all works so nice now and once you announce it tones of people all over the worlds using Teline IV willl now be able to set their JA Bulleting modules show Most read articles from much shorter period of time.

    Thank you very much 🙂

Viewing 10 posts - 16 through 25 (of 25 total)

This topic contains 25 replies, has 2 voices, and was last updated by  obliat 12 years, 2 months ago.

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