MAAR...
Ik wil nog niet gelijk de protal als beginpagina hebben.
We zijn namelijk bezig met een nieuw theme, en dus de portal die we over een week tegelijkertijd online willen gooien.
Nu wil ik nog gewoon als je http://www.birdplanet.nl zoekt je automatisch word doorgelinkt naar http://www.birdplanet.nl/forum
Dan later wil ik het zo zetten dat je de portal op http://www.birdplanet.nl krijgt..
Maar nu zit ik dus met het "probleem" dat ik niet weet waar ik dit voor elkaar moet krijgen.
Ik wil de portal nu hebben op http://www.birdplanet.nl/forum/portal of http://www.birdplanet.nl/portal iig niet op de "startpagina".
install:
Code: Selecteer alles
##############################################################
## MOD Title: IM Portal
## MOD Author: masterdavid < webmaster@integramod.com > (Ronald John David)
## http://www.integramod.com
## MOD Description: Flexible and full-featured portal management addon for phpBB (forum-wide integration)
## Multiple-page version with cache system
## MOD Version: 1.2.0
##
## Installation Level: Intermediate
## Installation Time: 10 Minutes
## Files To Edit: includes/constants.php
## includes/page_header.php
## includes/page_tail.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## login.php
## template/YOUR_TEMPLATE/overall_header.tpl
## template/YOUR_TEMPLATE/overall_footer.tpl
## Included Files: many (under phpbbroot directory of the package)
##############################################################
## Author Notes: Backup first your files and database before proceeding with the installation.
##############################################################
##
## MOD History:
##
## 2004-05-29 - Version 1.2.0
## - beta period ended with no bug reports :) just a repackaged version
## - planned IM Portal addons will be made available separately
## - IM Portal Manual is also made available separately
##
## 2004-05-25 - Version 1.1.1 beta
## - per portal page permission (user level)
## - usergroups permission for each block and for each portal page
## - automatic block position tags using a config file for each layout
## - automatic block variables in Portal Configuration per installed block
## using a config file
## - complete control of the cache system through the Portal Configuration in ACP
## - blocks with or without border, with or without titlebar and with or without background
##
## 2004-05-09 - Version 1.1.0a
## - add missing procedures in install file to make it forum_wide
##
## 2004-05-02 - Version 1.1.0
## - minor changes
## - changes in blocks to enable duplicate blocks in a page
## - add some debugging code for problems not showing forum-wide blocks
##
## 2004-04-30 - Version 1.0.3 beta
## - cache system using Cache Lite class with the choice to enable system-wide caching of data;
## administrators can also choose which blocks to cache and the life of cached blocks in seconds
## - fix minor bugs in some default blocks
## - requirement for eXtreme Styles mod removed; now, it can be used with the standard
## templating system
##
## 2004-04-26 - Version 1.0.2 beta
## - multi-page portal where each page can have a different layout (you can have extra pages with
## different information/blocks and layout per page (read readme.txt for usage)
## - tight integration of layouts, block position tags and blocks in the ACP
## - confirmation dialog for all delete actions
## - use of either HTML or BBCode for Text Content for the blocks with standard post capability
## of phpBB using BBCode
## - centralization of functions to a file: includes/function_portal.php
## - portal pages with choice of displaying or not displaying forum-wide blocks
## - block variables localization through the use of block functions
##
## 2004-04-18 - Version 1.0.1 beta
## - forum-wide integration of the portal engine
## - each block now has its own language file
## - removed the user selection of layout because of the planned multi-page portal
##
## 2004-03-27 - Version 1.0.0
## - first complete release of portal engine
## - includes 7 blocks
## - includes 2 layouts
##
## 2004-03-23 - Version 0.1.0
## - first release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
execute sql.txt using phpMyAdmin
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// IM Portal http://www.integramod.com
//
define('BLOCKS_TABLE', $table_prefix.'blocks');
define('BLOCK_POSITION_TABLE', $table_prefix.'block_position');
define ('LAYOUT_TABLE',$table_prefix.'layout');
define ('PORTAL_CONFIG_TABLE',$table_prefix.'portal_config');
define ('BLOCK_VARIABLE_TABLE',$table_prefix.'block_variable');
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
define('HEADER_INC', TRUE);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// IM Portal http://www.integramod.com
//
if(!defined('PORTAL_INIT'))
{
include($phpbb_root_path . 'includes/functions_portal.' . $phpEx);
portal_config_init($portal_config);
include_once($phpbb_root_path . 'includes/lite.'.$phpEx);
$options = array(
'cacheDir' => $phpbb_root_path . 'var_cache/',
'fileLocking' => $portal_config['md_cache_file_locking'],
'writeControl' => $portal_config['md_cache_write_control'],
'readControl' => $portal_config['md_cache_read_control'],
'readControlType' => $portal_config['md_cache_read_type'],
'fileNameProtection' => $portal_config['md_cache_filename_protect'],
'automaticSerialization' => $portal_config['md_cache_serialize']
);
$var_cache = new Cache_Lite($options);
define('PORTAL_INIT', TRUE);
}
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// IM Portal http://www.integramod.com
//
// debug forum wide Portal
/*if($layout_forum_wide_flag)
$temp_debug = 1;
else
$temp_debug = 0;
die('debug: ' . strval(empty($gen_simple_header)) . ' | ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_header']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/
// debug forum wide Portal
if(empty($gen_simple_header))
{
if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))
{
$template->set_filenames(array(
'portal_header' => 'portal_page_header.tpl')
);
portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');
$template->assign_var('HEADER_WIDTH', $portal_config['header_width']);
$template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));
}
}
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_footer');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// IM Portal http://www.integramod.com
//
// debug forum wide Portal
/*if($layout_forum_wide_flag)
$temp_debug = 1;
else
$temp_debug = 0;
die('debug: ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_tail']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/
// debug forum wide Portal
if(!$layout_forum_wide_flag&&$portal_config['portal_tail']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))
{
$template->set_filenames(array(
'portal_tail' => 'portal_page_tail.tpl')
);
portal_parse_blocks($portal_config['default_portal'], TRUE, 'tail');
$template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);
$template->assign_var('PORTAL_TAIL', portal_assign_var_from_handle($template, 'portal_tail'));
}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// IM Portal http://www.integramod.com
//
$lang['Home'] = 'Home';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// IM Portal http://www.integramod.com
//
$lang['BP_Title'] = 'Blocks Position Tag';
$lang['BP_Explain'] = 'From this control panel, you can add, edit or delete blocks position that can be used in IM Portal. The default positions are \'header\', \'footer\', \'right\' and \'center\'. These positions corresponds to the layout being used for a specific portal page. Only existing positions per portal page must be added here. Position keys that are not existing in the specified layout will not appear in the portal page. Each position tag key and character must be unique per portal page.';
$lang['BP_Position'] = 'Position character';
$lang['BP_Key'] = 'Position Tag Key';
$lang['BP_Layout'] = 'Portal Page';
$lang['BP_Add_Position'] = 'Add New Position';
$lang['No_bp_selected'] = 'No position selected for editing';
$lang['BP_Edit_Position'] = 'Edit block position';
$lang['Must_enter_bp'] = 'You must enter a position tag key, position character and portal page';
$lang['BP_updated'] = 'Block position updated';
$lang['BP_added'] = 'Block position added';
$lang['Click_return_bpadmin'] = 'Click %sHere%s to return to Blocks Position Administration';
$lang['BP_removed'] = 'Block position removed';
$lang['Portal_wide'] = 'Portal Wide';
$lang['No_layout_selected'] = 'No portal page selected for editing';
$lang['Layout_Title'] = 'Portal Page';
$lang['Layout_Explain'] = 'From this control panel, you can add, edit or delete layout information for your portal pages. Multiple portal pages can use the same layout. The layout template file selected must reside in the layout directory under your forum template directory. You are not allowed to delete the forum default portal page. Deleting a portal page also deletes the corresponding block positions for that page and all the blocks assigned to it';
$lang['Layout_Name'] = 'Name';
$lang['Layout_Template'] = 'Template File';
$lang['Layout_Edit'] = 'Edit portal page';
$lang['Layout_Page'] = 'Page ID';
$lang['Layout_View'] = 'View by';
$lang['Layout_Forum_wide'] = 'Forum-wide blocks?';
$lang['Must_enter_layout'] = 'You must enter a name and a template file';
$lang['Layout_updated'] = 'Portal Page Updated';
$lang['Click_return_layoutadmin'] = 'Click %sHere%s to return to Portal Page Administration';
$lang['Layout_added'] = 'Portal Page added';
$lang['Layout_removed'] = 'Portal Page removed';
$lang['Layout_Add'] = 'Add Portal Page';
$lang['Layout_BP_added'] = 'Layout Config file available: Block Position Tags automatically inserted';
$lang['Layout_default'] = 'Default';
$lang['Layout_make_default'] = 'Make Default';
$lang['Blocks_Title'] = 'Blocks Management';
$lang['Blocks_Explain'] = 'From this control panel, you can add, edit, delete and move blocks for each available portal page. A block template must exist for every block file added. When a block file is specified, the content filed is being disregarded by the portal engine.';
$lang['Choose_Layout'] = 'Choose portal page';
$lang['B_Title'] = 'Block Title';
$lang['B_Position'] = 'Block Position';
$lang['B_Active'] = 'Active?';
$lang['B_Display'] = 'Content';
$lang['B_HTML'] = 'HTML';
$lang['B_BBCode'] = 'BBCode';
$lang['B_Type'] = 'Type';
$lang['B_Border'] = 'Show Border';
$lang['B_Titlebar'] = 'Show Titlebar';
$lang['B_Background'] = 'Show BG';
$lang['B_Local'] = 'Localize Titlebar';
$lang['B_Cache'] = 'Cache?';
$lang['B_Cachetime'] = 'Cache Duration';
$lang['B_Groups'] = 'Usergroups';
$lang['B_All'] = 'All';
$lang['B_Guests'] = 'Guests Only';
$lang['B_Reg'] = 'Registered Users';
$lang['B_Mod'] = 'Moderators';
$lang['B_Admin'] = 'Administrators';
$lang['B_None'] = 'None';
$lang['B_Layout'] = 'Portal Page';
$lang['B_Page'] = 'Page ID';
$lang['B_Add'] = 'Add Blocks';
$lang['Yes'] = 'Yes';
$lang['No'] = 'No';
$lang['B_Text'] = 'Text';
$lang['B_File'] = 'Block File';
$lang['B_Move_Up'] = 'Move Up';
$lang['B_Move_Down'] = 'Move Down';
$lang['B_View'] = 'View By';
$lang['No_blocks_selected'] = 'No block selected';
$lang['B_Content'] = 'Content';
$lang['B_Blockfile'] = 'Block File';
$lang['Block_Edit'] = 'Block Edit';
$lang['Block_updated'] = 'Block updated';
$lang['Must_enter_block'] = 'You must enter a block title';
$lang['Block_added'] = 'Block added';
$lang['Click_return_blocksadmin'] = 'Click %sHere%s to return to Blocks Management';
$lang['Block_removed'] = 'Block removed';
$lang['B_BV_added'] = 'Block Config file available: Block Variables automatically inserted';
$lang['BV_Title'] = 'Blocks Variables';
$lang['BV_Explain'] = 'From this control panel, you can add, edit or delete blocks config variables that are used in blocks in IM Portal. These variables can then be configured through the Portal Configuration page to personalize your portal.';
$lang['BV_Label'] = 'Field Label';
$lang['BV_Sub_Label'] = 'Field Info';
$lang['BV_Name'] = 'Config Name';
$lang['BV_Options'] = 'Options';
$lang['BV_Values'] = 'Field Values';
$lang['BV_Type'] = 'Control Type';
$lang['BV_Block'] = 'Block';
$lang['BV_Add_Variable'] = 'Add Block Variable';
$lang['No_bv_selected'] = 'No block variable selected';
$lang['BV_Edit_Variable'] = 'Edit block variable';
$lang['Must_enter_bv'] = 'You must enter a field label and config name';
$lang['BV_updated'] = 'Block variable updated';
$lang['BV_added'] = 'Block variable added';
$lang['Click_return_bvadmin'] = 'Click %sHere%s to return to Blocks Variables Administration';
$lang['Config_Name_Explain'] = 'Must have no space';
$lang['Field_Options_Explain'] = 'Mandatory for dropdown lists and<br />radio buttons (comma delimited).';
$lang['Field_Values_Explain'] = 'Mandatory for dropdown lists and<br />radio buttons (comma delimited).';
$lang['BV_removed'] = 'Block variable removed';
$lang['Config_updated'] = 'Portal configuration updated';
$lang['Click_return_config'] = 'Click %sHere%s to return to Portal Configuration';
$lang['Portal_Config'] = 'IM Portal Configuration';
$lang['Portal_Explain'] = 'From this control panel, you can set all the configurations needed for your portal. Block variables listed in this page can be created/updated in Blocks Variables configuration page';
$lang['Portal_General_Config'] = 'General Configuration';
$lang['Default_Portal'] = 'Default Portal Page';
$lang['Default_Portal_Explain'] = 'Homepage of the forum';
$lang['Cache_Enabled'] = 'Enable cache system';
$lang['Cache_Enabled_Explain'] = 'For faster loading of portal related information';
$lang['Portal_Header'] = 'Enable system-wide portal header';
$lang['Portal_Header_Explain'] = 'Always show the left block panel';
$lang['Portal_Tail'] = 'Enable system-wide portal footer';
$lang['Portal_Tail_Explain'] = 'Always show the right block panel';
$lang['Confirm_delete_item'] = 'Are you sure you want to delete this item?';
$lang['Cache_cleared'] = 'Cache files removed';
$lang['bbcode_b_help'] = 'Bold text: [b]text[/b] (alt+b)';
$lang['bbcode_i_help'] = 'Italic text: [i]text[/i] (alt+i)';
$lang['bbcode_u_help'] = 'Underline text: [u]text[/u] (alt+u)';
$lang['bbcode_q_help'] = 'Quote text: [quote]text[/quote] (alt+q)';
$lang['bbcode_c_help'] = 'Code display: [code]code
$lang['bbcode_l_help'] = 'List:
- text
$lang['bbcode_o_help'] = 'Ordered list:
- text
$lang['bbcode_p_help'] = 'Insert image: [img]http://image_url[/img] (alt+p)';
$lang['bbcode_w_help'] = 'Insert URL: http://url or URL text (alt+w)';
$lang['bbcode_a_help'] = 'Close all open bbCode tags';
$lang['bbcode_s_help'] = 'Font color: text Tip: you can also use color=#FF0000';
$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
$lang['Emoticons'] = 'Emoticons';
$lang['More_emoticons'] = 'View more Emoticons';
$lang['Font_color'] = 'Font colour';
$lang['color_default'] = 'Default';
$lang['color_dark_red'] = 'Dark Red';
$lang['color_red'] = 'Red';
$lang['color_orange'] = 'Orange';
$lang['color_brown'] = 'Brown';
$lang['color_yellow'] = 'Yellow';
$lang['color_green'] = 'Green';
$lang['color_olive'] = 'Olive';
$lang['color_cyan'] = 'Cyan';
$lang['color_blue'] = 'Blue';
$lang['color_dark_blue'] = 'Dark Blue';
$lang['color_indigo'] = 'Indigo';
$lang['color_violet'] = 'Violet';
$lang['color_white'] = 'White';
$lang['color_black'] = 'Black';
$lang['Font_size'] = 'Font size';
$lang['font_tiny'] = 'Tiny';
$lang['font_small'] = 'Small';
$lang['font_normal'] = 'Normal';
$lang['font_large'] = 'Large';
$lang['font_huge'] = 'Huge';
$lang['Close_Tags'] = 'Close Tags';
$lang['Styles_tip'] = 'Tip: Styles can be applied quickly to selected text.';
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE ]------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ OPEN ]------------------------------------------
#
templates/YOUR_TEMPLATE/overall_header.tpl
#
#-----[ AT THE END OF THE FILE, ADD ]------------------------------------------
#
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
{PORTAL_HEADER}
<td width="10"><img src="images/spacer.gif" alt="" width="10" height="30" /></td>
<td valign="top">
#
#-----[ OPEN ]------------------------------------------
#
templates/YOUR_TEMPLATE/overall_footer.tpl
#
#-----[ AT THE START OF THE FILE, ADD ]------------------------------------------
#
{PORTAL_TAIL}<td width="10"><img src="images/spacer.gif" alt="" width="10" height="30" /></td></tr></table>
#
#-----[ OPTIONAL ]------------------------------------------
#
Create a link in your header to point to portal.php by editing page_header.php and overall_header.tpl
#
#-----[ COPY ]------------------------------------------
#
copy phpbbroot\*.* to forums\*.*
note: if you are using another template aside from subsilver, copy the contents of the subsilver directory in all the template directories that you have installed
#
#-----[ CHMOD ]------------------------------------------
#
create directory var_cache under your phpbb root directory and CHMOD it to 777.
#
#-----[ OTHERS ]-----------------------------------------
#
For a detailed information on using IM Portal, please visit http://www.integramod.com and go the knowledgebase section of the site and check the IM Portal Information category. For questions/suggestions/requests/bug reports/downloads, go to http://www.integramod.com. IM Portal manual is now also available at the download section of the site.
Please support the site by checking the ads. Thanks!

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM [/code]
Wat moet ik hierin veranderen?