least urs might be working..mine keeps sending multiple PM's to the same person. argh
|
Quote:
|
Ok here is my code in my cron...stripped down to show the basic idea.
Code:
$userpointsqry = $vbulletin->db->query_read(" PHP Code:
I got it, Im an idiot |
i get an mySQL sytax error if i use this to send a PM to a user with an apostrophe in his name........any help?
Edit: Manually Escaping the apostrophe also doesnt work (generates a vbulletin error: cant find user) nevermind, its not a problem after all :D |
Any ideas how to override a full PM box in vb 3.6? the $pmdm->overridequota = true; doesn't seem to be working at all :(
|
$pmdm->overridequota = true; works fine for me. Although I think it needs to be right after you initialize the class like this:
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY); $pmdm->overridequota = true; You might also need to set $botpermissions in set recipients like this: $pmdm->set_recipients($recipient, $botpermissions); |
Quote:
Thanks. |
Quote:
|
Well.. I have stored the userid into another custom table..and it is not the userid that is currently accessing the page. I didn't store the username..
If there is no way to send to the userid using the functions then I guess I can always just store the username also... Good point. |
Quote:
|
All times are GMT. The time now is 04:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|