Editor: Pfade bei CMS_HTMLHEAD teilweise falsch

Gesperrt
HerrB
Beiträge: 6935
Registriert: Do 22. Mai 2003, 12:44
Wohnort: Berlin
Kontaktdaten:

Editor: Pfade bei CMS_HTMLHEAD teilweise falsch

Beitrag von HerrB » Mi 22. Okt 2003, 20:55

Code der HTML-Editor-Seite aus CMS_HTML (erste x Zeilen):

Code: Alles auswählen

<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="http://www.domain.de/cms/contenido/styles/contenido.css">
<base href="http://www.domain.de/cms/uvh-online.de/">
</head>
<body>
<table width="100%"  border=0 cellspacing="0" cellpadding="0" bgcolor= >
  <tr>
    <td width="10" rowspan="4"><img src="http://www.domain.de/cms/contenido/images/spacer.gif" width="10" height="10"></td>
    <td width="100%"><img src="http://www.domain.de/cms/contenido/images/spacer.gif" width="10" height="10"></td>
    <td width="10" rowspan="4"><img src="http://www.domain.de/cms/contenido/images/spacer.gif" width="10" height="10"></td>
  </tr>
Code der HTML-Editor-Seite aus CMS_HTMLHEAD (erste x Zeilen, man beachte den fehlenden Pfad bei spacer.gif):

Code: Alles auswählen

<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="http://www.domain.de/cms/contenido/styles/contenido.css" />
</head>
<body>

<table width="100%" border=0 cellspacing="0" cellpadding="0" bgcolor="#ffffff">
  <tr>
    <td width="10" rowspan="4"><img src="images/spacer.gif" width="10" height="1"></td>
    <td width="100%"><img src="images/spacer.gif" width="10" height="10"></td>
    <td width="10" rowspan="4"><img src="images/spacer.gif" width="10" height="1"></td>
  </tr>
  <tr>
    <td>
Ausser der fehlenden Grafik habe ich noch keine negativen Folgen bemerkt.

Gruß
HerrB

timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Do 23. Okt 2003, 09:14

Hallo HerrB,

bei dir wird wohl aus irgendwelchen Gründen teilweise keine $cfg bzw $cfgClient-Variable übergeben (bei mir steht der komplette Pfad drin :)). Deshalb scheint auch das On-The-Fly-Replacement nicht zu funktionieren.

Kannst du mir mal deine Serverdaten geben (php.ini-Settings, Webserver, Umgebung)?

Danke!

Grüße,
Timo

HerrB
Beiträge: 6935
Registriert: Do 22. Mai 2003, 12:44
Wohnort: Berlin
Kontaktdaten:

Beitrag von HerrB » Do 23. Okt 2003, 11:13

Hast Du als PM erhalten.

Gruß
HerrB

HerrB
Beiträge: 6935
Registriert: Do 22. Mai 2003, 12:44
Wohnort: Berlin
Kontaktdaten:

Beitrag von HerrB » Do 23. Okt 2003, 13:16

Ich habe Contenido nochmal neu installiert und habe weiterhin den Fehler. Verblüffend ist, dass es bei CMS_HTML funktioniert, bei CMS_HTMLHEAD nicht...

Gruß
HerrB

timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Do 23. Okt 2003, 13:22

OH - ich muß mich entschuldigen, ich hab das Problem falsch interpretiert (typisches zu-doof-zum-lesen-Symphtom :))

Ich hab die Stelle gefunden und behoben. Einfach die vorhandenen Zeilen in include.CMS_HTMLHEAD.php mit folgenden ersetzen:

Code: Alles auswählen

<base href="<?php echo $cfgClient[$client]["path"]["htmlpath"]; ?>">
</head>
<body>
<table width="100%"  border=0 cellspacing="0" cellpadding="0" bgcolor=<?php echo "$bg"; ?> >
  <tr>
    <td width="10" rowspan="4"><img src="<?php print $cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"] ?>spacer.gif" width="10" height="10"></td>
    <td width="100%"><img src="<?php print $cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"] ?>spacer.gif" width="10" height="10"></td>
    <td width="10" rowspan="4"><img src="<?php print $cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"] ?>spacer.gif" width="10" height="10"></td>
  </tr>

Grüße,
Timo

HerrB
Beiträge: 6935
Registriert: Do 22. Mai 2003, 12:44
Wohnort: Berlin
Kontaktdaten:

Beitrag von HerrB » Do 23. Okt 2003, 13:36

Funktioniert.

Für diejenigen, die es nicht finden:

include.CMS_HTMLHEAD.php im Contenido\includes-Verzeichnis.

Vorher:

Code: Alles auswählen

<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="<?php echo $cfg["path"]["contenido_fullhtml"].$cfg["path"]["styles"] ?>contenido.css" />
</head>
<body>

<table width="100%" border=0 cellspacing="0" cellpadding="0" bgcolor="#ffffff">
  <tr>
    <td width="10" rowspan="4"><img src="images/spacer.gif" width="10" height="1"></td>
    <td width="100%"><img src="images/spacer.gif" width="10" height="10"></td>
    <td width="10" rowspan="4"><img src="images/spacer.gif" width="10" height="1"></td>
  </tr>
Nachher:

Code: Alles auswählen

<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="<?php echo $cfg["path"]["contenido_fullhtml"].$cfg["path"]["styles"] ?>contenido.css" />
    <base href="<?php echo $cfgClient[$client]["path"]["htmlpath"]; ?>"> 
</head> 
<body> 
<table width="100%"  border=0 cellspacing="0" cellpadding="0" bgcolor=<?php echo "$bg"; ?> > 
  <tr> 
    <td width="10" rowspan="4"><img src="<?php print $cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"] ?>spacer.gif" width="10" height="10"></td> 
    <td width="100%"><img src="<?php print $cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"] ?>spacer.gif" width="10" height="10"></td> 
    <td width="10" rowspan="4"><img src="<?php print $cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"] ?>spacer.gif" width="10" height="10"></td> 
  </tr>
Gruß
HerrB

timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Do 23. Okt 2003, 13:38

ich mach hier auch mal zu :)

Gesperrt