Page 1 of 5

[Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 7:10 am
by topdown
Requires PHP5 or higher.
It also requires Curl support.

MOD Title: phpBB3 gWeather
MOD Author: topdown
MOD Description:
  • ACP control, On/Off, Default Location, and Permissions (In Development)
  • Location comes from a Custom Profile field in the users UCP or uses the Default location if not set or is a Guest and guests have permissions.
  • Location can be:
    • Zipcode
    • Major city
    • City State
    • City Country
    • All countries that I have tested work
  • Will have a stand alone gWeather page with user input, if enabled via ACP
  • Will have a template with a block that can be included in any phpBB3 template.
This is also OOP, for those that know what that is. ;)

You can and SHOULD follow the SVN here
phpBB3 gWeather SVN trunk
MOD Version: 0.0.1
MOD Status: BETA

Tested on phpBB version: 3.0.5
Released: 06 Jul 2009

Installation Level: easy
Installation Time: ~ 1 Minutes

Demo: Click here to visit the demo website
A none logged in user has the option to check their weather also via the stand alone page
Demo http://webmastersunited.org/support/weather.php

Download the Beta
Remember, this is a Beta version and first release and should not be run on a live site.
The ACP section and permissions are in development yet.

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 8:53 am
by darkonia
nice mod, works like a charm, but can you make the posibiltie for the user to change from fahrenheit to Celsius?

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 9:52 am
by NicksNet
hello,

thanks for this mod, but i have an error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in .../includes/classes/weather_location.php on line 30

what can do to fixed it?


Nick

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 3:39 pm
by muggins
I am impressed!

Would it be possible to use GeoCode so I can pull my member's locations from their Phoogle Map data as latitude/longitude?

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 5:38 pm
by topdown
NicksNet wrote:hello,

thanks for this mod, but i have an error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in .../includes/classes/weather_location.php on line 30

what can do to fixed it?


Nick
My guess is that your server is running Less that PHP 5.
I forgot to mention that. I guess there are still some people running later versions.

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 5:43 pm
by muggins
I have it installed and just fine, thank you! :D

One more thought, though -- How can I add a link in a member's profile and viewtopic pages so other members can see what the weather is for someone?

That shouldn't be tough... :?

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Jul 06, 2009 11:01 pm
by topdown
darkonia wrote:nice mod, works like a charm, but can you make the posibiltie for the user to change from fahrenheit to Celsius?
The API that the weather is actually coming from does not provide it, so
I have created a function in my development copy to Add Celsius temps to the extended forecast.
It will be in the next release.
muggins wrote:I am impressed!

Would it be possible to use GeoCode so I can pull my member's locations from their Phoogle Map data as latitude/longitude?
Currently no, but I think the API provides input for lat/log so I will look into it.
muggins wrote:I have it installed and just fine, thank you! :D

One more thought, though -- How can I add a link in a member's profile and viewtopic pages so other members can see what the weather is for someone?

That shouldn't be tough... :?
It currently doesn't work that way, it uses the ID of the person viewing it.

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Tue Jul 07, 2009 4:47 pm
by Geisthund
I have created a function in my development copy to Add Celsius temps to the extended forecast.
Hi

Look forward to the Celsius option.
Maybe users could select whether they want C or F displayed via a profile setting.

My forum users love the mod!!!

Cheers
Gareth

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Tue Jul 07, 2009 7:38 pm
by muggins
topdown wrote:
muggins wrote:I have it installed and just fine, thank you! :D

One more thought, though -- How can I add a link in a member's profile and viewtopic pages so other members can see what the weather is for someone?

That shouldn't be tough... :?
It currently doesn't work that way, it uses the ID of the person viewing it.
So the link would have to reference another user_id. ;)

Edit: That sounded a bit flippant, sorry. There ought to be an easy way to call 'weather.php' with an argument consisting of the user_id.

I'll try to fool with it, but I don't have much time or brains... :mrgreen:

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Sun Aug 02, 2009 12:24 am
by muggins
This mod has been removed from my board, and will not be reinstalled.

The message "This place does not exist" replaced the index page content frequently, but randomly, and it completely prevented persistent logins for several of my members.

I removed Google Analytics code from my site and went to AWstats for similar reasons. I don't think the fault is with the mod developer, but with Google as a content provider.

Bummer.

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Sun Aug 02, 2009 12:35 am
by topdown
muggins wrote:This mod has been removed from my board, and will not be reinstalled.
That's a bit harsh for a Beta mod :shock:

hmm, I haven't had anyone else mention it.
I haven't seen it happen on my site at all either.
I hope someone else has had this issue so I can narrow the problem down a bit.
It maybe because the caching hasn't been implemented yet also.

Thanks for the report. I'll keep a closer eye on it.

By any chance was it a specific place it hung on, or was it purely random?
I notice that something on your site keeps the page endlessly loading in FireFox.

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Sun Aug 02, 2009 2:25 pm
by muggins
Sorry, topdown. The bug had been bothering me, and it took a few days to track it down to your mod. It seemed completely random. Only two or three of my members had issues with logins, and none ever reported the error message. I saw it probably ten times in the couple of weeks that the gWeather mod was installed...

What do you mean by endlessly loading? Sometimes my large background images hang, and I have never figured out why. But I am a n00b, anyway. :|

Edit: My RGB background images were on average 15Mb in memory. :oops: I will convert them to indexed. N00b, indeed...

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Aug 03, 2009 5:48 pm
by jimcarrel
Just installed this mod, it works well, simple install too.

For my tastes, it seems finished ( I know, others always want more) just polish it and get it in the ModDB. ;)

( I know, others always want more)

The only other thing I would ask for is , instructions for getting it on the Board3 Portal

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Aug 03, 2009 5:50 pm
by darkonia
i like the mod, but i dont want it on my index, i want it only on a seperate page, but on this update from you topdown i wait, how you said on startrek.com

Re: [Beta]phpBB3 gWeather 0.0.1

Posted: Mon Aug 03, 2009 7:23 pm
by topdown
To add it to a portal just use the instructions for the forum index.
It should be a template include and invoking the class

@ darkonia
Just don't do the instuctions for editing the index.php and index_body.html.
It comes with a stand alone page.