miniBB ® 

miniBB

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

Moving Replies add-on's quick fix

 
Author Paul
Lead Developer 
#1 | Posted: 2 Mar 2010 07:48 
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:

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

$forum_id=$fornew;
foreach($movedMsgs as $postid) $tot+=updateArray(array('forum_id'),$Tp,'post_id',$postid);
it has been replaced to:

$topic_id=$topicid;
$forum_id=$fornew;
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 miniBB Support Forums / News /
 Moving Replies add-on's quick fix
 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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑