Verfasst: Mo 15. Dez 2003, 13:26
okay mit der neuen zeile in beiden dateien gehts wieder ganz normal...
thx..
thx..
Das Diskussionsforum zum Open Source Content Management System
https://forum.contenido.org/
Code: Alles auswählen
/*$code = str_replace('CMS_VALUE','$CMS_VALUE', $code);
$code = str_replace('CMS_VAR','$CMS_VAR', $code);*/
$code = str_replace('[CMS_VALUE[','[', $code);
for ($i = 0; $i < 10; $i++) {
$code = str_replace('['.$i.'CMS_VALUE[','['.$i, $code);
}
$code = str_replace(']]',']', $code);
$code = str_replace('$$CMS_','$CMS_', $code);Code: Alles auswählen
$code = preg_replace(',\[(\d+)?CMS_VALUE\[(\d+)\](\d+)?\],i', '[\1\2\3]', $code);Code: Alles auswählen
while ($db->next_record())
{
$code = str_replace($db->f("type").'[','$'.$db->f("type").'[', $code);
}
/*$code = str_replace('CMS_VALUE','$CMS_VALUE', $code);
$code = str_replace('CMS_VAR','$CMS_VAR', $code);*/
$code = str_replace('[CMS_VALUE[','[', $code);
for ($i = 0; $i < 10; $i++) {
$code = str_replace('['.$i.'CMS_VALUE[','['.$i, $code);
}
$code = str_replace(']]',']', $code);
$code = str_replace('$$CMS_','$CMS_', $code);
$code = str_replace('CMS_VALUE','$CMS_VALUE', $code);
$code = str_replace('CMS_VAR','$CMS_VAR', $code);
/* If the module is an output module, escape PHP since
all output modules enter php mode */
if ($output == true)
{
$code = "?>\n" . $code . "\n<?php";
}Code: Alles auswählen
while ($db->next_record())
{
$code = str_replace($db->f("type").'[','$'.$db->f("type").'[', $code);
}
$code = preg_replace(',\[(\d+)?CMS_VALUE\[(\d+)\](\d+)?\],i', '[\1\2\3]', $code);
$code = str_replace('CMS_VALUE','$CMS_VALUE', $code);
$code = str_replace('CMS_VAR','$CMS_VAR', $code);
/* If the module is an output module, escape PHP since
all output modules enter php mode */
if ($output == true)
{
$code = "?>\n" . $code . "\n<?php";
}das mit dem spaw tpl weiss ich jetzt nicht genau...in functions.html_tpl.php findet sich folgendes:
Code:
print i18n("Can not open file: $filename");
print i18n("Can not write file: $filename");
print i18n("File $filename is not writable");
dies kann nicht funktionieren da $filename jedesmal anders ist oder ?
besser wäre
Code:
printf(i18n("Can not open file: %s"),$filename);
printf(i18n("Can not write file: %s"),$filename);
printf(i18n("File %s is not writable"),$filename);
dies kann man auch in functions.js.php und in functions.style.php einbauen
und die ergänzungen in contenido.po dem entsprechend vornehmen...
Code:
msgid "Can not open file: %s"
msgstr "Kann die Datei %s nicht öffnen"
msgid "Can not write file: %s"
msgstr "Kann in die Datei %s nicht schreiben"
msgid "File %s is not writable"
msgstr "Die Datei %s ist nicht schreibbar"
ähm dann wars das glaub ich... alles andere wäre dann okayhab mir jetzt die geschichte beim spaw angesehen (html-element)
da gibts eigentlich nur das problem, dass bei den eingefügten html-elementen alle relativen links in falsche absolute verwandelt werden.