The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how do i send a private message (pm) using datamanager
how do i send a private message (pm) using datamanager ?
I need to integrate vbulletin into a cms. I need to find the documentation about being able using datamanager to insert into the vbulletin pm tables a private message from a user coming from the cms I already know how to replicate users from my CMS into vbulletin. thus I need to get the doc about the datamanager "Private Messages" what parameters do we pass ? what are the name of the variables? I could not find anything in the official doc thank you for your help Reply With Quote |
#2
|
||||
|
||||
this is just a copy/paste ... you will need to take a look at private.php to get a better idea of what you need
PHP Code:
|
#3
|
|||
|
|||
concerning this line
$pmdm->set_recipients($pm['recipients'], $permissions); do you know what needs to be included in $permissions ? i tried the usergroupid but when i look at the tabl pmtext the array is a:1:{i:11;s:12:"Chanel";} i am not sure what i and s in the array stands for I thought the i in the array was the usergroupid from the table vbusergroup i am not sure waht really goes into the $permissions and the error given by class vb_datamanager_pm is not very helpful ---------------------- ERROR0:The following users were not found: 1. 11 Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758 ---------------------------- i know that the user id 11 exists because i did several pm tests from the vbulletin application and i look after in the table to see what is saved. any help would be appreciated |
#4
|
||||
|
||||
Check the tutorial forum.
|
#5
|
|||
|
|||
nevermind i found the solution
i thought that $recipients needed to contain the userid field and in fact it needs to be the username field. I can not get used to that. why can't they rely on a record id to link two tables? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|