Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Fixes
Author Message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Apr 12, 2007 7:51 am Reply with quote

I fixed this on my old 7.9 site; I noticed it today in RN2.10. Some news comments were getting displayed out of order.

I fixed it by finding this code in the function DisplayTopic in modules/News/comments.php:

Code:


if ($order==1) $q .= " ORDER BY date DESC";
if ($order==2) $q .= " ORDER BY score DESC";


And replacing it with this:
Code:


if ($order==0) $q .= " ORDER BY date";
if ($order==1) $q .= " ORDER BY date DESC";
if ($order==2) $q .= " ORDER BY score DESC";

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Apr 13, 2007 7:05 am Reply with quote

Gremmie, I have added this to our bug tracker (you do know that you have access to that right?). Thank you for this!

I will also move this to the staff Bug Report, as I will assume that you have tested all the various comment threading methods and that this works appropriately for all of them.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Fri Apr 13, 2007 7:47 am Reply with quote

Sorry I haven't figured out the tracking system yet. Embarassed

I tested all the comment threading orders under 7.9. I did not do that yet on RN2.10.
 
Gremmie







PostPosted: Fri Apr 13, 2007 8:30 am Reply with quote

Ok, I tried it out with the two date related comment orderings, but to be honest I have no idea how to change the score on a comment. Smile
 
montego







PostPosted: Sun Apr 15, 2007 12:34 pm Reply with quote

No worries m8. I incorporated your change and I just cannot see how it wouldn't be appropriate for all threading types as well.

As far as scoring goes, the "Article Rating" block to the right of the news article (once you are in the article) should be updating the score... hopefully it is. If not, then we have another issue.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Fixes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©