miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
The Other miniBB Support Forums / The Other /  
 

How to move the message up or down within the same thread/topic?

 
Author Steve Shaw
Partaker
#1 | Posted: 11 Sep 2013 12:26 
How can a post be moved within the same thread/topic?

For example, I have a post number 4 in a thread that I really need to be post 1...
Is that possible?

Steve

Author Paul
Lead Developer 
#2 | Posted: 11 Sep 2013 15:47 
Sorry. It's not possible using internal miniBB tools. Also, even manually it could not be impossible to achieve.

All messages in miniBB have unique numerical auto-incremental IDs assigned to them, and in the thread, they are sorted by these IDs in ascending order. Thus messages in the thread do not have +1 increasing IDs. For example, if you look at this thread, your message ID is 37842, mine is 37844 (this is visible if you mouse over the # link). It is because I replied in the other topic, and there my message's ID was 37843.

So if we would like to move the message up or down within the topic itself, that would mean, we would need to change its ID, so it fits the IDs above or below properly. In most cases, it's not possible, because IDs will be reserved by messages in the other topics. Also, changing the unique / auto-incremental ID manually means truly bad approach, it breaks the core rule of DB's architecture.

Author sakry
Partaker
#3 | Posted: 18 Sep 2013 20:51 
Mmm that's sad I wanted to do it too

Author Paul
Lead Developer 
#4 | Posted: 18 Sep 2013 21:36 
I'm not sure why it would be needed, but if you could explain it on fingers, I mean some practical case, not theoretical when and why it could be needed, may be there could be just another solution. In my 10+ years practice I didn't met a case when the message from the middle of the topic needs to become first. It's not about the structure/approach of regular forums at all, it's something from the software of another kind, and it needs to be handled differently.

Author Paul
Lead Developer 
#5 | Posted: 19 Sep 2013 14:50 
I have thought a bit about this, and have the following solution: instead of moving messages up and down and changing their IDs, there could be much simpler way to swap messages. I.e., let's say, the content of the message #1 will become the content of the message #4 below the page, and the content of the message #4 will become the content of the message #1. So we will actually not change messages order or IDs, but will only swap their content. This is possible.

Author Steve Shaw
Partaker
#6 | Posted: 19 Sep 2013 14:54 
Oh - Ok.

Would that swap user name and signature details as well?

The reason for the need is that we have a list of people attending an event, but the info about the event is below the list in a later post, when it really needs to be the first post.

See: http://www.7-dna.com/forums/index.php?action=vthread&forum=6&topic=184

Post #4 should be at the top.

Steve

Author Paul
Lead Developer 
#7 | Posted: 19 Sep 2013 15:15 
Steve Shaw:
Would that swap user name and signature details as well?
Yes, but the only question is then - if we talk about the first message, which is the topic's body actually - what member should we consider as the author of the topic?

Hmm, I've checked your case... why not to delete or move the first messages? It seems they are just expired, that's why something from the middle needs to become fresh...

Author tom322
Active Member
#8 | Posted: 19 Sep 2013 18:04 
vbulletin, phpbb etc. have one-time options like that; miniBB doesn't need to follow their path ;) Deleting/moving/merging the message is enough I think.. What if first message has file attached or premoderation - other scripts would have to be updated just for that.

Author Paul
Lead Developer 
#9 | Posted: 19 Sep 2013 18:50 
tom322:
What if first message has file attached or premoderation - other scripts would have to be updated just for that.
I tend to believe it's not for Pre-moderated messages, definitely :) But you're right about the file attachments thing. It also needs extension for this.

So this is not a simple add-on at all, anyway.

Author AlvaroPer
Partaker
#10 | Posted: 1 Sep 2017 10:42 
Does anyone know if this is possible now. Or how to reverse the order of posts so thatthe first becomes the last?

Author Paul
Lead Developer 
#11 | Posted: 2 Sep 2017 10:07 
AlvaroPer
It's not possible now and I doubt it would be possible ever, 'cause it destroys the nature of the forum. But you could set up some topics sorted in descending order, look in the Manual for how to.

The Other miniBB Support Forums / The Other /
 How to move the message up or down within the same thread/topic?
 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
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑