[Beta]phpBB3 gWeather 0.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
topdown
Registered User
Posts: 635
Joined: Wed Sep 19, 2007 5:16 pm
Location: NE Wisconsin
Name: Jeff Behnke
Contact:

[Beta]phpBB3 gWeather 0.0.1

Post by topdown » Mon Jul 06, 2009 7:10 am

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.
Last edited by topdown on Thu Sep 24, 2009 2:02 am, edited 3 times in total.

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by darkonia » Mon Jul 06, 2009 8:53 am

nice mod, works like a charm, but can you make the posibiltie for the user to change from fahrenheit to Celsius?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

NicksNet
Registered User
Posts: 55
Joined: Sat Apr 04, 2009 1:16 pm

Re: [Beta]phpBB3 gWeather 0.0.1

Post by NicksNet » Mon Jul 06, 2009 9:52 am

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
Sorry, my English isn't the best...

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by muggins » Mon Jul 06, 2009 3:39 pm

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?
Muggins

User avatar
topdown
Registered User
Posts: 635
Joined: Wed Sep 19, 2007 5:16 pm
Location: NE Wisconsin
Name: Jeff Behnke
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by topdown » Mon Jul 06, 2009 5:38 pm

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.

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by muggins » Mon Jul 06, 2009 5:43 pm

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... :?
Muggins

User avatar
topdown
Registered User
Posts: 635
Joined: Wed Sep 19, 2007 5:16 pm
Location: NE Wisconsin
Name: Jeff Behnke
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by topdown » Mon Jul 06, 2009 11:01 pm

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.

Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

Re: [Beta]phpBB3 gWeather 0.0.1

Post by Geisthund » Tue Jul 07, 2009 4:47 pm

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

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by muggins » Tue Jul 07, 2009 7:38 pm

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:
Muggins

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by muggins » Sun Aug 02, 2009 12:24 am

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.
Muggins

User avatar
topdown
Registered User
Posts: 635
Joined: Wed Sep 19, 2007 5:16 pm
Location: NE Wisconsin
Name: Jeff Behnke
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by topdown » Sun Aug 02, 2009 12:35 am

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.

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by muggins » Sun Aug 02, 2009 2:25 pm

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...
Muggins

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [Beta]phpBB3 gWeather 0.0.1

Post by jimcarrel » Mon Aug 03, 2009 5:48 pm

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
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by darkonia » Mon Aug 03, 2009 5:50 pm

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
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

User avatar
topdown
Registered User
Posts: 635
Joined: Wed Sep 19, 2007 5:16 pm
Location: NE Wisconsin
Name: Jeff Behnke
Contact:

Re: [Beta]phpBB3 gWeather 0.0.1

Post by topdown » Mon Aug 03, 2009 7:23 pm

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.

Locked

Return to “[3.0.x] MODs in Development”