hi
just one little issue:
it would be much "cleaner" if you would use the vbulletin standardmethods
1. yui connection manager instead of your own ajaxmethod
2. here's how i'm handling it in my own version:
PHP Code:
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
$userdata->set_existing($vbulletin->userinfo);
$userdata->set_bitfield('options', 'invisible', ($vbulletin->userinfo['invisible'] ? 0 : 1));
$userdata->save();
$xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
$xml->add_group('ajaxtest');
if($vbulletin->userinfo['invisible']==0){
$src='unsichtbar.jpg';
}
else {
$src='sichtbar.jpg';
}
$xml->add_tag('imgsrc',$src);
$xml->close_group();
$xml->print_xml();