-
AuthorPosts
-
obliat Friend
obliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
August 16, 2012 at 9:42 pm #464464Oddly 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 Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
August 25, 2012 at 12:01 pm #465327Hi 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 27, 2012 at 3:13 am #465404Hi 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 !
1 user says Thank You to Sherlock for this useful post
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
August 28, 2012 at 7:20 pm #465645Thanks 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
MartinSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 29, 2012 at 2:31 am #465667Okay 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.
1 user says Thank You to Sherlock for this useful post
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
August 29, 2012 at 7:08 am #465699YYYYYEEEEEEEESSSSSSSSSSSSS – 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 29, 2012 at 7:24 am #465703Hi 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 Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
August 29, 2012 at 2:52 pm #465759No 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
August 30, 2012 at 9:09 pm #465871Well, 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 🙂
1 user says Thank You to obliat for this useful post
-
AuthorPosts
This topic contains 25 replies, has 2 voices, and was last updated by obliat 12 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum