The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with Message System
Hey vBulletin.org members,
I have a big problem , I have intigrated an payment option in my vBulletin board, and users can send other users "GP?s" (credits), and if someone sends anoter user an amount he must be informed why the sender has send him the amount, the problem is, How can I send an automatic message to the receiver with a few information about the reason why him is sended the credits. Sry for my bad English MfG HolySell --------------- Added [DATE]1327773833[/DATE] at [TIME]1327773833[/TIME] --------------- please :/ |
#2
|
|||
|
|||
H E L P please
|
#3
|
|||
|
|||
where did you get this plugin
|
#4
|
|||
|
|||
I have written it by myself, how can I inform an user which have become sended an payment from another user ?
|
#5
|
|||
|
|||
help please
|
#6
|
|||
|
|||
I'm not sure if this is what you're asking, but you can send a PM from code like this:
Code:
// Set these like you want $title = "PM title"; $message = "PM message"; $touserid = id; $fromuserid = id; $touserinfo = fetch_userinfo($touserid); $fromuserinfo = fetch_userinfo($fromuserid); $pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT); $pmdm->set_info('savecopy', false); $pmdm->set_info('receipt', false); $pmdm->set_info('cantrackpm', false); $pmdm->set_info('forward', false); $pmdm->overridequota = true; $pmdm->setr('title', $title); $pmdm->setr('message', $message); $pmdm->set('dateline', TIMENOW); $pmdm->set('fromuserid', $fromuserid); $pmdm->set('fromusername', $fromuserinfo['username']); $pmdm->set_recipients($touserinfo['username'], $fromuserinfo['permissions'], 'cc'); $pmdm->pre_save(); if (!$pmdm->errors) $pmdm->save(); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|