miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

Reverse Posts Ordering

 
Author tuvi
Partaker
#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
8-)
#3 | Posted: 24 Dec 2005 17:24 
Option called $customTopicSort - but trust me, it's a bad idea.

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

$customTopicSort=array(
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
8-)
#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
Partaker
#6 | Posted: 28 Dec 2005 11:57 
if($topic!=0) $themeDesc[]=$topic;


Thanks... that does it....

more elegant :)

Author tuvi
Partaker
#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-)
#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
Partaker
#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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑