irgendwie blicke ich bei den Änderungen nicht mehr durch.

1. Zuerst die Datei "include.chain.content.html2xhtml.php" im Verzeichnis "/contenido/plugins/chains/includes" angelegt.
2. Und diesen Code eingebunden
Code: Alles auswählen
<?php
function cecContentHtml2Xhtml ($idartlang, $int2, $int3, $string)
{
global $cfg;
/* Cache the XHTML setting for performance reasons */
if (!is_array($cfg) || !array_key_exists("generate_xhtml", $cfg))
{
if (function_exists("getEffectiveSetting"))
{
$cfg["generate_xhtml"] = getEffectiveSetting("generator", "xhtml", false);
} else {
$cfg["generate_xhtml"] = false;
}
}
if ($cfg["generate_xhtml"] === "false")
{
$cfg["generate_xhtml"] = false;
}
if ($cfg["generate_xhtml"] == true)
{
$string = preg_replace ("/(<\/?)(\w+)([^>]*>)/me"
,"'\\1'.strtolower('\\2').cecContentHtmlAttr2Xhtml('\\3')"
,$string
);
$string = preg_replace ("/(<)(area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param)([^>]*?)((?<!\/)>)/m"
,"\\1\\2\\3 />"
,$string
);
}
return $string;
}
function cecContentHtmlAttr2Xhtml ($string)
{
$string = stripslashes ($string);
$string = stripslashes (preg_replace ("/(\w+)(\=)([\"|\'])([^\"']+)([\"|\'])(\s)/me"
,'strtolower("\1")."=\"\4\" "'
,$string
));
$string = stripslashes (preg_replace ("/([\s]([\w]+)[\s]+)(?!\=[\"\'])(?=[\/]?[>]|[\w\s]+[\=])/me"
,' '.strtolower('\\2').'="'.strtolower('\\2').'"'
,$string
));
$string = stripslashes (preg_replace ("/([\s]([\w]+)[\s]+)(?!\=[\"\'])(?=[\/]?[>]|[\w\s]+[\=])/me"
,' '.strtolower('\\2').'="'.strtolower('\\2').'"'
,$string
));
return $string;
}
?>
Code: Alles auswählen
<?php
global $_cecRegistry, $cfg, $client;
$cfg['plugins']['frontendlogic'][] = "category";
cInclude("plugins", "chains/includes/include.chain.frontend.cat_backendaccess.php");
cInclude("plugins", "chains/includes/include.chain.frontend.cat_access.php");
$_cecRegistry->addChainFunction("Contenido.Frontend.CategoryAccess", "cecFrontendCategoryAccess");
$_cecRegistry->addChainFunction("Contenido.Frontend.CategoryAccess", "cecFrontendCategoryAccess_Backend");
cInclude("plugins", "chains/includes/include.chain.content.html2xhtml.php");
$_cecRegistry->addChainFunction("Contenido.Content.SaveContentEntry", "cecContentHtml2Xhtml");
?>
Vielen Dank schon einmal im Voraus!
Leonhard