CodePen

HTML

            
              
/*	This file is a simplified database installer. It does what it is suppoed to. */

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array();
$mod_settings = array(
	'favourite_item_ask' => 0,
	'favourite_item_required' => 0,
	'favourite_item_show' => 1,
);

$columns = array();
$columns[] = array(
	'table_name' => '{db_prefix}members',
	'column_info' => array(
		'name' => 'favourite_item',
		'type' => 'varchar',
		'size' => 10,
		'null' => false,
		'default' => '',
	),
	'error' => 'fatal',
	'if_exists' => 'update',
	'parameters' => array(),
);

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
{
	require_once(dirname(__FILE__) . '/SSI.php');
}
elseif(!defined('SMF'))
{
	die('<b>Error:</b> Cannot install - please verify you put this file in the same place as SMF\'s SSI.php.');
}

	db_extend('packages');
	
	updateSettings($mod_settings); 
			
	foreach ($columns as $column)
		$smcFunc['db_add_column']($column['table_name'], $column['column_info'], $column['parameters'], $column['if_exists'], $column['error']);

if (SMF == 'SSI')
	echo 'Congratulations! You have successfully installed Favourite Itemes';

?>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................