我有一个PHPBB论坛,想编写一个外部类,可用于向论坛的某些用户发送私人消息。

另外,我想自动化在论坛上发送帖子的过程,因为因此可以包含一些自动通知。

沿线的东西:

PhpbbControl::sendPM(Integer $from_user, Array $to_users, String $content);
// ^ sends a new private message, returns false on failure

PhpbbControl::newPost(Integer $forum_id, Integer $from_user, String $content);
// ^ creates a new post on a given forum, returns false on failure

有什么想法或已知的mod可以提供吗?

谢谢

有帮助吗?

解决方案

在我写的一个mod中,我需要发送PM。 DualFusion(另一个PHPBB Modder)写了一个函数来做到这一点。你可以找到它 这里 (第48-147行)。

我对NewPost功能不了解(不久前我离开了改装场景),但是写一个不太难。您可以在PM功能上对其进行建模,并找出需要编辑的表。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top