Quote:
Originally Posted by Bilderback
I am beginning to create products for vbulletin and just generalizing options.
Example: display some settings in the admincp for a mod-
1.-bitfield_myproduct.xml
2.-plugin (use print and admin hook)
3.-file (use print in custom admin file)
Or will it really depend on the nature of the mod and its script size?
|
A setting - Any setting
Enable Product
1.-using bitfields
Code:
<group name="myproduct">
<bitfield name="myproduct_enable">1</bitfield>
</group>
2.-using plugins
useradmin_edit_column1
Code:
print_table_break('', $INNERTABLEWIDTH);
print_table_header('My Product');
print_yes_no_row('Enable My Product', 'myproduct[enable]', $myproduct['enable']);
3.-using files
Code:
if ($_REQUEST['do'] == 'modify')
{
print_cp_header();
print_form_header('My Product Header', 'modify');
print_table_header(Enable My Product'], 1);
print_textarea_row('Enable My Product?', 'myproduct_enable');
print_submit_row("Submit!");
print_cp_footer();
}
Just trying to find the best ways to build addon scripts.