[Mediawiki-l] How do I change the default skin for users thatareboth logged in as well as not logged in?
Isaac Gonzalez
youngi at comcast.net
Tue Dec 20 02:05:25 UTC 2005
thanks alot, I'll give this a whirl....on mw 1.5.3.
-Isaac
----- Original Message -----
From: "Alistair Johnson" <JohnsonA at rembrandt.co.nz>
To: "MediaWiki announcements and site admin list"
<mediawiki-l at Wikimedia.org>
Sent: Monday, December 19, 2005 5:46 PM
Subject: RE: [Mediawiki-l] How do I change the default skin for users
thatareboth logged in as well as not logged in?
> Here's a script we use to copy preferences from one user to all users for
> MW
> 1.4.x. YMMV.
>
> mysql_connect($wgDBserver,$wgDBuser,$wgDBpassword);
> @mysql_select_db($wgDBname);
> $query="SELECT * FROM " . $wgDBprefix . "user WHERE LOWER(user_name)
> =
> '" . strtolower($name) . "'";
> $result = mysql_query($query);
> $row = mysql_fetch_array($result, MYSQL_ASSOC);
> mysql_close();
>
> mysql_connect($wgDBserver,$wgDBuser,$wgDBpassword);
> @mysql_select_db($wgDBname);
> $query="UPDATE " . $wgDBprefix . "user SET user_options = '" .
> $row[user_options] . "'";
> $result = mysql_query($query);
> mysql_close();
>
> Al.
>
> -----Original Message-----
> From: Rob Church [mailto:robchur at gmail.com]
> Not a quick one, that I know of. A custom PHP script might do it.
>
> On 20/12/05, Isaac Gonzalez <youngi at comcast.net> wrote:
>> is there a way to change to user preferences for all users?
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list