joomla学习之mod_gk_weather Modules

来源:互联网 发布:大数据开发主要做什么 编辑:程序博客网 时间:2024/06/05 12:42
上午自学了joomla的mod_gk_weather和JB_SlideShow Modules.

在安装完mod_gk_weather并在后台启用后,前台显示了错误信息:“cURL extension is not available on your server”,查了一下才知道,因为我用的是XAMPP这个集成的环境,默认curl并没有启用。

启用方法:

打开xampp\php\php.ini 文件,查找;extension=php_curl.dll去掉行首的分号即可。然后重新启动Apache.

当然显示的各项参数是可以在后台进行设置的。

还有一点要注意的就是后台的Location和Full city name参数。如图1

joomla学习之mod_gk_weather <wbr>Modules图1

Full city name只写上要查询的城市名称即可,Location要写详细的地址(本人认为应该具体写到Full city name这个地方。刚开始我在Full city name写入Beijing,在Location中写入China,这样会出现错误:An error occured - you set wrong location or data for your location are unavailable.而如果在Location中输入Beijing或者是Beijing,China就会正确显示北京的天气预报了。

所以如果你想显示Philadelphia这个地方的天气预报,就要在Full city name里面写上Philadelphia,在Location中写上Philadelphia,pennsylvania,USA前台显示效果如下图2所示。

joomla学习之mod_gk_weather <wbr>Modules图2