Thank you. This is exactly what I was looking for. This will probably
help me with some other plugins as well.
From: p dont think [mailto:pdontthink@...]
Sent: Friday, May 30, 2003 7:51 PM
To: 'Starkey, Jamuel, NLNS'; 'Steven Ting'
Subject: RE: [SM-PLUGINS] Weather - Create Default Setting
FYI, folks, regardless of which plugin you are using, any prefs that you
want to set as defaults (in this case, the request was for a specific
zip code and weather settings) can be inserted into the default_prefs
file and viola!
1) Log into your own account and set up the plugin as you like (in
this case, set up a zip code and enable the desired weather display
items and box size)
2) open your personal prefs file in your data directory and find the
relevant settings (in this case, a line that looks similar to what's
(24°C)\Mostly Cloudy\\S 12 MPH\53°F (12°C)\57 %\10.00
mi.\29.40" (995.3 mb)\3600\1\\\\\\\\\\1\\
3) copy this line into the default_pref file in the data directory,
and anyone who has not yet logged in will get this preference as default
Please note that the users must not have logged in before in order for
this to work. If this is not possible, you have to either write a
quickie sed script that adds that line on to the end of each .pref file
or work with the plugin author to ask for another solution.
> > With a mild patch to TWC Weather 1.2 beta 1 you can more or less
> > implement the feature that you request.
> > Right now/as is the Admin can create a template in config.php
> > twc_weather basically how you described. So currently that template
> > will then populate all of the display options/defaults but
> > intentionally
> > blanks out a default location, but the location is not automatically
> > generated--the user has to still do the Add.
> > If you're still interested I can send you a one line patch to get
> > alias/location to pass thru as part of the template--keep in mind
> > still need to automate the creation of the location for the user . .
> > LMK what you think.
> > Cheers,
> > JPS
> > > -----Original Message-----
> > > From: Steven Ting [mailto:sting@...]
> > > Sent: Friday, May 30, 2003 8:44 AM
> > > To: squirrelmail-plugins@...
> > > Subject: [SM-PLUGINS] Weather - Create Default Setting
> > >
> > >
> > >
> > > Is there a way to create a default setting that all users can use
> > > without setting it up? I'm looking for a way where there
> > is a default
> > > zip code that will be checked with the following options.
> > >
> > > Temperature
> > > Conditions
> > > Wind
> > > Humdity
> > > Feels Like
> > > Location
> > >
> > > And a Box width of 130