|
From: Jon O. <jon...@us...> - 2008-04-27 18:53:45
|
Update of /cvsroot/mxbb/mx_phpbb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18658 Modified Files: mx_phpbb.php Log Message: Fix for index bottom icons... Index: mx_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/mx_phpbb.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** mx_phpbb.php 22 Feb 2008 23:13:55 -0000 1.20 --- mx_phpbb.php 27 Apr 2008 18:53:42 -0000 1.21 *************** *** 109,119 **** // Final template code fixup - these are really phpBB "bugs", hardcoded images etc. // switch ( $mx_forum->phpbb_script ) { case 'index': ! $phpbb_output = str_replace('"templates/'.$theme['template_name'].'/images/folder_new_big.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/folder_new_big.gif', $phpbb_output); ! $phpbb_output = str_replace('"templates/'.$theme['template_name'].'/images/folder_big.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/folder_big.gif', $phpbb_output); ! $phpbb_output = str_replace('"templates/'.$theme['template_name'].'/images/folder_locked_big.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/folder_locked_big.gif', $phpbb_output); ! $phpbb_output = str_replace('"templates/'.$theme['template_name'].'/images/whosonline.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/whosonline.gif', $phpbb_output); break; --- 109,121 ---- // Final template code fixup - these are really phpBB "bugs", hardcoded images etc. // + $theme['default_template_name'] = !empty($theme['cloned_template_name']) ? $theme['cloned_template_name'] : $mx_user->default_template_name ; + switch ( $mx_forum->phpbb_script ) { case 'index': ! $phpbb_output = str_replace('"templates/'.$theme['default_template_name'].'/images/folder_new_big.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/folder_new_big.gif', $phpbb_output); ! $phpbb_output = str_replace('"templates/'.$theme['default_template_name'].'/images/folder_big.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/folder_big.gif', $phpbb_output); ! $phpbb_output = str_replace('"templates/'.$theme['default_template_name'].'/images/folder_locked_big.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/folder_locked_big.gif', $phpbb_output); ! $phpbb_output = str_replace('"templates/'.$theme['default_template_name'].'/images/whosonline.gif', '"' . $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/whosonline.gif', $phpbb_output); break; *************** *** 122,127 **** case 'viewtopic': ! $phpbb_output = str_replace('templates/'.$theme['template_name'].'/images/vote_lcap.gif', $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/vote_lcap.gif', $phpbb_output); ! $phpbb_output = str_replace('templates/'.$theme['template_name'].'/images/vote_rcap.gif', $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/vote_rcap.gif', $phpbb_output); break; --- 124,129 ---- case 'viewtopic': ! $phpbb_output = str_replace('templates/'.$theme['default_template_name'].'/images/vote_lcap.gif', $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/vote_lcap.gif', $phpbb_output); ! $phpbb_output = str_replace('templates/'.$theme['default_template_name'].'/images/vote_rcap.gif', $phpbb_root_path . 'templates/'.$theme['template_name'].'/images/vote_rcap.gif', $phpbb_output); break; *************** *** 134,138 **** } - $phpbb_output = str_replace('"templates/'.$theme['template_name'], '"' . $phpbb_root_path . 'templates/'.$theme['template_name'], $phpbb_output); --- 136,139 ---- |