在phpBB中创建address_list数组?
有人可以解释 address_list
在 phpBB 中如何工作吗?我正在尝试创建一个用于自动插入私人消息的小函数,并且认为到目前为止我已经完成了:
我们会说我当前的用户数组如下所示:
$users = array('100','150 ','77','94')
其中每个数字都是用户的 ID。
当前的 address_list
看起来像这样:
'address_list' => array ('u' => array(2 => 'to'))
是的,它是直接取自 http://wiki.phpbb.com/Using_phpBB3%27s_Basic_Functions#1.4.7._Inserting_Posts_and_Private_Messages
据我所知,解释告诉我它使用一个二维数组,但我不需要发送到组,而且我什至不知道如何将二维数组放入该方程中。我想做的就是发送给该列表中的第一个用户 ID,然后密件抄送所有其他用户。
话又说回来,phpBB 的文档对我来说总是几乎不可能遵循。
感谢任何和所有的帮助。
Can someone explain how address_list
works in phpBB? I'm attempting to create a small function for automatically inserting private messages and think I have it up to this point:
We'll say my current user array looks like this:
$users = array('100','150','77','94')
where each number is a user's ID.
current address_list
looks like this:
'address_list' => array ('u' => array(2 => 'to'))
Yes, it has been taken directly from http://wiki.phpbb.com/Using_phpBB3%27s_Basic_Functions#1.4.7._Inserting_Posts_and_Private_Messages
As far as I can tell, the explanation is telling me that it uses a two-dimensional array, but I don't need to send to groups, and I'm not even sure how to stick a two-dimensional array into that equation. All I want to do is send to the first userid on that list, and the BCC all the others.
Then again, phpBB's documentation has always been near-impossible for me to follow.
Any and all help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
格式如下:
u
包含user_id => 的映射。收件人类型
。g
包含group_id => 的映射收件人类型
。收件人类型可以是
to
或bcc
。此示例将向用户 2 和组 40 发送私信,并向用户 3 和组 41 发送密件抄送。
The format is as follows:
u
contains a mapping ofuser_id => recipient_type
.g
contains a mapping ofgroup_id => recipient_type
.A recipient type can be either
to
orbcc
.This example will send the PM to user 2 and group 40, and also send a BCC to user 3 and group 41.