https://www.icyphoenix.com/viewtopic.php?f=35&t=1179&p=9083#p9083
-----------------------------------
Dennisen
Thu 22 Feb, 2007 14:55

PHPBBXS - MoveMessageMod
-----------------------------------
I've just got this mod and want to install it. But i can't find this in my modcp.php

[code linenumbers=false]# 
#-----[ FIND ]------------------------------------------ 
#
		}

		$sql = "UPDATE " . TOPICS_TABLE . " 
			SET topic_status = " . TOPIC_LOCKED . " 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
		move_message_mod($topics[$i], '', 'lock', '', '', $userdata['user_id']);

# 
#-----[ FIND ]------------------------------------------ 
#
		}

		$sql = "UPDATE " . TOPICS_TABLE . " 
			SET topic_status = " . TOPIC_UNLOCKED . "

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
		move_message_mod($topics[$i], '', 'unlock', '', '', $userdata['user_id']);
[/code]


The complete instructions are:

[code linenumbers=false]# 
#-----[ OPEN ]------------------------------------------ 
#
modcp.php

# 
#-----[ FIND ]------------------------------------------ 
#
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
include($phpbb_root_path . 'move_message_mod.'.$phpEx);

# 
#-----[ FIND ]------------------------------------------ 
# 
$post_id_sql .= ( ( $post_id_sql != '' ) ? ', ' : '' ) . intval($row['post_id']);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
delete_topic($topic_id_sql);

# 
#-----[ FIND ]------------------------------------------ 
#
			message_die(GENERAL_ERROR, 'Could not insert shadow topic', '', __LINE__, __FILE__, $sql);
		}
	}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
move_message_mod($row[$i]['topic_id'], '', 'move', $old_forum_id, $new_forum_id, $userdata['user_id']);

# 
#-----[ FIND ]------------------------------------------ 
#
		}

		$sql = "UPDATE " . TOPICS_TABLE . " 
			SET topic_status = " . TOPIC_LOCKED . " 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
		move_message_mod($topics[$i], '', 'lock', '', '', $userdata['user_id']);

# 
#-----[ FIND ]------------------------------------------ 
#
		}

		$sql = "UPDATE " . TOPICS_TABLE . " 
			SET topic_status = " . TOPIC_UNLOCKED . "

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
		move_message_mod($topics[$i], '', 'unlock', '', '', $userdata['user_id']);

# 
#-----[ FIND ]------------------------------------------ 
#
		$new_topic_id = $db->sql_nextid();

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
		move_message_mod($new_topic_id, $topic_id, 'split', $forum_id, '', $userdata['user_id']);
[/code]

Where should i put this?


