ACHTUNG: Diese Codes gelten nur bis
Mambo Stable Version 4.5 (1.0.9)
Erklärung: siehe Beitrag unten
EDIT: GANZ UNTEN STEHEN DIE LINKS FÜR Codes 4.5.1.
von Arthur (English) und Christian (Deutsch)
SCROLLEN MÜSST IHR SCHON SELBST!
------------------------------
Immer wieder tauchen Probleme auf die ganz einfach zu lösen sind.
Es gibt mittlerweile kaum ein Template, egal ob bei mamboportal, mambohut etc gedownloadet, die bis </head> richtig sind...
PHP Code:
<?php echo "<?xml version=\"1.0\"?>"; defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<head>
<title><?php echo $mosConfig_sitename; ?></title>
<?php
if($my->id){
if($_REQUEST["task"] == "edit" || $_REQUEST["task"] == "new") {
include ("editor/editor.php");
initEditor();
}
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php include ("includes/metadata.php"); ?>
<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template;?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template;?>/images/favicon.ico" />
</head>
_________________________________________________
Ein funktionierender Anker ( Nach Oben , TOP .... )
Oben einfügen gleich nach </head>
PHP Code:
<body>
<?php $url = sefRelToAbs($_SERVER["REQUEST_URI"]); ?>
Dort wo der Anker hin soll, das einfügen:
PHP Code:
<a href="<?php echo $url ?>#top">Top</a>