Changed install instructions;

Changed version check tag to board3_portal_v2_dev; 
Added more language variables; 
Added version check to ACP and limited it to only showing in the general settings area; 
Changed all config variables from portal_ to board3_; 
Added new install file; 
Fixed jumpbox bug that caused a useless error message; 
Added block images for team block and user menu;
This commit is contained in:
Marc Alexander
2010-08-28 13:02:16 +00:00
parent f1a44abc2c
commit 438a9cdd59
16 changed files with 184 additions and 160 deletions

117
root/install/index.php Normal file
View File

@@ -0,0 +1,117 @@
<?php
/**
*
* @author marc1706 (Marc Alexander) admin@m-a-styles.de
* @version $Id$
* @copyright (c) 2010 Board3
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('UMIL_AUTO', true);
define('IN_INSTALL', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
if (!file_exists($phpbb_root_path . 'umil/umil_auto.' . $phpEx))
{
trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR);
}
// The name of the mod to be displayed during installation.
$mod_name = 'Board3 Portal';
global $user;
/*
* The name of the config variable which will hold the currently installed version
* UMIL will handle checking, setting, and updating the version itself.
*/
$version_config_name = 'board3_portal_version';
// The language file which will be included when installing
$language_file = 'mods/info_acp_portal';
/*
* Optionally we may specify our own logo image to show in the upper corner instead of the default logo.
* $phpbb_root_path will get prepended to the path specified
* Image height should be 50px to prevent cut-off or stretching.
*/
//$logo_img = 'styles/prosilver/imageset/site_logo.gif';
/*
* The array of versions and actions within each.
* You do not need to order it a specific way (it will be sorted automatically), however, you must enter every version, even if no actions are done for it.
*
* You must use correct version numbering. Unless you know exactly what you can use, only use X.X.X (replacing X with an integer).
* The version numbering must otherwise be compatible with the version_compare function - http://php.net/manual/en/function.version-compare.php
*/
$versions = array(
'2.0.0-dev1' => array(
'permission_add' => array(
array('a_portal'),
),
'permission_set' => array(
array('ADMINISTRATORS', 'a_portal', 'group'),
),
'table_add' => array(
array(phpbb_portal_modules, array(
'COLUMNS' => array(
'module_id' => array('UINT:3', NULL, 'auto_increment'),
'module_classname' => array('VCHAR:64', ''),
'module_column' => array('TINT:3', 0),
'module_order' => array('TINT:3', 0),
'module_name' => array('VCHAR', ''),
'module_image_src' => array('VCHAR', ''),
'module_group_ids' => array('VCHAR', ''),
),
'PRIMARY_KEY' => 'module_id',
)),
),
'config_add' => array(
array('board3_enable', '1', 0),
array('board3_left_column', '1', 0),
array('board3_right_column', '1', 0),
array('board3_version_check', '1', 0),
array('board3_forum_index', '1', 0),
array('board3_left_column_width', '180', 0),
array('board3_right_column_width', '180', 0),
),
'module_add' => array(
array('acp', 'ACP_CAT_DOT_MODS', 'ACP_PORTAL'),
array('acp', 'ACP_PORTAL', array(
'module_basename' => 'portal',
'module_langname' => 'ACP_PORTAL_MODULES',
'module_mode' => 'modules',
'module_auth' => 'acl_a_portal',
),
),
array('acp', 'ACP_PORTAL', array(
'module_basename' => 'portal',
'module_langname' => 'ACP_PORTAL_GENERAL_INFO',
'module_mode' => 'config',
'module_auth' => 'acl_a_portal',
),
),
),
),
);
// Include the UMIL Auto file, it handles the rest
include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);

View File

@@ -1,66 +0,0 @@
<?php
/**
* @package Portal
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
define('UMIL_AUTO', true);
define('IN_PHPBB', true);
define('IN_INSTALL', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if (!file_exists($phpbb_root_path . 'umil/umil_auto.' . $phpEx))
{
trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR);
}
$mod_name = 'PORTAL_MOD';
$version_config_name = 'portal_board3_version';
$language_file = 'mods/info_acp_portal';
$versions = array(
// Version 1.1.0 => 1.2.x-dev
'1.1.1' => array(
'permission_add' => array(
array('a_portal'),
),
),
'1.1.4' => array(
'table_add' => array(
array(PORTAL_MODULES_TABLE, array(
'COLUMNS' => array(
'module_id' => array('UINT', NULL, 'auto_increment'),
'module_classname' => array('VCHAR:64', ''),
'module_column' => array('TINT:3', 0),
'module_order' => array('TINT:3', 0),
'module_name' => array('VCHAR', ''),
'module_image_src' => array('VCHAR', ''),
'module_group_ids' => array('VCHAR', ''),
),
'PRIMARY_KEY' => 'module_id',
)),
),
'config_add' => array(array(
array('board3_enable', true),
//array('test_mod_bool', true),
//array('test_mod_bool', true),
)),
),
);
// Include the UMIL Auto file and everything else will be handled automatically.
include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);
?>