miniBB Support Forums | 15 years on The Web
miniBB ®


 | Forums | Register | Reply | Search | Statistics | Manual |
News & Announcements miniBB Support Forums / News & Announcements /   

Moving Replies add-on's quick fix

Author Paul
Lead Developer
#1 | Posted: 2 Mar 2010 07:48 | Edited by: Paul 
Moving Replies add-on has been updated recently (both under Downloads and Compiler) to reduce resources on database when moving multiple messages at once. The fix is quite easy: under addon_movepost2.php, look up for the code which says:

foreach($movedMsgs as $postid) $tot+=updateArray(array('topic_id'),$Tp,'post_id',$postid);

foreach($movedMsgs as $postid) $tot+=updateArray(array('forum_id'),$Tp,'post_id',$postid);

it has been replaced to:

foreach($movedMsgs as $postid) {
$tot+=updateArray(array('topic_id', 'forum_id'), $Tp, 'post_id', $postid);

That way we reduce duplicate update operations which affect MINIBB_POSTS table.

Author tom322
Active Member
#2 | Posted: 2 Mar 2010 10:23 
Done, thank you, works OK.

News & Announcements miniBB Support Forums / News & Announcements /
 Moving Replies add-on's quick fix
 Share Topic's Link

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

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  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.