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
Jack
This is something I am doing through SQL with our three wikis.
Although I am sure it isn't quite the 'wiki-way' we have chosen to prevent access to Special:Preferences and to control preferences through other means. This is primarily to try to ensure a consistent UE and to prevent preference related issues.
For example, if you allow users to turn off the toolbar (toolbar=0) then this causes the Google Maps extension to become invisible to them!
For most of the settings we change them by altering the relevant setting within the user_options BLOB inside the user table.
UPDATE user SET user_options=REPLACE(user_options,"old_value","new_value");
If you want to do this for a specific user just add 'WHERE user_id=xx' to the end.
For a few flags we provide the user with anther page where they can make some selections within our Drupal platform. These are also effected though a standard SQL statement.
When a new user is created we have a set of 75 settings which are written automatically into the user's user_options field giving them our standard starting point.
Hope some of this helps.
Paul
On 6/14/07 7:53 AM, "Jack Eapen C" jackec@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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?
Can't do this with the plugin (currently). Maybe there is a way to do this through other means? You may be able to modify the plugin, adding the settings you want into initUser, and updateUser methods.
Also I want to treat all emailids as verified, without the verification process. How can that be achieved?
Turn off email verification (don't remember the exact MediaWiki option), and set:
$wgLDAPRetrievePrefs = array("domain"=>true)
V/r,
Ryan Lane
Jack Eapen C 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?
You can set $wgDefaultUserOptions to the preferences you want. These will apply only for new users (and anons). Of course, then your users may want to change them for something which fits better for them.
mediawiki-l@lists.wikimedia.org