Welcome, Guest. Please Login or Register.
November 29, 2024, 03:27:31 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1 & 1.5.X] Weather Forecast Module « previous next »
Pages: [1] 2 3 4 Reply Ignore Print
Author Topic: [Done 1.4.1 & 1.5.X] Weather Forecast Module  (Read 24044 times)
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

[Done 1.4.1 & 1.5.X] Weather Forecast Module
« on: June 10, 2003, 12:36:59 AM »
Reply with quote

This mod puts a weather forecast area into your Board.

Weather Forecast

Features:
  • Admin can choose the default city, temperature scale(F or C), cache time, display template and placement of weather info.
  • Admin can also turn off weather info completely.
  • User can select their own city and temperature scale(F or C).
  • User can choose to turn off weather for themself.
Cities:
There are literally thousands of cities to choose from countries all over the world.  To minimize the size of the weather mod, only Japan was included.  For the rest of the city files, please download the weather-cities.zip  from the same url.  All the city files should go into the "cities" folder that is inside the "weather" folder that the install creates at your board root (ex /yabbse/weather/cities).

Cache time:
To speed things up (and reduce load on weather server), weather info is cached for between 1 and 4 hours as selected by the admin. If installing by hand, the cache directory must be made writeable (chmod 777)

Templates:
The admin can change the way the weather is displayed by modifying or making a template.  Two templates have been included (wide.tmp and slim.tmp).  Use one of those as an example to create your own.  The actual creation of templates is not something I will give you much help on.

Weather Placement:
Admin can choose to either display the weather info in the Info Center already built into the board or can choose to place it somewhere in the template.  To place it elsewhere in the template, select "Template" for Placement and then put <yabb weather> anywhere in your board template you want.
The weather is always only show on the main board index.

The screen shot shows the Wide template (standard weather forecast format) in the Info Center placement, the Slim template that was placed in the right gutter of the board template using <yabb weather>, the "Weather" section of the admin's Mod Settings pages and the user selectable options in the Profile.

The Weather mod should be installed in a folder called weather located at your board root (ex /yabbse/weather/) at the same level as Sources.

Enjoy!

I should mention that be sure to back up your data before applying this, or any, mod.  Everything I post works fine in my YaBB installation but your milage may vary.

-Jack
« Last Edit: June 11, 2003, 02:15:59 PM by Jack.R.Abbit » Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
james1979
Noobie
*
Posts: 14


I'm a llama!

Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #1 on: June 10, 2003, 03:53:51 AM »
Reply with quote

how bout a screen shot

here is mine
http://www.supermod.org/attachments/jamesweather.gif
anywhere in the world
« Last Edit: June 10, 2003, 04:01:08 AM by james1979 » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #2 on: June 10, 2003, 04:13:42 AM »
Reply with quote

Quote from: james1979 on June 10, 2003, 03:53:51 AM
how bout a screen shot

here is mine
http://www.supermod.org/attachments/jamesweather.gif
anywhere in the world
Would be a tad cooler if it had the look of the Boardindex.
Logged

Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #3 on: June 10, 2003, 04:03:51 PM »
Reply with quote

I added a screen shot.... but with the template system, you can make it look how ever you wish... one template looks similar to that (since its pretty standard way to display the weather), but is more like the Info Center look.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #4 on: June 10, 2003, 06:25:37 PM »
Reply with quote

It would be nice if this was integrated into the calendar somehow :)

Utilizing the calendars layout.
Logged

To the world - you are just one person, but to one person you are the world!
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #5 on: June 10, 2003, 11:18:59 PM »
Reply with quote

I'm not sure if I'm gonna use this one or not. I was going to try it on my Lycos board, but I got a message saying something about URL file access being disabled in the server config (I hate Lycos!)... I may try it on my Spaceports board (recently installed to test out [Unknown]'s new phpBB-yabb se converter).
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
truecrimson
Noobie
*
Posts: 18


The Llama has been assimilated.

WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #6 on: June 11, 2003, 05:43:43 AM »
Reply with quote

Wonderful mod, excellent packaging, easiest, and smoothest install so far.  Only suggestion might be more explanation of where to unzip the additional cities, but it easy enough to figure out, and truely inconsequential compared to the overall qaulity of this mod.

Haven't had an install this smooth since the main forum, and it was one of the reasons I chose YaBB SE.  
Logged
SNC
Noobie
*
Posts: 22


ICQ - 136090777 WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #7 on: June 11, 2003, 01:47:04 PM »
Reply with quote

Are there install instructions somewhere?
Logged
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #8 on: June 11, 2003, 02:10:00 PM »
Reply with quote

Instructions on how to install mods (any mod) are located several places on this board.

If you are doing a hand install, you'll want the .zip file.  Follow the search/action steps spelled out in the .mod file for your version of yabb.

If you are doing a BoardMod install, you'll want the .zip file.  Follow the install instructions as spelled out by BoardMod.

If you want to do a YabbPak install, you'll want the .mod.yp file.  Follow the install steps that PackMan walks you through.

Other tips/hints for installation are in the first post.

-Jack
« Last Edit: June 11, 2003, 02:15:28 PM by Jack.R.Abbit » Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #9 on: June 11, 2003, 02:19:14 PM »
Reply with quote

One thing though... The DB modification file included was meant for YaBBPak, so when you try to modify the DB, you get errors. To fix this, simply add the following to the beginning:

include_once("Settings.php");
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name) or die(mysql_error());


This will allow you to connect... Jack - I recommend you include a regular dbmod file that follows the layout of the others. This just makes things easier.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #10 on: June 11, 2003, 02:31:06 PM »
Reply with quote

I guess I could do that... but from the begining I have given 100% support to YabbPaks.  I write YabbPaks because I believe in the system.  I don't really "support" anything else.  I've never even seen BoardMod... but I try to give assistance when I can.  The .zip file is 99.9% of what you need to do it some other way and I really only provide it out of courtesy.  Maybe that makes me a jackass... but no more so than those that write mods and don't provide a YabbPak at all.   ;D

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #11 on: June 11, 2003, 02:52:42 PM »
Reply with quote

Ok... I understand. I do agree that YaBBPaks are much more convenient than mods, but not everyone can use these, so I think it's best to provide support for both mods and YaBBPaks.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #12 on: June 11, 2003, 03:08:19 PM »
Reply with quote

Hmmm... While it appears that Spaceports is less restrictive, I keep getting a message of "php_hostconnect(): connection failed" on some line in getPackage.php, so I don't know what the deal is...
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #13 on: June 11, 2003, 03:16:09 PM »
Reply with quote

This is happening when you are trying to download the YabbPak?  My server is up and running just fine.  I've never heard of Spaceports but perhaps they are not keen on server to server transfers.  You can upload the YabbPak yourself.  This is what I do usually anyway.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[Done 1.4.1 & 1.5.X] Weather Forecast Module
« Reply #14 on: June 11, 2003, 03:44:03 PM »
Reply with quote

Tried that, got a safe mode error message, so I installed it by hand. Now I can't even get to my board (404 error)... I think Spaceports doesn't like me!
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Pages: [1] 2 3 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1 & 1.5.X] Weather Forecast Module « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.044 seconds with 20 queries.