How can I, as a MediaWiki admin, create a message on every Wiki page/article?
(In my current case, I'm running MediaWiki on a server/domain that will
change in the upcoming weeks, and I want to put a msg at the top of every
page that reads something like "Please note: xxxx.com is a temporary
location.")
The only thing I figured out was: {{global_header}}
...but this requires that every author inserts the above text into every page.
Do any automatic facilities exist? I've been hunting around the Template
help stuff, but haven't yet found anything.
Thanks for any help,
-Matt
This has sparked a general question for me that I haven't seen elsewhere
(not that it isn't, in fact, elsewhere). If I want to run MediaWiki in a
farm environment (insert favorite load balancing technology), do I have to
setup the session_save_path to point to a filesystem location shared by all
web servers? AKA an NFS export mounted in the same place on all apache
boxes.
If this is true, are there other requirements of a load balanced/farmed
environment?
Thanks,
Jeff
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Jamie Bliss
Sent: Thursday, April 28, 2005 2:28 PM
To: ben wiseley; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] logged in users can't save edits
I'm seeing this on the Wikiwyg server, too. At first, I thought it was a
misconfiguration thing, but maybe not.
What PHP versions are being used? What does session_save_path() return
before changing it? (call it without any arguments)
On 4/28/05, ben wiseley <wiseleyb(a)gmail.com> wrote:
> On my local box (Ubuntu) this works fine.
>
> On the linux host I'm using once you log in (as a normal user,
> WikiSysop, any user type) and edit something (any page) and hit save
> it acts as though you hit the preview. If you're logged out you can edit
and save normally.
>
> Any ideas?
>
> Could this be related to this quirk? In a previous email I asked about
> users auto logging out. I added this:
>
> session_save_path("/public_html/sandBoxWiki/sessions");
>
> to my LocalSettings.php. Now users only stay logged in if you check
> "Remember my password across sessions"
>
> -ben
--
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now has 2GB.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Lovers of Enotif (e-mail notification for user_talk, user, watched and
new pages) can find download information, documentation and release
notes for the latest version on http://meta.wikipedia.org/wiki/Enotif .
I also offer a helpdesk for your questions on
http://test.leuksman.com/index.php/Enotif .
ENotif is strictly based on CVS HEAD and also available for several
release versions; the current version was updated from CVS HEAD =
1.5alpha1 May 2nd, 2005 UTC 22:30;
Tom
That sounds like the kind of thing that would happen right away. I've been
running for about 4 days without incident. Works very nicely in fact.
Thanks.
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Jamie Bliss
Sent: Wednesday, April 27, 2005 5:43 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Customized Skins & User Prefs
When I tried it, there were errors relating to undefined classes, I believe.
On 4/27/05, Wolfe, Jeff <Jeff_Wolfe(a)intuit.com> wrote:
> Wow, that was super easy! Thanks.
>
> BTW, why did you say I was stuck with Standard? I moved it and it
> seemed to operate as desired. It only showed the one skin I wanted the
user to see.
> Is there some other more insidious issue I just haven't seen?
>
> Thanks,
> Jeff
>
> -----Original Message-----
> From: mediawiki-l-bounces(a)Wikimedia.org
> [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Jan Steinman
> Sent: Tuesday, April 26, 2005 11:20 PM
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] Customized Skins & User Prefs
>
> On 26 Apr 2005, at 18:00, Jamie Bliss wrote:
>
> > Move all the files in the skins directory to the disabled directory.
> > The one you can't remove is standard, and you're just stuck with that.
>
> Doh! Why didn't I think of that before I hacked the Preferences page
> to not allow changing skins? :-)
>
> :::: fas-cism (fash'iz'em) n. A system of government that exercises a
> dictatorship of the extreme right, typically through the merging of
> state and business leadership, together with belligerent nationalism.
> -- American Heritage Dictionary, 1983 (reference to "business" was
> removed in later editions)
> :::: Jan Steinman <http://www.Bytesmiths.com>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
--
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now has 2GB.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Esteemed Mediawiki people
I've recently installed the latest stable distribution of Mediawiki on a
Mac OS X machine, mainly in order to learn how to use it. The Mac in
question is on a LAN sitting behind a NAT router on a DSL connection.
I installed according to the fairly brief instructions given with the
distribution, and it all went smoothly. I can see the wiki's Main Page
when I point my browser to the relevant page from the local machine.
Great.
However, when I try to see the wiki from outside the LAN, using the public
IP address all I get is an http 500 error message.
My router is set up to forward all port 80 requests through to the Mac
that is serving web pages, and this works perfectly for the rest of my
site (which includes a WordPress installation, suggesting that Apache,
MySQL and PHP are all set up and working as expected). Which leads me to
conclude that the problem lies within the Mediawiki configuration. I've
studied LocalSettings.php and DefaultSettings.php, and can find nothing
obvious. Then again, I'm no PHP expert. I imagine this must be a
reasonably common problem, but I can't find anything about it, and the
mailing list archive does not lend itself to searching.
Any pointers would be gratefully received.
Thanks
Graham
I've googeld and grepped, but no luck. I want to set the default options for
new users. In particular I want new users to have "Add pages you edit to
your watchlist" set by default.
How would I do this?
Thanks.
--Ben
Hello,
How can I drive these Language.php changes into my Wiki (running 1.4.0)?
I'm trying to encourage users to follow a certain format for the
account-name creation (among other things), and these are the steps I'm
taking thus far to do that.
-Matt
------- Language.php -------
528c528
< 'loginprompt' => "You must have cookies enabled to log in to
{{SITENAME}}.",
---
> 'loginprompt' => "You must have cookies enabled to log in to
{{SITENAME}}. Please follow the recommendations for account-name format
found at [[Create_your_own_account]].",
615c615,616
< 'whitelistedittext' => 'You have to [[Special:Userlogin|login]] to edit
pages.',
---
> #'whitelistedittext' => 'You have to [[Special:Userlogin|login]] to edit
pages.',
> 'whitelistedittext' => 'You have to [[Create_your_own_account]] and/or
login to edit pages.',
root@biz2tek 6:15pm [...mediawiki-1.4.0/languages] 31>
You should be able to modify the code I attach below to look at the
HTTP_REMOTE_USER variable instead of the variable.
Cheers,
Al.
-----Original Message-----
From: Stephen J. Scheck [mailto:ss543@cornell.edu]
Subject: [Mediawiki-l] HTTP_REMOTE_USER and MediaWiki
Our organization has a global authentication system, which can be set up to
propagate to web applications via the CGI HTTP_REMOTE_USER variable.
I want to set up MediaWiki to use this, so that if HTTP_REMOTE_USER is set,
it automatically uses it as if a user with the same name had logged in
normally.
------------------------------------------------------------------------
Stephen J. Scheck Email: ss543(a)cornell.edu
Network Administrator Phone: 607.255.6278
Department of Chemistry and Chemical Biology www.chem.cornell.edu/crcf/
-----Original Message-----
From: Alistair Johnson [mailto:JohnsonA@rembrandt.co.nz]
Sent: Thursday, 28 April 2005 8:24 a.m.
To: MediaWiki announcements and site admin list
Subject: RE: [Mediawiki-l] How to require Sign In
I posted info on how to do this back at the end of March (based on info
posted by David Cameron) . Below is the modification I made to User.php to
achieve this. You need to enable Windows authentication in IIS to make this
work.
You can also look at AuthPlugin to seamlessly create mediawiki users based
on another authentication mechanism, but as far as I can tell that didn't
also offer automatic logon which the below will do for you.
Al.
function loadFromSession() {
global $wgMemc, $wgDBname;
if ( isset( $_SESSION['wsUserID'] ) ) {
if ( 0 != $_SESSION['wsUserID'] ) {
$sId = $_SESSION['wsUserID'];
} else {
return new User();
}
} else if ( isset( $_COOKIE["{$wgDBname}UserID"] ) ) {
$sId = IntVal( $_COOKIE["{$wgDBname}UserID"] );
$_SESSION['wsUserID'] = $sId;
} else if ( isset($_SERVER["AUTH_USER"])) {
//modification to allow logon via authentication
information
//passed from IIS
global $wgUser;
global $wgDeferredUpdateList;
//get the username
$temp = explode('DOMAINNAME', $_SERVER["AUTH_USER"]); //remove the
domain name from AUTH_USER
if ($temp[1] == "") {
$name = $temp[0];
} else {
$name = $temp[1];
}
//pull in the usernames and passwords we'll need for the database
lookup
global $wgDBprefix;
global $wgDBuser;
global $wgDBpassword;
global $wgDBserver;
global $wgDBname;
//we'll use PHP's MYSQL module to access the mediawiki database as
it's Q&D
$link = mysql_connect($wgDBserver,$wgDBuser,$wgDBpassword);
@mysql_select_db($wgDBname, $link) or die( "Unable to select user
database for NTLM authentication");
$query="SELECT * FROM " . $wgDBprefix . "user WHERE LOWER(user_name) =
'" . strtolower($name) . "'";
$result = mysql_query($query, $link);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
mysql_close($link);
//set the variables we need to transparently authenticate
$sId = $row['user_id'];
$_SESSION['wsUserID'] = $row['user_id'];
$_SESSION['wsUserName'] = $row['user_name'];
$_SESSION['wsToken'] = $row['user_token'];
//set cookies with this info to make life easier for us in the future
global $wgCookieExpiration, $wgCookiePath, $wgCookieDomain,
$wgDBname;
setcookie( $wgDBname.'UserID', $row['user_id'], 0,
$wgCookiePath, $wgCookieDomain );
setcookie( $wgDBname.'UserName', $row['user_name'], 0,
$wgCookiePath, $wgCookieDomain );
setcookie( $wgDBname.'Token', $row['user_token'], 0,
$wgCookiePath, $wgCookieDomain );
} else {
return new User();
}
if ( isset( $_SESSION['wsUserName'] ) ) {
$sName = $_SESSION['wsUserName'];
} else if ( isset( $_COOKIE["{$wgDBname}UserName"] ) ) {
$sName = $_COOKIE["{$wgDBname}UserName"];
$_SESSION['wsUserName'] = $sName;
} else {
return new User();
}
$passwordCorrect = FALSE;
$user = $wgMemc->get( $key = "$wgDBname:user:id:$sId" );
if($makenew = !$user) {
wfDebug( "User::loadFromSession() unable to load
from memcached\n" );
$user = new User();
$user->mId = $sId;
$user->loadFromDatabase();
} else {
wfDebug( "User::loadFromSession() got from cache!\n"
);
}
if ( isset( $_SESSION['wsToken'] ) ) {
$passwordCorrect = $_SESSION['wsToken'] ==
$user->mToken;
} else if ( isset( $_COOKIE["{$wgDBname}Token"] ) ) {
$passwordCorrect = $user->mToken ==
$_COOKIE["{$wgDBname}Token"];
} else {
return new User(); # Can't log in from session
}
if ( ( strtolower($sName) == strtolower($user->mName) ) &&
$passwordCorrect ) { //modified to allow for case differences between
mediawiki and NTLM usernames
if($makenew) {
if($wgMemc->set( $key, $user )) {
wfDebug( "User::loadFromSession()
successfully saved user\n" );
} else {
wfDebug( "User::loadFromSession()
unable to save to memcached\n" );
}
}
$user->spreadBlock();
return $user;
}
return new User(); # Can't log in from session
}
-----Original Message-----
From: Toscano, Ashley [mailto:atoscano@edmunds.com]
Sent: Thursday, 28 April 2005 7:49 a.m.
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] How to require Sign In
Is there a way to hook the Sign In function to Active Directory on a
corporate Windows network? Also, how do I require that users sign in before
updating content on the wiki?
- Ashley Toscano Office: 310-309-6431
Edmunds.com "where smart car buyers start"
_______________________________________________