thanks for the reply!
I was a bit confused since the vbulletin docs said I should use an array with booleans.
Yeah i got it to work by looking at the /admin/forum.php html output the following did the trick.
PHP Code:
$userdata->set_bitfield('options','moderatenewpost', false);
$userdata->set_bitfield('options','moderatenewthread', false);
$userdata->set_bitfield('options','moderateattach', false);
$userdata->set_bitfield('options','styleoverride', false);
$userdata->set_bitfield('options','canhavepassword', true);
$userdata->set_bitfield('options','cancontainthreads', true);
$userdata->set_bitfield('options','active', true);
$userdata->set_bitfield('options','allowposting', true);
$userdata->set_bitfield('options','indexposts', true);
$userdata->set_bitfield('options','allowhtml', false);
$userdata->set_bitfield('options','allowbbcode', true);
$userdata->set_bitfield('options','allowimages', true);
$userdata->set_bitfield('options','allowsmilies', true);
$userdata->set_bitfield('options','allowicons', true);
$userdata->set_bitfield('options','allowratings', true);
$userdata->set_bitfield('options','countposts', true);
$userdata->set_bitfield('options','showonforumjump', false);