Ah, ich mußte gerade feststellen, dass Wathericon Version 2.99.84 offensichtlich nicht mehr mit WP 2.2 kooperiert! Halb so wild - scheint ja wohl eine Version 3beta zu geben!
ABER: Die Plugin-Page Viper007Bond.com ist derzeit leider down :( Hat einer von euch ggf. Version 3 bereits auf dem Rechner liegen und ist so vorbildlich freundlich mit mir zu teilen!?`
Das wäre grandios....danke!!!
Jan
Weathericon 2.99.84 & WP 2.2
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
Die Plugin-Page ist mittlerweile seit Monaten down. Probiere doch mal WP-Forecast, das ist wesentlich kleiner und hat trotzdem mehr Funktionen. Ich bin sehr begeistert davon.
-
Hey Woodstock,
danke für den Tipp!
Ich habe mittlerweile ferstgestellt, dass das Problem wahrscheinlich durch eine Inkompatibilität zum Plugin HeaderRandomizer entsteht. How ever...ich bin offen für neues, aber den WP-Forecast habe ich bisher nicht berücksichtigt, da hier die Rede von "Forecast" war und ich möchte das aktuelle Wetter.
Nun habe ich mal nachgelsen und festgestellt, dass es nicht NUR eine Vorhersage ist, sondern auch das aktuelle Wetter angeboten wird. TOP, da bin ich dabei...werde es mir heute Abend mal anschauen!
An dich Danke für den Tipp!!!!
Grüße
Jan -
In der Tat, auch mir überzeugt WP-FORECAST eindeutig!!!!!!
Doch nun hänge ich seit 3 Stunden an einer super banalen Sache - die Formatierung. Ich bekomme sie einfach nicht hin. Wenn ihr mal auf WorldHopping 2007 schaut, werdet ihr sehen, dassein Teil des Textes fett ist. Das möchte ich so nicht habe, kriege es aber absolut nicht hin das zu formatieren... . Habt ihr ein Tipp!? Wo lieger der Fehler??
Die wp-forecast-show schaut so aus:PHP
Alles anzeigen[size=10] <?php // // display the weather-data // function show($wpfcid,$w,$args,$wpfvars) { extract($args); extract($wpfvars); // get translations $tl=array(); $tl=set_translation($wpf_language); // ouput current conditions $plugin_path = get_settings('siteurl') . '/wp-content/plugins/wp-forecast'; $out =""; $out .="\n<div class=\"wp-forecast\">\n"; // if error print an error message and return if ( count($w)<=0) { $out .= $tl["Sorry, no valid weather data available."]."<br />"; $out .= $tl["Please try again later."]."</div>"; echo $before_widget.$before_title.$after_title.$out.$after_widget; return false; } $out .= "<div style=\"text-align:left;\">"; if ( $locname != "" ) { $out .= $tl['']."".$locname."</div>\n"; } else { $out .= $tl['']."".$w["city"]."<br>".$w["state"]."</div>\n"; } $out .="<table class=\"wp-forecast\">\n"; // show date / time if (substr($dispconfig,18,1) == "1" or substr($dispconfig,1,1) == "1") { $out .= "<tr align=\"center\"><td colspan=\"2\">"; if (substr($dispconfig,18,1) == "1") $out .= date_i18n($fc_date_format, strtotime($w['fc_obsdate_1'])); //$out .= date_i18n($fc_date_format, strtotime($w['time'])); else $out .= $tl['time'].": "; if (substr($dispconfig,18,1) == "1" and substr($dispconfig,1,1) == "1") $out .= ", "; if (substr($dispconfig,1,1) == "1") $out .= date_i18n($fc_time_format, strtotime($w['time']))."<br /><br /><br />"; $out .= "</td></tr>"; } // show icon if (substr($dispconfig,0,1) == "1") { $out .= "<tr><td align=\"center\"><img src='".$plugin_path."/icons/".$w["weathericon"].".gif' alt='".$tl[$w["weathericon"]]."' /></td></tr>\n"; } else { $out .= "<tr><td></td>\n"; } $out .= "<td align=\"center\">"; // show short description if (substr($dispconfig,2,1) == "1") $out .= $tl[$w["weathericon"]]."<br />"; $out .= "</td></tr><tr><td><br>"; // show temperatur if (substr($dispconfig,3,1) == "1") { $out .= $tl['tmp'].": ".$w["temperature"]."°"; $out .= $w['un_temp']."</td></tr></table>\n"; } else { } // show realfeel if (substr($dispconfig,4,1) == "1") $out .= $tl['flik'].": ".$w["realfeel"]."°".$w['un_temp']."<br />\n"; // show pressure if (substr($dispconfig,5,1) == "1") $out .= $tl['barr'].": ".$w["pressure"]." ".$w["un_pres"]."<br />\n"; // show humiditiy if (substr($dispconfig,6,1) == "1") $out .= $tl['hmid'].": ".$w["humidity"]."<br />\n"; // show wind if (substr($dispconfig,7,1) == "1") { $wstr=windstr($metric,$w["windspeed"],$windunit); $winddir=$w["winddirection"]; // for german language replace East with Ost or E with O if ($wpf_language=="de") $winddir=str_replace("E","O",$winddir); $out .= $tl['winds'].": ".$wstr." " . $winddir."<br />\n"; } // show windgusts if (substr($dispconfig,22,1) == "1") { $wstr=windstr($metric,$w["wgusts"],$windunit); $out .= $tl['Windgusts'].": ".$wstr."<br />\n"; } $sunarr = explode(" ",$w["sun"]); // show sunrise if (substr($dispconfig,8,1) == "1") $out .= $tl['sunrise'].": ".$sunarr[0]."<br />\n"; // show sunset if (substr($dispconfig,9,1) == "1") $out .= $tl['sunset'].": ".$sunarr[1]."<br />\n"; // show copyright if (substr($dispconfig,21,1) == "1") $out .= "<div style=\"text-align:center;\"><font size='-3'><a href=\"http://www.accuweather.com\">© 2007 AccuWeather, Inc.</a></font></div>"; $out .="</div><br />\n"; echo $before_widget.$before_title.$after_title.$out.$after_widget; // output forecast $out1=""; for ($i = 1; $i < 10; $i++) { // check active forecast for day number i if (substr($daytime,$i-1,1)=="1" or substr($nighttime,$i-1,1) =="1") { $out1 .="\n<div class=\"wp-forecast\">\n"; $out1 .= $tl["Forecast"]." "; $out1 .= date_i18n($fc_date_format, strtotime($w['fc_obsdate_'.$i]))."<br />"; } // check for daytime information if (substr($daytime,$i-1,1)=="1" ) { $out1 .="<table class=\"wp-forecast\" cellpadding='3' cellspacing='2'>\n"; $out1 .= "<tr><td valign='top' align='center'>".$tl['day']."<br />"; // show icon if (substr($dispconfig,10,1) == "1") { $out1 .= "<img src='".$plugin_path."/icons/".$w["fc_dt_icon_".$i].".gif' width='48' alt='".$tl[$w["fc_dt_icon_".$i]]."' />"; } else { $out1 .= " "; } $out1 .= "</td><td>\n"; // show short description if (substr($dispconfig,11,1) == "1") $out1 .= $tl[$w["fc_dt_icon_".$i]]."<br />"; // show temperature if (substr($dispconfig,12,1) == "1") $out1 .= $w["fc_dt_htemp_".$i]."°".$w['un_temp']."<br />"; // show wind if (substr($dispconfig,13,1) == "1") { $wstr=windstr($metric,$w["fc_dt_windspeed_".$i],$windunit); $winddir=$w["fc_dt_winddir_".$i]; // for german language replace East with Ost or E with O if ($wpf_language=="de") $winddir=str_replace("E","O",$winddir); $out1 .= $tl['winds'].": ".$wstr." " . $winddir."<br />\n"; } // show windgusts if (substr($dispconfig,23,1) == "1") { $wstr=windstr($metric,$w["fc_dt_wgusts_".$i],$windunit); $out1 .= $tl['Windgusts'].": ".$wstr."\n"; } $out1 .= "</td></tr></table>\n"; } // check for nighttime information if (substr($nighttime,$i-1,1)=="1" ) { $out1 .="<table class=\"wp-forecast\" cellpadding='3' cellspacing='2'>\n"; $out1 .= "<tr><td valign='top' align='center'>".$tl['night']."<br />"; if (substr($dispconfig,14,1) == "1") { $out1 .= "<img src='".$plugin_path."/icons/".$w["fc_nt_icon_".$i].".gif' width='48' alt='".$tl[$w["fc_nt_icon_".$i]]."' />"; } else { $out1 .= " "; } $out1 .= "</td><td>\n"; // show short description if (substr($dispconfig,15,1) == "1") $out1 .= $tl[$w["fc_nt_icon_".$i]]."<br />"; // show temperature if (substr($dispconfig,16,1) == "1") { $out1 .= $w["fc_nt_ltemp_".$i]."°".$w['un_temp']."<br />"; } // show wind if (substr($dispconfig,17,1) == "1") { $wstr=windstr($metric,$w["fc_nt_windspeed_".$i],$windunit); $winddir=$w["fc_nt_winddir_".$i]; // for german language replace East with Ost or E with O if ($wpf_language=="de") $winddir=str_replace("E","O",$winddir); $out1 .= $tl['winds'].": ".$wstr." " . $winddir."<br />\n"; } // show windgusts if (substr($dispconfig,24,1) == "1") { $wstr=windstr($metric,$w["fc_nt_wgusts_".$i],$windunit); $out1 .= $tl['Windgusts'].": ".$wstr."\n"; } $out1 .= "</td></tr></table>\n"; } // close div block if (substr($daytime,$i-1,1)=="1" or substr($nighttime,$i-1,1) =="1") $out1 .="</div>\n"; } // only print if there is something to show :-) if ($out1!="") echo $before_widget.$before_title.$after_title.$out1.$after_widget; } ?> [/SIZE]
Die CSS:Code
Alles anzeigendiv.wp-forecast { font-size: .90em; font-family: Verdana, Arial, Tahoma; padding: 10px font-weight: normal; } table.wp-forecast { font-size: .90em; font-family: Verdana, Arial, Tahoma; font-weight: normal; }
Mal wieder an riesen Danke an alle Helferlein!!!!
Grüße
Jan -
Du hast bei deinen Änderungen irgendwo ein <tr> unterschlagen, vielleicht liegt es schon daran.
-
Hey Woodstock,
an dieser Stelle noch mal ein riesen Danke für deinen guten Tipp! WP-Forecast gefällt nun auch mir deutlich besser!!! Das Problem mit der Formatierung lag an einen noch offenen <div>... .
Grüße
Jan -
Ja, wp-forecast ist schon klasse, aber bei mir spielen die Umlaute verrückt, da mein Blog nicht unter UTF läuft.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!