|
From: Andrew <men...@us...> - 2005-12-17 20:25:44
|
Update of /cvsroot/mxbb/core/contrib/sync_overall_header In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12291/contrib/sync_overall_header Modified Files: how to.txt Log Message: Cleaned this up a bit... also started using MOD Template-like commands for the edit instructions: hopefully users will recognize it better. Index: how to.txt =================================================================== RCS file: /cvsroot/mxbb/core/contrib/sync_overall_header/how to.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** how to.txt 17 Dec 2005 14:50:51 -0000 1.3 --- how to.txt 17 Dec 2005 20:25:34 -0000 1.4 *************** *** 1,29 **** ! HOW TO ! ...syncronize the phpBB and mxBB overall_header.tpl files (i.e. the header look and feel) ! 1) Upload this overall_header.tpl, overwriting existing phpbb overall_header.tpl ! 2) In phpbb/includes/page_header.php, add some mx defs ! OPEN phpbb/includes/page_header.php ! FIND $template->assign_vars(array( 'SITENAME' => $board_config['sitename'], ! BEFORE ADD ! // Define the relative path to mx, eg ../mx/ or ../ or whatever $path_to_mx = '../'; ! FIND ! 'U_INDEX' => append_sid('index.'.$phpEx), ! REPLACE WITH ! // ! // MX Definitions for syncronized overall_header // 'MX_ROOT_PATH' => $path_to_mx, --- 1,39 ---- ! HOW TO: ! Synchronize the phpBB and mxBB overall_header.tpl files (i.e. the header look and feel) ! ------------------------------------------------------------------------------- ! 1) Upload this overall_header.tpl, overwriting the existing overall_header.tpl file in /phpbbroot/templates/templatename/ ! 2) In /phpbbroot/includes/page_header.php, you will have to add some mxBB definitions. For more information on adding your custom portal links, take a look here: http://www.mx-system.com/index.php?page=108&mode=article&k=35 . ! # ! #-----[ OPEN ]---------------------- ! # ! phpbbroot/includes/page_header.php ! ! # ! #-----[ FIND ]---------------------- ! # $template->assign_vars(array( 'SITENAME' => $board_config['sitename'], ! # ! #-----[ BEFORE, ADD ]---------------------- ! # // Define the relative path to mx, eg ../mx/ or ../ or whatever $path_to_mx = '../'; ! # ! #-----[ FIND ]---------------------- ! # 'U_INDEX' => append_sid('index.'.$phpEx), ! # ! #-----[ REPLACE WITH ]---------------------- ! # // ! // mxBB Definitions for the synchronized header // 'MX_ROOT_PATH' => $path_to_mx, *************** *** 47,62 **** - 3) If using the user defined L_HOME entry, add the lang def to lang_main (optional) ! OPEN phpbb/language/.../lang_main.php ! FIND // // That's all, Folks! ! BEFORE ADD ! ! // MX addon for syncronized overall_header $lang['Portal_home'] = 'Portal Home'; --- 57,78 ---- ! 3) If using you're using a user-defined L_HOME entry, you will have to add the language definition to lang_main.php; this is optional. ! # ! #-----[ OPEN ]---------------------- ! # ! phpbbroot/language/lang_english/lang_main.php + # + #-----[ FIND ]---------------------- + # // // That's all, Folks! ! # ! #-----[ BEFORE, ADD ]---------------------- ! # ! // mxBB Definitions for the synchronized header $lang['Portal_home'] = 'Portal Home'; |