function games_myps_activate()
{
global $db;
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."settinggroups WHERE name='MYPS'");
$settinggroup = $db->fetch_array($query);
echo $settinggroup['gid'];
$setting_1 = array(
"sid" => NULL,
"name" => "myps_games_play",
"title" => "Game Section Play",
"description" => "How much points should users get/lose when they play a game?",
"optionscode" => "text",
"value" => "-5",
"disporder" => "11",
"gid" => $settinggroup['gid']
);
$setting_2 = array(
"sid" => NULL,
"name" => "myps_games_score",
"title" => "Game Section Score",
"description" => "How much points should users get/lose for a added score?",
"optionscode" => "text",
"value" => "+10",
"disporder" => "12",
"gid" => $settinggroup['gid']
);
$setting_3 = array(
"sid" => NULL,
"name" => "myps_games_champ",
"title" => "Game Section Champion",
"description" => "How much points should users get/lose for a new championship?",
"optionscode" => "text",
"value" => "+15",
"disporder" => "13",
"gid" => $settinggroup['gid']
);
$db->insert_query(TABLE_PREFIX."settings", $setting_1);
$db->insert_query(TABLE_PREFIX."settings", $setting_2);
$db->insert_query(TABLE_PREFIX."settings", $setting_3);
}
|