By Nati on Monday, 23 March 2015
Posted in Technical Issues
Replies 15
Likes 0
Views 464
Votes 0
Hi,

I wanted to configure the module "EasyBlog Latest Blogs" to show always the last post at the top of the list. As far as I see, in the part "Post Parameter" I can select 'Sorted by' (e.g. Published). This results in a chronological order. However, I would need a reverse order (i.e. the last published entry is listed a the top of the list etc.).
Any suggestions?

Greetings
Hi Natividad,

I am sorry for the late reply.
Can you provide us with backend access and FTP access so that we can further assist you on this issue.

Please advise.
·
Monday, 23 March 2015 23:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

sorry - but I have no permission to do so. I am using the latest version of the modules. It is possible to provide other information to you which might be helpful?
·
Tuesday, 24 March 2015 00:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nati,

I am sorry for the delay of this reply.

Can you try to set the setting from your joomla backend > easyblog > settings > layout > general > frontpage posts order sorting set to ascending and see how it goes? Refer screenshot here, http://screen.stackideas.com/2015-03-24_1257.png
·
Tuesday, 24 March 2015 12:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Ezrul,

thank you for your response. The backend setting your described will not influence the behaviour of the module but the ordering of the blog when using for example a menu item. In order to be sure, I check it and it behaves like mentioned. By the way, I am quite happy with the 'descend' ordering within the blog listing but I would like to change the module's behaviour ('EasyBlog Latest Blogs'). This module seems to list the last x entries always in ascending order (i.e. the oldest one is the first in the list). I would like to have a latest one in the list as the first entry listed with the help of the mentioned module. In this way an interested reader will alway see the latest on top.
·
Tuesday, 24 March 2015 23:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nati,

Which filtering are you using for the module? The latest blogs module will actually retrieve the latest posts created on the site by default provided that you choose the sorting by creation date.
·
Wednesday, 25 March 2015 03:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

here here some details, I don't know which one you need. I made some screenshots. Please check the attachments.
·
Wednesday, 25 March 2015 14:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nati,

From your screenshot, I can see that you have done some customization to the module. It is hard for us to know what you have customize to the module. We really hope that you can provide us with backend access and FTP access so that we can assist you much quicker. However, if you still can't provide it, perhaps you can provide us link to your site so that we can have a better understanding here.

By the way, I am quoting my colleague reply stated that "the latest blogs module will actually retrieve the latest posts created on the site by default, provided that you choose the sorting by creation date."

Please advise.
·
Wednesday, 25 March 2015 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

we enabled the module for a demo for you in a different installation, we checked the proper installation of the module without customization of the original:
Here is the link http://uc-lab.in.htwg-konstanz.de
Example:
On the initial link browse down on the page and go to the middle entry "Body Sensor".
Currently, there are three entries:

Poor sleep quality due to sleep deprivation or fragmentation
Sleep, vital signals during sleep and sleep disorders
ECG monitoring and sleep disorders

These posts are in chronological order with creation dates: 02-mar-15, 08-mar-15 and 23-mar-15 (creation and publishing dates are in all cases the same). What we would like to have is that the latest blog entry (in this case the third entry in the listing) is shown first and not at the end of the list. If this would be possible, we would result in a reverse order with respect to the current one. And this would really show the latest entry on top.
·
Wednesday, 25 March 2015 20:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nati,

I am sorry for the late reply.


Regarding your inquiry, "we would like to have is that the latest blog entry (in this case the third entry in the listing) is shown first and not at the end of the list." Please refer to my screenshot above, The ECG monitoring is already at the top of the list. Am I missing anything here?

Poor sleep quality due to sleep deprivation or fragmentation 02 March 2015
Sleep, vital signals during sleep and sleep disorders 08 March 2015
ECG monitoring and sleep disorders 23 March 2015

Please advise.
·
Thursday, 26 March 2015 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

yes, you are missing to browse down further until you find the column with title 'Body Sensor', like written in my previous post. The column you copied has a different deadline.
·
Thursday, 26 March 2015 13:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nati,

Here I have attached to you 2 files, please download it and put it here:
/modules/mod_latestblogs/helper.php
/components/com_easyblog/models/blog.php

Please give this a try and see if this resolves your issue. By the way, this is a customization on the core file of EasyBlog, and it will get override when updating to the latest. It is hard for us to guess what customization you have done to this module. So, by providing us with backend access and FTP access, we can assist you much better.

Please do understand that our hands are pretty tied to our existing development right now and if this a priority, please do post them on our sales section at https://crm.stackideas.com and our sales department would get back to you with a proper quote.

Please advise.
·
Thursday, 26 March 2015 14:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

I installed the two files as mentioned but there is no change.
·
Thursday, 26 March 2015 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nati,

Can you open this file in your site: /modules/mod_latestblogs/helper.php and update this line: 131 from this code:

$posts = $model->getBlogsBy( $type , $cid , 'latest,asc' , $count , EBLOG_FILTER_PUBLISHED, null, false , array() , false , false , true , array() , $cid );

to this:

$posts = $model->getBlogsBy( $type , $cid , 'latest,desc' , $count , EBLOG_FILTER_PUBLISHED, null, false , array() , false , false , true , array() , $cid );


Please give this a try and see if this resolves the issue. Hope this work.
·
Thursday, 26 March 2015 23:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

now the module is doing what a user expects. I hope the upcoming version will provide this feature - at least provided as an option within the web interface.
Thank you for your support!
·
Friday, 27 March 2015 07:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nati,

We'll see if we can include a settings in the module. But for the moment, this is a customization, and you need to backup these 2 files before updating EasyBlog.

Have a nice day.
·
Friday, 27 March 2015 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post