[MOD/FIX] Global Headers (Left Column) on all pages BETA

This is a modification that is more of a fix. I have tested this on my site, and haven't found any issues with it so far. Of course, I've previously made that mistake with this code. As a result as of the current date, I am only calling this a BETA release. If anyone uses this and finds any problems, please let me know.
On some pages that are called by the message_die() function call, the IntegraMod headers (left column) does not display. This will allow the headers to be displayed on all pages.
OPEN: includes/functions.php
FIND:
AFTER, ADD:
FIND] $sql_store = $sql;[/code]
REPLACE WITH:
FIND] // // Load the Page Header // if ( !defined('IN_ADMIN') && !defined('HEADER_INC') ) { include($phpbb_root_path . 'includes/page_header.'.$phpEx); } else { include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); }[/code]
REPLACE WITH:
On some pages that are called by the message_die() function call, the IntegraMod headers (left column) does not display. This will allow the headers to be displayed on all pages.
OPEN: includes/functions.php
FIND:
- Code: Select all
//+MOD] = array( 'msg_code' => $msg_code, 'msg_text' => $msg_text, 'msg_title' => $msg_title, 'err_line' => $err_line, 'err_file' => $err_file, 'sql' => $sql );//-MOD: Fix message_die for multiple errors MOD
AFTER, ADD:
- Code: Select all
//--- Fix Global Headers --- $sql_store = $sql; if ( !defined('HEADER_INC') ) { if ( !defined('IN_ADMIN') ) { include($phpbb_root_path . 'includes/page_header.'.$phpEx); } else { include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); } }//--- ---
FIND] $sql_store = $sql;[/code]
REPLACE WITH:
- Code: Select all
//--- Fix Global Headers ---// $sql_store = $sql;//--- ---
FIND] // // Load the Page Header // if ( !defined('IN_ADMIN') && !defined('HEADER_INC') ) { include($phpbb_root_path . 'includes/page_header.'.$phpEx); } else { include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); }[/code]
REPLACE WITH:
- Code: Select all
//--- Fix Global Headers ---/* // // Load the Page Header // if ( !defined('IN_ADMIN') && !defined('HEADER_INC') ) { include($phpbb_root_path . 'includes/page_header.'.$phpEx); } else { include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); }*///--- ---