-
AuthorPosts
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 25, 2016 at 8:35 am #904598Hi,
It’s not easy to make a custom work on that, you can find the add to new icon from mod_jayahoo_weather module
modules/mod_jayahoo_weather/helper.php with public static function getIcon($code) function
modules/mod_jayahoo_weather/asset/weather-icons/
/modules/mod_jayahoo_weather/mod_jayahoo_weather.php with $doc->addStyleSheet(JUri::base(true).’/modules/’.$module->module.’/asset/weather-icons/css/weather-icons.min.css’);Regards
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 25, 2016 at 1:49 pm #904665I would also like to know why suddenly the module is showing 10 days forecast instead of the original 5 days and how to go back to 5 days.
Thanks.
March 26, 2016 at 1:41 am #904883OK,
I will not venture to try to make this modification,is the suggestion to add these icons link that suggested above for the next update of the module, if possible with the image of baromether in pressure atmospheric
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 28, 2016 at 5:17 am #905304I would also like to know why suddenly the module is showing 10 days forecast instead of the original 5 days and how to go back to 5 days.
You can use my solution here to go back to 5 days from mod_jayahoo_weather module
Open modules/mod_jayahoo_weather/tmpl/accodion.php file find and change
<?php foreach($info->item->forecast as $forecast): $date = new JDate($forecast->date); $forecast->day = $date->format('D'); $forecast->date = $date->format(JText::_('DATE_FORMAT_LC')); ?>
to
<?php $i = 0; foreach($info->item->forecast as $forecast): if ($i==5) { break; } $date = new JDate($forecast->date); $forecast->day = $date->format('D'); $forecast->date = $date->format(JText::_('DATE_FORMAT_LC')); $i++; ?>
2 users say Thank You to Ninja Lead for this useful post
March 28, 2016 at 12:15 pm #905489It worked, thanks
how to add the icon of the barometer that suggested above, if there is some simple tips I thank you.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 28, 2016 at 12:20 pm #905493Thank you Ninja Lead. Worked perfectly.
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 3 voices, and was last updated by ssinha 8 years, 7 months ago.
The topic ‘icons changed in Module JA Yahoo Weather’ is closed to new replies.
icons changed in Module JA Yahoo Weather
Viewing 6 posts - 1 through 6 (of 6 total)