cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

/*	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');
	die('<b>Error:</b> Cannot install - please verify you put this file in the same place as SMF\'s SSI.php.');

	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';

Loading ..................