2012-01-23, 05:54 PM
Hello,
i'm wirting a plugin that will display custom profilefields (if not empty) on postbit.
But right now i'm stuggeling with adding an option to the "add custom profilefield" menu.
I tried this with no success.
Hook (profile_fields.php):
function:
Any idea how i could achieve this?
i'm wirting a plugin that will display custom profilefields (if not empty) on postbit.
But right now i'm stuggeling with adding an option to the "add custom profilefield" menu.
I tried this with no success.
Hook (profile_fields.php):
$plugins->add_hook("admin_config_profile_fields_add", "fieldsonpostbit_add");
function:
function fieldsonpostbit_add()
{
global $mybb, $lang, $form, $form_container;
$lang->load("fieldsonpostbit");
if($form_container->_title == $lang->add_new_profile_field)
{
$form_container->output_row($lang->show_on_postbit." <em>*</em>", $lang->show_on_postbit_desc, $form->generate_yes_no_radio('showonpostbit', $mybb->input['showonpostbit']));
}
}
Any idea how i could achieve this?