Giraffe schrieb
Meintest du nicht eben noch, es sei einfacher das alles zu googlen?
=> Dann mach das!
Guck mal hier, das hilft dir bestimmt:
Und ab jetzt bemühst du dich, alleine weiterzukommen!
Alles was du bislang gefragst hast, hättest du auch mit Google lösen können.
Und - das sei wirklich noch gesagt - indem du selbst ein bisschen über das jeweilige Problem nachdenkst.
Ist das so schwer?
Ein Forum in das die User nicht schreiben dürfen ? Coole Idee !!! ...und so sinnvoll...
Und wieder hast du mich nicht verstanden.
Was ich - und auch die anderen Helfer hier - möchte ist, dass wer fragt, auch selbst einen Beitrag zur Lösung des Problems erbringt.
Ich habe nirgendwo behauptet, dass man nicht in das Forum schreiben darf.
Ich habe Eigeninitiative gefordert, nur ein bisschen.
Wer Hilfe will, soll zeigen, dass er es zumindest selbst probiert hat.
Giraffe schrieb
...das ich nicht weiß welche Datei es ist ! Weil in der Patch-Datei (in der ich diese Info suchen würde) nichts menschenlesbares ist... Hab ihr euch das Ganz überhaupt mal angeguckt ?
Solche impliziten Unterstellungen hasse ich ja mal!
Die Datei ist genau so wenig menschenlesbar, wie es eine neue TYPO3-Version gibt:
Index: t3lib/class.t3lib_tceforms.php
===================================================================
--- t3lib/class.t3lib_tceforms.php (Revision 4295)
+++ t3lib/class.t3lib_tceforms.php (Arbeitskopie)
@@ -4985,6 +4985,7 @@
* @return string A section with JavaScript - if $update is false, embedded in <script></script>
*/
function JSbottom($formname='forms[0]', $update = false) {
+ $jsFile = array();
$elements = array();
// required:
@@ -5014,17 +5015,18 @@
if (!$update) {
if ($this->loadMD5_JS) {
- $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('md5.js');
+ $GLOBALS['SOBE']->doc->loadJavascriptLib('md5.js');
}
- $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('contrib/prototype/prototype.js');
- $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('../t3lib/jsfunc.evalfield.js');
- $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('jsfunc.tbe_editor.js');
+ $GLOBALS['SOBE']->doc->loadJavascriptLib('contrib/prototype/prototype.js');
+ $GLOBALS['SOBE']->doc->loadJavascriptLib('../t3lib/jsfunc.evalfield.js');
+ // @TODO: Change to loadJavascriptLib(), but fix "TS = new typoScript()" issue first - see bug #9494
+ $jsFile[] = '<script type="text/javascript" src="'.$this->backPath.'jsfunc.tbe_editor.js"></script>';
// if IRRE fields were processed, add the JavaScript functions:
if ($this->inline->inlineCount) {
- $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('contrib/scriptaculous/scriptaculous.js');
- $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib('../t3lib/jsfunc.inline.js');
+ $GLOBALS['SOBE']->doc->loadJavascriptLib('contrib/scriptaculous/scriptaculous.js');
+ $GLOBALS['SOBE']->doc->loadJavascriptLib('../t3lib/jsfunc.inline.js');
$out .= '
inline.setPrependFormFieldNames("'.$this->inline->prependNaming.'");
inline.setNoTitleString("'.addslashes(t3lib_BEfunc::getNoRecordTitle(true)).'");
@@ -5157,7 +5159,8 @@
// Regular direct output:
if (!$update) {
- $out = chr(10) . chr(9) . t3lib_div::wrapJS($out);
+ $spacer = chr(10) . chr(9);
+ $out = $spacer . implode($spacer, $jsFile) . t3lib_div::wrapJS($out);
}
return $out;
Index: typo3/alt_palette.php
===================================================================
--- typo3/alt_palette.php (Revision 4295)
+++ typo3/alt_palette.php (Arbeitskopie)
@@ -301,7 +301,6 @@
function main() {
$this->content='';
- $this->content.=$this->doc->startPage('TYPO3 Edit Palette');
$inData = explode(':',$this->inData);
@@ -331,6 +330,11 @@
// Add all the content, including JavaScript as needed.
$this->content.=$tceforms->printNeededJSFunctions_top().$formContent.$tceforms->printNeededJSFunctions();
}
+
+ // Assemble the page:
+ $tempContent = $this->content;
+ $this->content = $this->doc->startPage('TYPO3 Edit Palette');
+ $this->content.= $tempContent;
}
/**
Index: typo3/wizard_rte.php
===================================================================
--- typo3/wizard_rte.php (Revision 4295)
+++ typo3/wizard_rte.php (Arbeitskopie)
@@ -154,10 +154,6 @@
'.($this->popView ? t3lib_BEfunc::viewOnClick($rawRec['pid'],'',t3lib_BEfunc::BEgetRootLine($rawRec['pid'])) : '').'
');
- // Create page HTML header:
- $this->content.=$this->doc->startPage('');
-
-
// Initialize TCeforms - for rendering the field:
$tceforms = t3lib_div::makeInstance('t3lib_TCEforms');
$tceforms->initDefaultBEMode(); // Init...
@@ -276,10 +272,13 @@
$tceforms->printNeededJSFunctions();
} else {
// ERROR:
- $this->content.=$this->doc->startPage('');
$this->content.=$this->doc->section($LANG->getLL('forms_title'),'<span class="typo3-red">'.$LANG->getLL('table_noData',1).'</span>',0,1);
}
+ // Assemble the page:
+ $tempContent = $this->content;
+ $this->content = $this->doc->startPage('');
+ $this->content.= $tempContent;
}
/**
=> Das ist der Grund, weshalb ich auch dieses Problem nicht verstehe.
---
Ich glaube es ist so: Du erwartest, dass dir hier die Lösung auf dem Silbertablett präsentiert wird.
Ob das dran liegt, dass du nicht weißt, wie du dein Problem angehen sollst, oder ob du einfach nur faul bist, kann ich so nicht sicher sagen. Vieles spricht aber für Zweiteres.
Es ist jedenfalls schade, dass du auch nicht nur ansatzweise selbst überlegst, wie du ein Problem lösen könntest.
Da ist es doch klar, dass die Leute irgendwann keine Lust mehr haben, dir zu helfen.