-
eWether anzeige geändert! Nur mehr 4 Tage pro Reihe!
Hallo Leute, habe die Komponente eWeather so geändert, das pro Reihe nur mehr vier Tage angezeigt werden!
Beispiel gibts hier!
http://www.ff-breitenbuch.at/page/in...her&Itemid=119
lg
-
-
Verbringt hier viel Zeit
Hola,
ja, toll und wie hast du das gemacht?
saludos
ranaverde
-
-
Folgendes geändert!
hallo, habe folgendes geändert:
$day_counter = count($weather->dayf_forecasts);
$content = "<table width=\"400px\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" summary=\"\">\n"
." <tr>"
." <td class=\"sectiontableheader\" valign=\"middle\">"
." "._W_FORECAST." - ".$weather->dayf_lastupdate."\n"
." </td>\n"
." </tr>\n"
." <tr>\n"
." <td>\n"
." <br />\n"
." <table border=\"0\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\" summary=\"\">\n"
." <tr>\n";
for ($x = 0; $x < $day_counter ; $x++) {
$v = strftime($date_format, strtotime($weather->dayf_forecasts[$x]->day_date));
$content.= " <td>\n"
." <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" summary=\"\">\n"
." <tr>\n"
// background=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png\"
." <td style=\" border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; background: url(".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png) repeat-x;\" height=\"19\" colspan=\"2\">\n"
// valign=\"absmiddle\"
." <div style=\"font-weight: bold; text-align: center; color: #000000; border: 0px; vertical-align: bottom;\">\n"
." <a href=\"index.php?option=com_eweather&Itemid=". $Itemid."&detail_view=".$x."\" title=\""._W_FORECAST_FTITLE."\">\n"
." <img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/plus.gif\" align=\"left\" border=\"0\" alt=\"\" />\n"
." </a>\n"
." ".$v."</div>\n"
." </td>\n"
." </tr>\n"
." <tr>\n"
." <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;\">\n"
." <div style=\"font-weight: bold; text-align: center;\">"._W_FORECAST_DAY."</div>\n"
." </td>\n"
." <td style=\"border-right: 1px solid #CCCCCC;\">\n"
." <div style=\"font-weight: bold; text-align: center;\">"._W_FORECAST_NIGHT."</div>\n"
." </td>\n"
." <tr>\n"
." <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"
." <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/small/".$weather->dayf_forecasts[$x]->day_d_icon.".png\" border=\"0\" alt=\"\" /><br /></div>\n"
." </td>\n"
." <td style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"
." <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/small/".$weather->dayf_forecasts[$x]->day_n_icon.".png\" border=\"0\" alt=\"\" /><br /></div>\n"
." </td>\n"
." </tr>\n"
." <tr>\n"
." <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;\" colspan=\"2\">\n"
." <div style=\"font-weight: bold; text-align: center; color: #000000; background: #EFEFEF;\">"._W_FORECAST_TEMP."</div>\n"
." </td>\n"
." </tr>\n"
." <tr>\n"
." <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"
." <div align=\"center\">"._W_FORECAST_TEMP_MAX.": ".$weather->dayf_forecasts[$x]->day_temp_max."°".$weather->h_temp."<br /></div>\n"
." </td>\n"
." <td style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"
." <div align=\"center\">"._W_FORECAST_TEMP_MIN.": ".$weather->dayf_forecasts[$x]->day_temp_min."°".$weather->h_temp."<br /></div>\n"
." </td>\n"
." </tr>\n"
." <tr>\n"
." <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;\" colspan=\"2\">\n"
." <div style=\"font-weight: bold; text-align: center; color: #000000; background: #EFEFEF;\">"._W_FORECAST_RAIN."</div>\n"
." </td>\n"
." </tr>\n"
." <tr>\n"
." <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"
." <div align=\"center\">".$weather->dayf_forecasts[$x]->day_d_precipitation."%<br /></div>\n"
." </td>\n"
." <td style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"
." <div align=\"center\">".$weather->dayf_forecasts[$x]->day_n_precipitation."%<br /></div>\n"
." </td>\n"
." </tr>\n"
." </table>\n";
if ($x == 3) {
$content.= "</td></tr><tr><td colspan=\"15\" height=\"10\"></td></tr><tr>";
}
elseif ($x == 7) {
$content.= "</td></tr><tr><td colspan=\"15\" height=\"10\"></td></tr><tr>";
}
elseif ($x != $day_counter-1) {
$content.= "<td width=\"15\"></td>";
}
}
Dies befindet sich zwischen der Zeile 368 und 445! Normal muss es gehen, geht ja bei mir auch, falls nicht einfach kurze PM!
lg
-
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
Foren-Regeln
Lesezeichen