15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Reverse Posts Ordering

Author tuvi
#1 | Posted: 24 Dec 2005 08:23 
How can I set DESC is the DEFAULT ordering of posts??

It would be cumbersome to edit $themeDesc Array... for every new posts and the array will be long..

Author Ivan
Advanced Member
#2 | Posted: 24 Dec 2005 16:21 
With the new option in RC5. See in the !UPDATE.txt.

Author Team
#3 | Posted: 24 Dec 2005 17:24 | Edited by: Team 
Option called $customTopicSort - but trust me, it's a bad idea.

Author tuvi
#4 | Posted: 28 Dec 2005 11:22 
Does not work...

7=>array('post_id DESC', 'New Post')

It seems that $themeDesc is the only way... by setting in advance...

$themeDesc=array(1,2,3,4,5, .... BLAH, BLAH, ... ,46,47,48,49,50);

Author Team
#5 | Posted: 28 Dec 2005 11:35 
Well, do you mean ordering on which page? $customTopicSort gives you possibility to order list of TOPICS, but $themeDesc just reverses ordering of the MESSAGES inside each topic.

If you want all messages sorted in reverse order, just put this in bb_plugins.php:

if($topic!=0) $themeDesc[]=$topic;

Author tuvi
#6 | Posted: 28 Dec 2005 11:57 
if($topic!=0) $themeDesc[]=$topic;

Thanks... that does it....

more elegant :)

Author tuvi
#7 | Posted: 28 Dec 2005 12:00 
One question... though...

If topics get to 1000 or even 10,000....

It will slow down the forum... considerably??

Author Team
#8 | Posted: 28 Dec 2005 12:02 
Messages are sorted by post_id field which is very well indexed and should not affect the speed of forum overall.

Author tuvi
#9 | Posted: 28 Dec 2005 12:23 
thanks... for the quick reply....

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Reverse Posts Ordering Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB