|
From: Jon O. <jon...@us...> - 2008-02-03 19:52:45
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31321/includes Modified Files: mx_functions_core.php mx_functions_phpbb.php Log Message: Little feature for displaying block full page, eg when editing a comment etc... Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** mx_functions_core.php 1 Feb 2008 16:16:32 -0000 1.63 --- mx_functions_core.php 3 Feb 2008 19:52:39 -0000 1.64 *************** *** 1264,1267 **** --- 1264,1268 ---- var $auth_edit = false; var $auth_mod = false; + var $full_page = false; var $init_error_msg = false; *************** *** 1507,1511 **** * * @access public - * @param string $block_contents */ function output() --- 1508,1511 ---- *************** *** 1530,1533 **** --- 1530,1562 ---- /** + * Pass block data to full page + * + * @access public + */ + function output_full_page() + { + global $layouttemplate, $mx_page; + + /* + // + // Output header + // + include( $mx_root_path . 'includes/page_header.' . $phpEx ); + + // + // Output page + // + $layouttemplate->pparse('mx_main_layout'); + + // + // Output footer + // + include($mx_root_path . 'includes/page_tail.' . $phpEx); + */ + + mx_message_die(GENERAL_MESSAGE,$this->block_contents); + } + + /** * Block border graphics. * Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** mx_functions_phpbb.php 1 Feb 2008 01:31:59 -0000 1.41 --- mx_functions_phpbb.php 3 Feb 2008 19:52:39 -0000 1.42 *************** *** 423,432 **** $mx_user = new mx_user(); } ! if( !is_object($mx_page)) { $mx_page = new mx_page(); } ! if( !is_object($mx_request_vars)) { --- 423,432 ---- $mx_user = new mx_user(); } ! if( !is_object($mx_page)) { $mx_page = new mx_page(); } ! if( !is_object($mx_request_vars)) { *************** *** 443,447 **** $mx_user->init($user_ip, - ( 1000 + $page_id )); } ! if ( empty($theme) ) { --- 443,447 ---- $mx_user->init($user_ip, - ( 1000 + $page_id )); } ! if ( empty($theme) ) { *************** *** 602,607 **** if ( !defined('IN_ADMIN') ) { $template->set_filenames(array( ! 'message_body' => 'message_body.tpl') ); } --- 602,608 ---- if ( !defined('IN_ADMIN') ) { + $message_file = $mx_block->full_page ? 'full_page_body.tpl' : 'message_body.tpl'; $template->set_filenames(array( ! 'message_body' => $message_file) ); } |