Blog Made Simple: Posting Order

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Blog Made Simple: Posting Order

Post by mnapiork »

I've installed Blog Made Simple and everything appears to be working fine except the ordering of the posts.  Newer posts appear after older posts. I've set the oldestfirst="false" and the oldestfirst="true" and neither parameter seems to affect the order of the posts. 

Does anyone know how to fix this problem?

Thanks in advance,
Michael
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Re: Blog Made Simple: Posting Order

Post by mnapiork »

Found a solution. I ended up modifying the SQL statements in Blogs.module.php in the Blog module directory  to DESC instead of ASC.  I'm never going to want the blog in the reverse order so this works for me.

Michael
blaquekaat

Re: Blog Made Simple: Posting Order

Post by blaquekaat »

Hi Micheal

I'm having the same issue as you. I've changed every mention of ASC to DESC that I could find with no luck. Could you be more specific as to what you changed and where?

Blaquekaat
swapdude
New Member
New Member
Posts: 9
Joined: Mon Jan 14, 2008 5:11 am

Re: Blog Made Simple: Posting Order

Post by swapdude »

Hi mnapiork,

Find this statement in Blogs.Module.php

$query="SELECT DISTINCT entry.* FROM ".cms_db_prefix()."module_blogs_entries AS entry LEFT JOIN ".cms_db_prefix()."module_blogs_comments AS comment ON entry.id=comment.entry WHERE entry.category=? $active ORDER BY comment.createtime";

And change the last part from comment.createtime -> entry.createtime

That should do it.

Swap
Post Reply

Return to “Modules/Add-Ons”