The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Code:
$botpermissions['adminpermissions'] = 2;
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', '2');
$pmdm->set('fromusername', 'Dman');
$pmdm->set('title', $pmt);
$pmdm->set('message', $pms);
$pmdm->set_recipients($uname, $botpermissions);
$pmdm->set_info('receipt', false);
$pmdm->set_info('savecopy', false);
$pmdm->overridequota = true;
$pmdm->set('dateline', TIMENOW);
$pmdm->save();
|
|
#2
|
||||
|
||||
|
The "override quota" setting needs to be before the recipients are set, I believe.
|
|
#3
|
|||
|
|||
|
How to stop it from giving errors ? And all the queries are made after $pmdm->save(); right ?
|
|
#4
|
||||
|
||||
|
Again, see my post above - it should address your "PM quota/not enabled" error. If you have any other errors, you have to say so - we aren't mind readers.
|
|
#5
|
|||
|
|||
|
Edit : I figured out, best way would be to test if user can recieve PM or not - how would I do that ?
|
|
#6
|
|||
|
|||
|
Bump
|
|
#7
|
||||
|
||||
|
Did you try what Hanson suggested - putting the override before the set_recipients?
|
|
#8
|
|||
|
|||
|
I did, but now I want to find out if user has enabled PM or not
|
|
#9
|
|||
|
|||
|
I would also like an answer to this question?
|
|
#10
|
|||
|
|||
|
So my question is how do I find out if user has enabled PM (or enabled only for mods etc) ? I have been trying to find those options in the database
|
![]() |
|
|