habe folgendes problem beim sprachwechsel.
ich habe ein projekt in deutsch fertig gestellt. anschliessend eine neue sprache erstellt.
das hat alles wunderbar geklappt.
für den jeweiligen sprachwechsel habe ich folgenden code von alex eingesetzt:
Code: Alles auswählen
<?php
//Sprachmodul - Version 2.2
//für Contenido 4.4.x
//Alexander Zimmerhofer - alexander(at)zimmerhofer.org
//Sprachmodul zeigt kleine Landesflaggen zum Umschalten der Sprache an, wenn die entsprechenden Kategorien sowie die entsprechenden Artikel online geschaltet sind.
//Im Editormodus wird die Umschaltmöglichkeit IMMER angeboten...
//Konfiguration...
//Diese Zeilen konfigurieren das Modul...
//Aufbau: $picture["Sprach-ID"] = "PFAD zur Flagge";
$picture["1"] = "upload/design/brd.gif";
$picture["3"] = "upload/design/gb.gif";
//AB HIER NICHTS MEHR ÄNDERN...
$mydb = new DB_Contenido;
$mydb ->query ("SELECT ARTLANG.idlang, ARTLANG.online, CATLANG.visible FROM ".$cfg["tab"]["art_lang"]." AS ARTLANG, ".$cfg["tab"]["cat_lang"]." AS CATLANG WHERE ARTLANG.idart = '20' AND CATLANG.idcat = '1' AND ARTLANG.idlang = CATLANG.idlang ORDER BY ARTLANG.idlang ASC");
while ($mydb -> next_record())
{
while(list($lang_id,$picture_pfad) = each($picture))
{
if(strstr($REQUEST_URI,"changeview=edit") || $submit=="editcontent" || strstr($REQUEST_URI,"area=con_editcontent"))
{
if (($lang != ($mydb->f("idlang"))) and (($mydb->f("idlang")) == $lang_id))
{
echo "<a href=".$sess->url("front_content.php?client=$client&changelang=".($mydb->f("idlang"))."&idart=$idart");
echo "><img src=".$picture_pfad." border='0'></a> ";
}
}
else
{
if (($lang != ($mydb->f("idlang"))) and (($mydb->f("idlang")) == $lang_id) and (($mydb->f("online")) == 1) and (($mydb->f("visible")) == 1))
{
echo "<a href=".$sess->url("front_content.php?client=$client&changelang=".($mydb->f("idlang"))."&idart=$idart");
echo "><img src=".$picture_pfad." border='0'></a> ";
}
}
}
reset($picture);
}
?>
hat jemand eine idee woran das liegen kann.
benutze contenido 4.4.5.
danke schonmal!!!
gruss kai