I am using this snippet on a non-VB page. Beforehand I am including the global.html and so on - as described in various "login from non-vb page" threads/hacks.
Code:
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', 5);
$pmdm->set('fromusername', 'Foo');
$pmdm->set('title', sprintf('Einladung %s', $name));
$pmdm->set('message', $message);
$pmdm->set_recipients($to, $botpermissions);
$pmdm->set('dateline', TIMENOW);
//var_dump($pmdm->errors);
$to is set to a valid username, however i get the following error right with the "set_recipients" part.
Quote:
Fatal error: Call to undefined function: query_first_slave() in /user/public_html/community/includes/functions.html on line 1154
|
Anyone have an idea? I did a var_dump(get_class_methods($vbulletin->db)); right beforeit uses the query_first_slave and it shows the query_first_slave method. My PHP is 4.4.x - so do I need to update my vb? We are still on 3.6.4 (only on the development server).
|