miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Private Messaging addon for miniBB Allow your miniBB-forums members communicate with each other tet-a-tet with the Private Messaging add-on!
News & Announcements miniBB Community Forum / News & Announcements /
Short link for this topic:

Moving Replies add-on's quick fix

Author Paul
CEO
#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:

$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
Forums Member
#2 | Posted: 2 Mar 2010 10:23
Done, thank you, works OK.
News & Announcements miniBB Community Forum / News & Announcements / Moving Replies add-on's quick fix Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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 Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts