-
Posts
253 -
Joined
-
Last visited
-
Days Won
2
nikola last won the day on June 14 2014
nikola had the most liked content!
Profile Information
-
Gender
Male
-
Location
Zagreb, Croatia
Recent Profile Visitors
7,844 profile views
nikola's Achievements
Sr. Member (5/6)
221
Reputation
-
This is a new version of Yahoo! Weather module for ProcessWire, old version of the module can be found at this link. The module has been rewritten, new options have been added alongside with caching from the API (Yahoo! API allows 20.000 calls per hour when using free version, so it comes in handy if your site has a lot of page hits). I've also updated icons in the package (you can easily swap them with yours in module icons folder). You can grab the module from the Modules page or directly from Github link. Update 1.0.1 Yahoo changed their forecast API URL (http://xml.weather.yahoo.com/ instead http://weather. yahooapis.com/), tiny update in Github repo. How to use You can call the module in two different ways: This is a basic call that renders the module, use this if you want only one instance of the module shown with WOEID set in the module settings. <?php echo $modules->get('MarkupYahooWeather')->render(); ?> If you want to show multiple instances of the module, call it this way: <?php $weather = $modules->get('MarkupYahooWeather'); $weather->woeid = 12587912; // Decatur, USA echo $weather->render(); $weather->woeid = 44418; // London, United Kingdom echo $weather->render(); ?> Options This module has the following options: Yahoo! Weather WOEID WOEID (Where On Earth ID) is an unique identifier for each city, you can easily find WOEID by using this site: http://woeid.rosselliot.co.nz. Default = Zagreb Set Locale Sets PHP locale, needed for localized date display. Default = en_US.UTF-8 Set Encoding Converts international date names to right format. Default = ISO-8859-1 Date Format Sets desired date output, formatted with PHP strftime function. Default = %A, %d.%m.%Y. Cache Time Cache time in minutes, caches .xml file(s) retrieved from Yahoo! API and pulls the data locally. Default = 5 minutes Display temperature in Fahrenheit instead of Celsius? Show weather conditions in Celsius or Fahrenheit scale (temperature: C/F; wind speed: km/h, mph; sunrise and sunset: 24h, am/pm). Show 5 day forecast below current weather forecast? Shows extended 5 day forecast, if unchecked, only current weather will be shown. Default = Checked Show wind direction and speed? Shows wind direction and speed. Default = Checked Show sunrise and sunset time? Shows sunrise and sunset time. Default = Checked Autoload script and stylesheet? Renders script and stylesheet during page render, if you prefer to include them manually, turn this option off. Default = Checked Load script in the bottom of the page? If "Autoload script and stylesheet" option is checked, you can select where script should be rendered automatically, before the end of head or body tag. Default = Unchecked Delete Weather Cache Deletes locally stored and cached .xml file(s) from Yahoo! API for all instances of the module.
-
Thanks, mr-fan, I had a look on your pull request and it looks fine. I'll merge it these days I'm planning to update a module a little bit these days, I have to change the icons to newer ones (maybe weather icon font...)
-
Glad you like it mr-fan! I've merged your pull request into the module.
-
Merry Christmas from Zagreb! One quick picture from the main square, check out other if you're interested
-
@Mike - I plan to update the theme really soon, I've also started using PW 2.5+ so you shouldn't wait too long
-
Hey horst, thanks for catching that up! I'll fix it... It's hard sometimes to spot every bug when you change something in the css (because you have to check it throughout the system...). Now I'm going to prepare for today's football match against Mexico (I hope we'll go to the second round )
-
Fixed: Repeaters are excluded from unpublished pages that render in modal window. Changes commited.
-
Oops, I've overlooked the status of repeater fields, I'm going to fix it as soon as possible...
-
New updates to the theme - I've added a counter next to username that counts unpublished pages and shows them in modal window. Check out the first post for changelog.
-
The problem with theme switching indeed exists on latest dev versions, I'm also using PW for production in Windows environment and in 2.4.0 switching is working fine. I'll check every suggestion and posted question when I get home from holiday (tommorow) because I don't have my working computer with me...
-
@Manfred62 You have to uninstall Default Admin Theme from Core modules section before/after installing Modesta Admin Theme and it should work fine. I'll update the readme with instructions. New theme updates coming after this weekend
-
@Wayne I've fixed those CSS issues (and some other I've spotted along ).
-
@horst I've left the panel switch action as it is (you can click on the switch button or the document body to close it), but I've removed trigger from "Back to top" button - it doesn't close the panel when sliding up to the top of the page. @mr-fan Template selection drop down ("Add new" on the right side) is default action in PW 2.4 and up, it lets you assign templates to that drop down for quicker access - so no need to put it in the sidebar panel (anyway it's quicker to select template from drop down then opening sidebar panel and then selecting the desired template). @diogo There's no easy way for displaying formatted date (for all possible locale scenarios) so I've added warning if iconv extension is not loaded and it uses basic strftime without any conversion in that case, but most servers have iconv loaded so it's just for a few of scenarios where this extension is not loaded. ---- I've also made changes to the theme that reflect changes in PW 2.4.4, but I'm currently setting up the dev branch where I'll commit that version.
-
diogo, I've used only iconv for date formatting because of inconsistencies in showing the right diacritics (for instance Croatian) on Windows and Linux platforms. I have already thought about that problem and I'll try to solve it in another way rather than adding a warning about missing extension.