Hey Jungs,
hab mir mal der Wathericon von Viper installiert.
und das klapt auch richtig gut ! Nic’s Welt
unten rechts !
nur will ich jetzte eine Seite erstellen wo alle INformationen drauf sind nicht nur die 5 !
ZitatAlles anzeigenWeatherIcon Usage Information
- TODO: Add screenshots and/or instructions for activation via WordPress Sidebar
- TODO: Add screenshots and/or instructions for using WP-Dash plugin
- To Add Manually: add a snippet of code like this wherever you want the weather icon to appear (usually sidebar.php of your template):
<?php if (function_exists('WeatherIcon')) : ?>
<li>Regina, Saskatchewan
<ul><?php WeatherIcon(); ?></ul>
</li>
<?php endif; ?>
- Function Parameter Reference
WeatherIcon( ARGUMENTS_STRING, OPTION_ARRAY);- Description of the ARGUMENTS_STRING parameters (see the WordPress Codex for information on how to pass arguments to a function in a query string format).
location (string) The name of a location preset (see the Preset Locations section above for a list of valid names). Defaults to default preset location.station (string) The 4-letter ICAO airport indentifier code to display the weather for. Find a location code here: Meteorological Products Processed At The NWSTG. Defaults to ICAO of the specified location.latitude (string) The latitude value used to calculate sunrise/sunset times. Defaults to the location's latitude.longitude (string) The longitude value used to calculate sunrise/sunset times. Defaults to the location's longitude.gmt_offset (string) The gmt offset is used to calculate sunrise/sunset times. Defaults to the location's gmt offset.dst (boolean) The dst indicator is used to calculate sunrise/sunset times. Defaults to the location's dst indicator. Valid values are TRUE or FALSE.language(string) 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. Defaults to the language of the specified location.before(string) Text to display before each weather item description (i.e. the icon, the temperature, the wind, etc.). Defaults to <li>.after(string) Text to display after each weather item description (i.e. the icon, the temperature, the wind, etc.). Defaults to </li>.header_before(string) Text to display before the location name. Defaults to <b>.header_after(string) Text to display after the location name. Defaults to </b>.debug(boolean) Overrides global debug values. If true, all debug information (cache & condition) will be displayed, If false, all debug information will be supressed. Valid values are TRUE or FALSE.showall(boolean) Overrides global display options. If true, all output options will be activate. If false, the normal display options will be used (in the order specified). Valid values are TRUE or FALSE.showAllLocations(no value required) Loops through all defined locations and outputs their weather information in order.display(boolean) Sets whether to echo or print the function's results. Valid values are TRUE or FALSE.- Description of the OPTIONS_ARRAY parameters. Parameters can be set like array('parameter1'. 'parameter2', etc) and their order in the array is the order in which they are displayed. Valid parameters are:
display_locname display_icon display_temp display_heatindex display_windchill display_humidex display_dewpt display_wind display_humidity display_barometer display_conditions display_clouds display_cloudsdetailed display_visibility display_updatetime display_sunrise display_sunset
das steht in der Info!
ich hab es schon irgenwie probiert bin aber kein php ass !
kann mir einer helfen wie der php code aussehen muss das der alle angaben anzeigt?
exec php hab cih schon drauf !
danke
mfg Niklas