PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
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 Back to top

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";
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

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
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum