News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Notification when a post is moved to a board

Started by ettore.gabrielli, November 03, 2022, 09:24:42 AM

Previous topic - Next topic

ettore.gabrielli

I would like to be notified, in the board in which I have registered, when a post is moved within the board, and not just when a new one is created.


I tried to put this

$notifyData = array(
 'body' => $_POST['message'],
 'subject' => $_POST['subject'],
 'name' => $user_info['name'],
 'poster' => $user_info['id'],
 'msg' => $msgOptions['id'],
 'board' => $board,
 'topic' => $topic,
);

notifyMembersBoard($notifyData);

on movetopic.pho, adding "function notifyMembersBoard(&$topicData)" from posts.php, but i receive an error of "Cannot unset string offsets".

Why?

P.S.
Sorry for english!


Advertisement: