Welcome Visitor, Please Login or Register Now Sunday, May 19, 2024 09:45 PM 
New Topic   New Reply
Search for:
Author Message
mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 05-19-24 09:45 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
Back to top
Weather Widget Edit Delete Reply with quote Quote
First Post Posted on: 01-30-20 07:51 AM last post first post

The weather widget can be called from any template or another widget, currently used on the Frontpage.html template using the code:

[ widget::Weather(location="[ plugin::UserZip],[ plugin::UserCity],[ plugin::UserState],[ plugin::UserCountry]", default="37909", unit="f", cache="60") ::]

you can pass to the widget the location and a default location, the temperature unit, and the cash time.

The location is used if the user is logged in, the default location is used if the user is not logged in or no address set in the location.

Both the location and the default variables can be either the full location address cit, state, country, etc, or zip code.

The plugins above will be filled with the current user information if logged in and will be empty if no user is currently logged in.

This allows the widget to display the current logged in user are weahter information or a default location weather for none logged in users.

The cash variable (in minutes) set the time to cash results instead of getting the  weather informatin from the provider site (google, yahoo, etc), zero value for the

cash disable the cash. Set this to a resonable time (in minutes) to avoid blocking by the weather providers thinking it may be an attack to their systems.

The unit sets the temperature unit either "c" for Celsius or "f" for Fahrenheit.


Mewsoft Support

Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print