2009-07-08, 07:51 AM
Please remember we're just volunteers here, we can't answer every question. I never even realised you'd replied back, for example...
It's quite simple:
The first will delete the custom profile field. The normal query will remove the userdata for the field and remove it from the database. Remember to replace the values with what your plugin creates, rather than what I've used in the example.
It's quite simple:
$db->delete_query("profilefields", "name='Blast'");
$db->query("ALTER TABLE ".TABLE_PREFIX."userfields DROP 'fid--'");
The first will delete the custom profile field. The normal query will remove the userdata for the field and remove it from the database. Remember to replace the values with what your plugin creates, rather than what I've used in the example.