// initialize datamanager$threaddm =& datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost');// fetch thread info$threadinfo = fetch_threadinfo($threadid);// set data$threaddm->set_existing($threadinfo);$threaddm->set('visible', 1);// save$threaddm->save();unset($threaddm);