[Mediawiki-l] Question: How do I redirect users to spedcial:userlogin

Eric zericm at yahoo.com
Thu Nov 10 16:25:51 UTC 2005


> Date: Tue, 8 Nov 2005 19:49:22 -0600
> From: "M. Cameron Jones" <mjones2 at gmail.com>
> Subject: Re: [Mediawiki-l] Question: How do I redirect users to
> 	spedcial:userlogin

> > > I'm trying to get media wiki to force all users to log in. I've
> > > whitelisted the user login page, which redirects the user to an
> error
> > > page with a link to the specialuserlogin. However, I'd like the
> user to
> > > be presented with the log-in page directly. I have been unable to
> > > figure out how to do this and would appreicate some assistance.
> 
> What about changing the value of "Loginreqtext" in the database?  Put
> in a meta-refresh tag like <META http-equiv="refresh"
> content="5;URL=/index.php/Special:Userlogin">
> 
> Not sure if this would work - or if the meta tag would get munged by
> the wiki-to-html process.
> 
> You could always modify the code to redirect instead of displaying
> the
> error message.

I thought about changing the code to do the redirect. I think I found
the place in the code to make that change. However, I'm not sure about
hte syntax to make this magic happen. Any hints on where to find the
right code? 

thx, 
Eric


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com



More information about the MediaWiki-l mailing list