################################################################# ## Title: ezPortal for phpBB 2.0.x ## Version: 2.1.8 ## Author: Smartor - http://smartor.is-root.com ## Description: This Mod explains you how to create a portal for phpBB2 as simple as possible ## This MOD is not exactly a full functional portal system (content management system) ## but it looks like a portal. You should customize/modify/improve it to fit your fantasy ;) ## It is very EASY to install and very HANDY to modify ## ## Installation Level: Easy ## Installation Time: 10 Minutes ## ## Files To Edit: 4 ## login.php ## includes/page_header.php ## language/lang_english/lang_main.php ## templates/subSilver/overall_header.tpl ## ## Included Files: 4 ## portal.php ## fetchposts.php ## templates/subSilver/portal_body.tpl ## images/smartorsite_logo.gif ## ################################################################# ## ## Author Note: ## ## Copyright © Smartor, 2002 ## ## For any concerns please contact me at http://smartor.is-root.com ## ################################################################# ## This MOD is released under the GPL License. ## Intellectual Property is retained by the MOD Author(s) listed above ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################# ## ## Revision History: ## ## v2.1.8 ## - fixed a bug: disappear 'Read Full' ## v2.1.7 ## - removed 'Read Full' link on short announcements ## - added a new option 'Exceptional Forums' for Recent Topics Block ## - added poster name and posted time for Recent Topics Block ## - added scrolling effect for Recent Topics Block ## - changed the link on Recent Topics Block to the last post ## v2.1.6 ## - solved some small issues: log in/out, stats, date/time, etc. ## - made phpBB 2.0.4 compatibled ## v2.1.5 ## - improved some HTML code :P ## - fixed a serious security bug in Change Style Block ## v2.1.4 ## - fixed Shadow Topic bug (for both News and Recent Topics) ## - added Search Block: it's very cool, included both phpBB Search and Google ## v2.1.3 ## - just update ChatBox Block instruction file ## v2.1.2 ## - due to some users are not familiar with HTML coding, i provide a new bordered template -looks much better in subSilver- for portal (only HTML thing, no new PHP code) ## v2.1.1 ## - added a missing language entry for Recent Topics Block ## v2.1 ## - added some blocks: Moreover.com Newsfeed, Recent Topics ## - removed some un-needed HTML codes ## - fixed some bugs ## - added "I forgot my password" link ## - fixed some language hardcode ## v2.0.2 ## - fixed some template problems ## v2.0.1 ## - added a lost language entry ## v2.0.0 ## - completed News Feature ## v1.0.4a ## - fixed a JavaScript problem in this file ## v1.0.4 ## - updated some blocks ## v1.0.3 ## - Fixed some typos ## v1.0.0 ## - Initial Release ## ################################################################# ## Demo/Discussion Forum: http://smartor.is-root.com ################################################################# # #-----[ 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']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx"; # #-----[ REPLACE WITH ]--------------------------- # $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $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']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx"; # #-----[ REPLACE WITH ]--------------------------- # $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "portal.$phpEx"; # #-----[ FIND ]----------------------------------- # redirect(append_sid("index.$phpEx", true)); # #-----[ REPLACE WITH ]--------------------------- # redirect(append_sid("portal.$phpEx", true)); # #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]---------------------------------------- # 'U_GROUP_CP' => append_sid('groupcp.'.$phpEx), # #-----[ AFTER ADD ]----------------------------------- # // ezPortal 'U_PORTAL' => append_sid('portal.'.$phpEx), 'L_HOME' => $lang['Home'], # #-----[ OPEN ]---------------------------------------- # templates/subSilver/overall_header.tpl # #-----[ FIND ]---------------------------------------- # {L_INDEX} # #-----[ REPLACE WITH ]-------------------------------- # {L_INDEX} # #-----[ FIND ]---------------------------------------- #  {L_FAQ}{L_FAQ} # #-----[ DIRECT BEFORE, ADD ]-------------------------- #  {L_HOME}{L_HOME}   # #-----[ OPEN ]---------------------------------------- # language/lang_english/lang_main.php # #-----[ FIND ]---------------------------------------- # // // That's all Folks! // ------------------------------------------------- # #-----[ BEFORE ADD ]---------------------------------- # // // Smartor's ezPortal // $lang['Home'] = 'Home'; $lang['Board_navigation'] = 'Board Navigation'; $lang['Statistics'] = 'Statistics'; $lang['total_topics'] = " within %s topics"; // added in v2.1.6 $lang['Comments'] = 'Comments'; $lang['Read_Full'] = 'Read Full'; $lang['View_comments'] = 'View Comments'; $lang['Post_your_comment'] = 'Post your comment'; $lang['Welcome'] = 'Welcome'; $lang['Register_new_account'] = 'Don\'t have an account yet?
You can %sregister%s for FREE'; $lang['Remember_me'] = 'Remember me'; $lang['View_complete_list'] = 'View complete list'; $lang['Poll'] = 'Poll'; $lang['Login_to_vote'] = 'You must login to vote'; $lang['Vote'] = 'Vote'; $lang['No_poll'] = 'No poll at the moment'; # #-----[ SAVE/UPLOAD ALL FILES ]------------------------------------------ # # HOW TO MAKE YOUR WEBSITE OPEN TO FILE portal.php INSTEAD OF index.php ? # You can use one of the following methods! Lots of luck! # # # o Method 1: (for Apache server) # create/modify file .htaccess in phpBB root directory # add/edit this line: # # DirectoryIndex index.html index.htm portal.php index.php # # # o Method 2: {use JavaScript - if you cannot apply the 1st method) # create file index.html in phpBB root directory (without #) # # # # Redirecting... # # # # # # # if your phpBB was placed in a subdirectory to the # webroot, like: http://something.com/forum # you could create index.html in the webroot and modify the # line 5 to self.location.href='forum/portal.php'; # # # o Method 3: I think maybe you can find out method 3 yourself ;) # #-------------------------------------------------------------------- # CONFIGURATION FOR ezPortal # # OPEN: portal.php # # FIND: // // Set configuration for ezPortal // // Welcome Text: note that we are in PHP file, so use \' instead of ' and use \\ instead of \ (HTML enabled) $CFG['welcome_text'] = 'Welcome to My Community

Thanks for using ezPortal,

Have a good time! ^_^'; // Number of news on portal $CFG['number_of_news'] = '5'; // Length of news $CFG['news_length'] = '200'; // News Forum ID: separate by comma for multi-forums, eg. '1,2,5' $CFG['news_forum'] = '1'; // Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14' $CFG['poll_forum'] = '1'; // // END configuration // -------------------------------------------------------- # # Adjust the above values in portal.php # #-------------------------------------------------------------------- # # EoM