Seite 1 von 1

Junior Admin Installation unter PhpBB 2.0.17

Verfasst: 13.08.2005 22:38
von Brummer_
gemäß Installationsanleitung habe ich nach folgendem Code gesucht:

Code: Alles auswählen

# 
#-----[ FIND ]------------------------------------------ 
#
	ksort($module);

	while( list($cat, $action_array) = each($module) )
	{
		$cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);

		$template->assign_block_vars("catrow", array(
			"ADMIN_CATEGORY" => $cat)
		);

		ksort($action_array);

		$row_count = 0;
		while( list($action, $file)	= each($action_array) )
		{
			$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
			$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];

			$action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);

			$template->assign_block_vars("catrow.modulerow", array(
				"ROW_COLOR" => "#" . $row_color,
				"ROW_CLASS" => $row_class, 

				"ADMIN_MODULE" => $action,
				"U_ADMIN_MODULE" => append_sid($file))
			);
			$row_count++;
		}
	}

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
	jr_admin_make_left_pane();
leider finde ich nur diesen Code in meiner admin/index.php nur folgenden Code:

Code: Alles auswählen

	ksort($module); 

   $select_id = $HTTP_GET_VARS['select_id']; 
   $i = 1; 

   while( list($cat, $action_array) = each($module) ) 
   { 
      $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); 
      $cat_id = $i; 

      $template->assign_block_vars("catrow", array( 
         "CAT_ID" => ($select_id == $cat_id) ? append_sid("index.$phpEx?pane=left") : append_sid("index.$phpEx?pane=left&select_id=" . $cat_id), 
         "ADMIN_CATEGORY" => $cat) 
      ); 

      if ($select_id == $cat_id) 
      { 
         ksort($action_array); 
         $row_count = 0; 
         while( list($action, $file)   = each($action_array) ) 
         { 
            $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; 
            $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; 

            $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); 

            $template->assign_block_vars("catrow.modulerow", array( 
               "ROW_COLOR" => "#" . $row_color, 
               "ROW_CLASS" => $row_class, 

               "ADMIN_MODULE" => $action, 
               "U_ADMIN_MODULE" => append_sid($file)) 
            ); 
            $row_count++; 
         } 
      } 
      $i++; 
   } 
Wenn ich gemäß der Anleitung den gesammten Block ersetze fehlen ja offensichtlich bestimmte Fragmente des alten Codes, wenn ich den Code komplett überschreibe verrschwindet das ACP komplett.

Ich bin etwas ratlos, da ich selbst schon einiges ausprobiert habe, jedoch ohne erfolg. Ich würde mich über recht schnelle Hilfe sehr freuen.

Besten Dank im Vorraus

Brummer

Verfasst: 22.08.2005 11:40
von Brummer_
Ich bin selbst drauf gekommen, das es an dem MOD zu Verbesserung des ACP lag. Dieser Mod ersetzte bereits obigen Abschnitt, daher war er nicht mehr vorhanden.

Ich hab den alten Mod ausgebaut und den neuen eingebaut, Resultat ist wie gewünscht.