Thread: Speed - Mambo
View Single Post
Old 04.08.2004, 14:05   #1 (permalink)
Anastasia
Guest
 
Posts: n/a
Default Speed - Mambo

Speed for Mambo und .... wozu htmlarea laden, wenn man den gar nicht braucht? Geht ja nur auf die Geschwindigkeit.
In der index.php des Templates
PHP Code:
<?php 
if ($my->id) { 
        include (
"editor/editor.php"); 
        
initEditor(); 

?>
ändern in
PHP Code:
<?php 
if($my->id){ 
    if(
$_REQUEST["task"] == "edit" || $_REQUEST["task"] == "new") { 
        include (
"editor/editor.php"); 
        
initEditor(); 
    } 

?>
Jetzt wird der Editor nur noch aufgerufen, wenn man
1. Eingeloggt ist
2. New oder Edit - Button klickt.


Und fürs Backend...
Was vorne geht, muss auch hinten gehen.
Dann kam das nach einem Gespräch mit novocaine raus:

mambo/administrator/index2.php
Lösche Zeile: 31
PHP Code:
 include_once( "../editor/editor.php" ); 
Und dann: Zeile: 158 bis 160
PHP Code:
<?php
initEditor
();
?>
ändern in

PHP Code:
<?php
if($_REQUEST["task"] == "edit" || $_REQUEST["task"] == "new") {
        include_once( 
"../editor/editor.php" );
        
initEditor();
}
?>

Bis denne

PS: Die Antwort von tonyskyday auf http://forum.mamboserver.com/showthread.php?p=59992 ist mir allerdings ein Rätsel,
Quote:
If you look in the core mambo templates, you will see this, which was done for the same reason, though it calls the editor whenever someone is logged in, not just when they are editing or adding content
Darum gings doch grade. NUR LADEN WENN GEBRAUCHT!
  Reply With Quote
Sponsored Links