Ja, hast Recht, ich hab da einfach den von Düsseldorf genommen :).
Also ich zeigs mal, die Anleitung:
[B]zusätzliche Information[/B][LIST=1]
[*]Diesen Code zum Anzeigen des 'Weather Icon' hinzufügen:
<?php if (function_exists('WeatherIcon')) : ?>
<li>Lufkin, Texas
<ul><?php WeatherIcon('station=KLFK'); ?></ul>
</li>
<?php endif; ?>
[*]Adjust the output with these parameters (see the [URL="http://codex.wordpress.org/Template_Tags/How_to_Pass_Tag_Parameters#Tags_with_query-string-style_parameters"]WordPress Codex[/URL] for information on how to pass arguments to a function in a query string format). You only need to set 'station', the rest are optional.
[B]station[/B]([I]string[/I]) The 4-letter ICAO airport indentifier code to display the weather for. Find a location code here: [URL]http://weather.gov/tg/siteloc.shtml[/URL]. Defaults to 'KLFK'.[B]before[/B]([I]string[/I]) Text to display before each weather item description (i.e. the icon, the temperature, the wind, etc.). Defaults to '<li>'.[B]after[/B]([I]string[/I]) Text to display after each weather item description (i.e. the icon, the temperature, the wind, etc.). Defaults to '</li>'.[B]debug[/B]([I]boolean[/I]) Overrides global debug values. If true, all debug information (cache & condition) will be displayed, If false, all debug information will be supressed. Valid values:[LIST]
[*]1 (True)
[*]0 (False)[/LIST][B]display[/B]([I]boolean[/I]) Sets whether to echo or print the function's results. Valid values:[LIST]
[*]1 (True - Default) — echo results
[*]0 (False) — return results for use in PHP[/LIST][B]override_cache[/B]([I]boolean[/I]) Overrides the cache. If true, the cache will be ignored. There is no need for a false value since that is default, but it is available. Valid values:[LIST]
[*]1 (True)
[*]0 (False)[/LIST][B]language[/B]([I]string[/I]) The language in which to display plugin. The language must match the name of the mo file in the languages directory w/o the extension. IE: deutsch.mo would be simply language=deutsch.
[*]Optionally adjust the output with CSS as items in the output will be surrounded by <span>'s with these classes:
[B]weather_title[/B]Controls the weather item titles (i.e. Temp, Humidity, Wind, etc.).[B]weather_info[/B]Controls the weather item values. Example CSS:
.weather_title {
font-weight: bold;
}[/LIST]
Alles anzeigen
Jetzt hab ich in der sidebar.php das hier stehen:
<?php if (function_exists('WeatherIcon')) : ?>
<li>Remscheid
<ul><?php WeatherIcon('station=EDDL'); ?></ul>
</li>
<?php endif; ?>
Ergebnis: http://img138.imageshack.us/img138/4848/weathericonbildhu0.jpg
Könnt ihr den Fehler entdecken?
DeYesila