########################################################################
## MOD Title: phpBB3 Portal
## MOD Author: angelside < n/a > (Sevdin Filiz) http://www.phpbb3portal.com
## MOD Description: a simple and powerful portal for phpBB3 Olympus 
## MOD Version: 1.1.1b (phpBB3.RC7)
## 
## Installation Level: Easy
## Installation Time: 9 minutes
##
## Files To Edit: includes/functions.php
##                language/en/acp/common.php
##                language/tr/acp/common.php
##                styles/prosilver/template/overall_header.html
##                styles/prosilver/template/overall_footer.html
##
## Included Files: .htaccess 
##                  portal.php
##                  install_portal.php
##                  portal/*
##                  language/en/portal.php 
##                  language/en/acp/portal.php
##                  language/tr/portal.php 
##                  language/tr/acp/portal.php
##                  styles/prosilver/template/portal/*
## 
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
########################################################################
## Author Notes: 
## 
##	About:
## 
##	This portal have only basic ACP controls, no have change block positions, 
## 	create new block etc.
##
##
## 	Demo, feedback, development and bug board is: www.phpbb3portal.com
##
## 
## 	Tested only MySQL, maybe not works other database types
##		php 4.4.7 - php 5.2.3
## 		mysql 4.1.21 - mysql 5.0.45
##
##
##	update 1.0.3b to 1.1.0b:
##	
##		1. delete all 1.0.3b files
##		2. re-edit all files
##		3. install 1.1.0b
##
##	update 1.0.0b to 1.1.1b:
##	
##		* replace all portal files
##
########################################################################
## MOD History:
## 
## 2006-10-28 - Version 1.0.0a 
##    * For error and feedback, first release 
##    * fix a small character error on welcome.html 
## 
## 2006-12-04 - Version 1.0.0a 
##    * too many change and fix 
## 
## 2007-01-30 - Version 1.0.0b 
##    * Testing with phpBB3.B5 
##    * Too many fix and change 
## 
## 2007-02-09 - Version 1.0.1b 
##    * add German language files 
##    * add Portugues, Brasil language files
##    * fix a small code on all language files
## 
## 2007-04-03 - Version 1.0.2b
##    * update to phpBB3-CVS_2007-04-03
##    * add prosilver template files and changes
##    * add subsilver2 template files and changes
##    * delete subSilver template files
##    * add Spanish, Galician, Dutch, Polish language files 
## 
## 2007-07-05 - Version 1.0.3b
##    * test and update to phpBB3-CVS_2007-05-08 (B6-dev)
##    * add Czech language files ( thanks to Seqwence )
##    * fixed "portal block overstretching on ie6" for prosilver theme
##    * fixed jumpbox
##    * fixed/deleted "link us" input box maxlength size
##    * change main layout
##    * new prosilver news block (tested)
## 
## 2007-08-19 - Version 1.1.0b
##    * test and update to phpBB3 RC4
##    * complete re-write language files, all non-english files is lost (sorry, pls re-translate)
##    * added full ACP control system
##    * added new blocks (attachments, mini calendar, wordgraph)
##    * news and announcements now have two different style, compact and large.
##    * only prosilver used, for the nonce
##    * complete re-write user block (user_menu.php) added rank and rank title, fixed avatar for phpBB3 RC1
##    * general code cleaned and fixed
##    * theme select block is hided, beaceuse not work this time (it's working procces)
##    * fix news bbcode bug
##    * change main menu style
##    * fix "last x bot visits" 1970 bug, if not any visits hide complete block
##    * change name to portal.php, etc..
##    * add install_portal.php file
## 
## 2007-10-16 - Version 1.1.1b
##    * test and update to phpBB3 RC7
##
## 
########################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
########################################################################
#
#-----[ COPY ]----------------------------------------------------------
#

Copy: root/.htaccess 
To: .htaccess 
Copy: root/portal.php 
To: portal.php
Copy: root/install_portal.php 
To: install_portal.php 
Copy: root/portal 
To: portal 
Copy: root/language/en/portal.php 
To: language/en/portal.php 
Copy: root/styles/prosilver/template/portal
To: styles/prosilver/template/portal 

#
#-----[ RUN ]----------------------------------------------------------
# delete after to run

install_portal.php

#
#-----[ OPEN ]----------------------------------------------------------
#

includes/functions.php

#
#-----[ FIND ]----------------------------------------------------------
#

	define('HEADER_INC', true);

#
#-----[ AFTER, ADD ]----------------------------------------------------
#

//-- [+] MOD: phpBB3 Portal ---------------------------------------------
//-- add
//
	$user->add_lang('portal');
//
//-- [-] MOD: phpBB3 Portal ---------------------------------------------

#
#-----[ FIND ]----------------------------------------------------------
#

		'S_USER_LOGGED_IN'		=> ($user->data['user_id'] != ANONYMOUS) ? true : false,

#
#-----[ BEFORE, ADD ]---------------------------------------------------
#

//-- [+] MOD: phpBB3 Portal ---------------------------------------------
//-- add
//
		'U_PORTAL'				=> append_sid("{$phpbb_root_path}portal.$phpEx"),
		'S_PORTAL_COPY'			=> $user->lang['PORTAL_COPY'],
//
//-- [-] MOD: phpBB3 Portal ---------------------------------------------

#
#-----[ OPEN ]----------------------------------------------------------
# not use this section / next release planning

includes/session.php

#
#-----[ FIND ]----------------------------------------------------------
#	

		if (!empty($_GET['style']) && $auth->acl_get('a_styles'))

#
#-----[ REPLACE WITH ]--------------------------------------------------
#

//-- [+] MOD: phpBB3 Portal ---------------------------------------------
//-- replace
//
//		if (!empty($_GET['style']) && $auth->acl_get('a_styles'))
		if (!empty($_GET['style']))
//
//-- [-] MOD: phpBB3 Portal ---------------------------------------------
	
#
#-----[ OPEN ]----------------------------------------------------------
#

language/en/acp/common.php

#
#-----[ FIND ]----------------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]---------------------------------------------------
#

// phpBB3 Portal by phpbb3portal.com
$lang = array_merge($lang, array(
   	'ACP_PORTAL_INFO'           			=> 'Portal',
   	'ACP_PORTAL_GENERAL_INFO'   			=> 'General',
    'ACP_PORTAL_ANNOUNCE_INFO'  			=> 'Global announcements',
    'ACP_PORTAL_NEWS_INFO'      			=> 'News',
   	'ACP_PORTAL_RECENT_INFO'    			=> 'Recent topics',	
   	'ACP_PORTAL_WORDGRAPH_INFO'				=> 'Wordgraph',
   	'ACP_PORTAL_GENERAL_INFO'      			=> 'General settings',
    'ACP_PORTAL_PAYPAL_INFO'        		=> 'Paypal donations',	
    'ACP_PORTAL_ATTACHMENTS_NUMBER_INFO'    => 'Attachments',
    'ACP_PORTAL_MEMBERS_INFO'               => 'Latest members',
    'ACP_PORTAL_POLLS_INFO'                 => 'Poll',	
    'ACP_PORTAL_BOTS_INFO'                  => 'Last visited bots',
    'ACP_PORTAL_MOST_POSTER_INFO'           => 'Most posters',
    'ACP_PORTAL_WELCOME_INFO'               => 'Welcome message',
	'ACP_PORTAL_ADS_INFO'           		=> 'Advertisement',
    'ACP_PORTAL_MINICALENDAR_INFO'			=> 'Mini calendar',
));

#
#-----[ OPEN ]----------------------------------------------------------
#

language/tr/acp/common.php

#
#-----[ FIND ]----------------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]---------------------------------------------------
#

// phpBB3 Portal by phpbb3portal.com
$lang = array_merge($lang, array(
   	'ACP_PORTAL_INFO'           			=> 'Portal',
   	'ACP_PORTAL_GENERAL_INFO'   			=> 'Genel',
    'ACP_PORTAL_ANNOUNCE_INFO'  			=> 'Genel duyurular',
    'ACP_PORTAL_NEWS_INFO'      			=> 'Haberler',
   	'ACP_PORTAL_RECENT_INFO'    			=> 'Son konular',	
   	'ACP_PORTAL_WORDGRAPH_INFO'				=> 'Kelime bulutu', // Wordgraph
   	'ACP_PORTAL_GENERAL_INFO'      			=> 'Genel ayarlar',
    'ACP_PORTAL_PAYPAL_INFO'        		=> 'Paypal ba',	
    'ACP_PORTAL_ATTACHMENTS_NUMBER_INFO'    => 'Eklentiler',
    'ACP_PORTAL_MEMBERS_INFO'               => 'En son yeler',
    'ACP_PORTAL_POLLS_INFO'                 => 'Anket',	
    'ACP_PORTAL_BOTS_INFO'                  => 'Son bot ziyareti',
    'ACP_PORTAL_MOST_POSTER_INFO'           => 'En ok konu gnderenler',
    'ACP_PORTAL_WELCOME_INFO'               => 'Karlama mesaj',
	'ACP_PORTAL_ADS_INFO'           		=> 'Reklam',
    'ACP_PORTAL_MINICALENDAR_INFO'			=> 'Takvim',
));

#
#-----[ OPEN ]----------------------------------------------------------
#

styles/prosilver/template/overall_header.html

#
#-----[ INLINE FIND ]----------------------------------------------------------
#

<a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>

#
#-----[ REPLACE WITH ]--------------------------------------------------
#

<a href="{U_PORTAL}">{L_PORTAL}</a> &#187; <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>

#
#-----[ FIND ]----------------------------------------------------------
#

		<div class="navbar">

#
#-----[ BEFORE, ADD ]----------------------------------------------------
#

<!-- IF not $S_IN_PORTAL -->


#
#-----[ FIND ]----------------------------------------------------------
#

	</div>

	<a name="start_here"></a>
	<div id="page-body">

#
#-----[ BEFORE, ADD ]----------------------------------------------------
#

<!-- ENDIF -->

#
#-----[ OPEN ]----------------------------------------------------------
#

styles/prosilver/template/overall_footer.html

#
#-----[ INLINE FIND ]----------------------------------------------------------
#

<a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>

#
#-----[ REPLACE WITH ]---------------------------------------------------
#

<a href="{U_PORTAL}">{L_PORTAL}</a> &#187; <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>

#
#-----[ FIND ]----------------------------------------------------------
#

		<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->

#
#-----[ AFTER, ADD ]----------------------------------------------------
# DO NOT REMOVE or CHANGE

		<!-- IF S_PORTAL_COPY --><br />{S_PORTAL_COPY}<!-- ENDIF -->

#
#-----[ DIY INSTRUCTIONS ]----------------------------------------------
#

After installation, enter your ACP (Admin Control Panel) and click the "Purge the cache" button.

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

