[Mediawiki-l] Setting user preferences at global level
Dave Sigafoos
davesigafoos at sanmar.com
Thu Jun 14 14:03:28 UTC 2007
I would start here
http://www.mediawiki.org/wiki/Category:MediaWiki_technical_documentation
There is a section for configuration etc. Not sure it is the answer you
are looking for specifically
Some (if not all) like
# Pre-expire some toggles so they won't show if disabled
$this->mUsedToggles[ 'shownumberswatching' ] = true;
$this->mUsedToggles[ 'showupdated' ] = true;
$this->mUsedToggles[ 'enotifwatchlistpages' ] = true;
$this->mUsedToggles[ 'enotifusertalkpages' ] = true;
$this->mUsedToggles[ 'enotifminoredits' ] = true;
$this->mUsedToggles[ 'enotifrevealaddr' ] = true;
$this->mUsedToggles[ 'ccmeonemails' ] = true;
$this->mUsedToggles[ 'uselivepreview' ] = true;
Were found in includes\SpecialPreferences.php
If you have a great editor (like Textpad) do a 'find in files' and one
of the strings .. This is one of the things I do when a new interesting
var/func etc is discussed.
Hope this Helps
DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos at sanmar.com
-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Jack Eapen
C
Sent: Thursday, June 14, 2007 6:56
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Setting user preferences at global level
Thanks Jim and Paul for the quick replies. I'm new to MW. Where can I
see all the user options like enotifwatchlistpages,enotifusertalkpages,
etc.?
Also, from Paul's email I understood how to replace the values. But as
Jim said, options like watchcreations is not there in the table by
default and I need to insert?
What's the SQL for that? I'm using phpmyadmin and I cant see values in
blob columns :(
Regards,
Jack
-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Jim Wilson
Sent: Thursday, June 14, 2007 5:52 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Setting user preferences at global level
Hello Jack,
That information you require is stored in the 'user_options' column of
the
'user' table in your database. It's a blob containing a newline
separated
list of keyword/value pairs. It looks something like this (lines
removed
for brevity):
-----------------------------
quickbar=1
underline=2
...
enotifwatchlistpages=0
enotifusertalkpages=1
enotifminoredits=0
enotifrevealaddr=0
...
language=en
searchNs0=1
-----------------------------
Regarding "Email me when watchlist pages change": the particular field
you're looking for (I believe) is 'enotifwatchlistpages', which you'd
want
to set to 1 for all users.
Regarding "Add pages I create to my watchlist": the field you want is
'watchcreations', which should also be set to 1. Unlike
'enotifwatchlistpages', this value is not in the auto-generated
user_options
blobs by default - so you'll need to add a line for it.
Hope this helps!
-- Jim R. Wilson (jimbojw)
On 6/14/07, Jack Eapen C <jackec at suntecgroup.com> wrote:
>
>
> Hi
>
> Our wiki is running over the intranet. Authentication is done via LDAp
> plugin.
> How can we set the preferences for all users at one go- like "Add
pages I
> create to my watchlist", "Email me when pages in my watchlist
changes", etc.
> to true for all users at one go?
>
> Also I want to treat all emailids as verified, without the
verification
> process. How can that be achieved?
>
> Regards,
>
> Jack Eapen C
> SunTec Knowledge Centre
>
>
------------------------------------------------------------------------
------------
>
>
>
>
> This electronic mail (including any attachment thereto) may be
> confidential and privileged and is intended only for the individual or
> entity named above. Any unauthorized use, printing, copying,
disclosure or
> dissemination of this communication may be subject to legal
restriction or
> sanction. Accordingly, if you are not the intended recipient, please
notify
> the sender by replying to this email immediately and delete this email
(and
> any attachment thereto) from your computer system...Thank You
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
This electronic mail (including any attachment thereto) may be
confidential and privileged and is intended only for the individual or
entity named above. Any unauthorized use, printing, copying, disclosure
or dissemination of this communication may be subject to legal
restriction or sanction. Accordingly, if you are not the intended
recipient, please notify the sender by replying to this email
immediately and delete this email (and any attachment thereto) from your
computer system...Thank You
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list