David Gerard | 1 Sep 2007 01:00
Picon
Gravatar

Re: Intro to template syntax?

On 31/08/2007, Thomas Dalton <thomas.dalton@...> wrote:
> On 31/08/2007, Virgil Ierubino <virgil.ierubino@...> wrote:

> > It would be nominated for speedy deletion :P

> That could be part of the game. ;)

When http://common-lisp.net/project/lifp/rouge.htm is reimplemented in
parser functions, MediaWiki is finished and we move to Phase 4 code?

- d.
Jim Hu | 1 Sep 2007 01:10
Picon
Favicon
Gravatar

Re: $user->isLoggedIn()

Thanks.  I was coming to that conclusion myself, so I decided to use  
the UserLoginComplete and UserLogout hooks to record login/logout  
activity in a tmp directory that is accessible to the blog.  Advice  
on the security issues created by this approach is welcome!!

Jim

On Aug 31, 2007, at 4:47 PM, DanTMan wrote:

> file_get_contents won't ever work with sessions because it's the  
> server
> getting contents, not the client's computer. So the session would be a
> single server session.
> User::isLoggedIn() was meant to be used with $wgUser, as in. You're
> logged in if "$wgUser->isLoggedIn();" returns true. It's not meant to
> detect if an other user is logged in, because that's a technical
> impossibility. Since you're including the WebStart, perhaps you should
> try using $wgUser.
>
> ~Daniel Friesen(Dantman) of The Gaiapedia, Wikia Graphical  
> Entertainment Project, and Wiki-Tools.com
>
> Jim Hu wrote:
>> Spoke too soon.  The test script responds to being logged in or
>> logged out, but calling it from a different script using
>> file_get_contents isn't working.
>>
>>
>> On Aug 31, 2007, at 2:28 PM, Jim Hu wrote:
>>
(Continue reading)

azurite | 1 Sep 2007 01:42
Gravatar

Short URLs with PHP as CGI, CSS mangled

I finally managed to get the Short URLs working with my installation of
MW, which is located in public_html/wikific. PHP5 is being run as a CGI
module. So the Short URL loads, but as I've read if something's "not done
properly" with the .htaccess file (in public_html) or the
LocalSettings.php, the skins/CSS files won't properly load. Can anyone
point me at what I've done wrong?

From LocalSettings.php:

$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";

## If using PHP as a CGI module, use the ugly URLs
$wgScriptPath	    = "$wgScriptPath/wiki";
$wgArticlePath = "$wgScriptPath/$1";

$wgStylePath        = "$wgScriptPath/skins";
$wgStyleDirectory   = "$IP/skins";
$wgLogo             = "$wgStylePath/common/images/wikific_logo.png";

From public_html/.htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.+)$ /wikific/index.php?title=$1 [L,QSA]

Help?
-Azurite
(Continue reading)

Roger Chrisman | 1 Sep 2007 02:40
Favicon

Re: Short URLs with PHP as CGI, CSS mangled

azurite@... wrote:
> I finally managed to get the Short URLs working with my installation

Azurite, it will help us check your work if you will post a link to your 
wiki. If you cannot do that, more details as to what is going on would 
help.

Roger
Azurite | 1 Sep 2007 02:48
Gravatar

Re: Short URLs with PHP as CGI, CSS mangled


>
> Azurite, it will help us check your work if you will post a link to your 
> wiki. 

No problem. It's at http://seventh-star.net/wikific
Thomas Dalton | 1 Sep 2007 15:40
Picon

Re: $user->isLoggedIn()

> User::isLoggedIn() was meant to be used with $wgUser, as in. You're
> logged in if "$wgUser->isLoggedIn();" returns true. It's not meant to
> detect if an other user is logged in, because that's a technical
> impossibility.

It's a bad name, really. It should be something is isNotAnon(), since
that's what it actually does.
Nancy Dailey | 1 Sep 2007 16:42

Special:allmessages help

Upon upgrading to version 1.10.1, the Special:allmessages page recognizes only some of the local changes
I have made. It will not allow me to edit any text in any pages. Many of the pages are empty. For example,
Mediawiki:viewsource is not populated with View source. If I try to add text to change the label to
"wikitext," upon saving, it ignores the change and reverts back to an empty page. 

Does version 1.10.1 not allow for changes in Special:allmessages? If it does, is there something I needed
to do in the upgrade to toggle this function? Thanks for any help.
Nancy
Azurite | 2 Sep 2007 10:57
Gravatar

Re: Short URLs with PHP as CGI, CSS mangled

I checked on the link just on a whim today, and rather than showing me a 
CSS-less version of my Main Page, it seems to be redirecting infinitely 
into the wrong directory. Based on the code snippets from my 
LocalSettings.php and my .htaccess (from the public_html folder), what 
is causing this? My wiki isn't hosted in a folder called "wiki," but 
that seems to be what it's looking for, for some reason. Where should I 
edit?
-Azurite
Chris Knust | 2 Sep 2007 12:27
Picon

New install of 1.10.1 vs. upgrade from 1.5

Good morning all,

my apologies for a stupid but probably easy to answer question.

I currently run MediaWiki 1.5.0; I seem to understand that I could not 
even do a direct upgrade to 1.10.1 but would have to make intermediate 
upgrades.
However, I would like to move from a directory in my domain to a 
subdomain anyways so I thought I could skip the intermediate steps by 
doing the following:

- Full backup of the current Wiki

- Disconnect of the current Wiki to the MySQL database

- New installation of MediaWiki 1.10.1 at the subdomain (with all the 
necessary steps such as generating folders etc.), referencing my MySQL 
database

- Upload the MySql database dump (made with mysqldumper) if necessary

I´d appreciate any hint if I have a substantial error in this plan.
Thanks so much, best regards
Chris
Leon Kolchinsky | 2 Sep 2007 13:53
Picon
Picon

Re: Need to change domain name of wiki site

> 
> > You may want to check your "MediaWiki" and "Help" namespaces in case you
> > are referring to your site with URLs that contain the server name
> 
> or any namespace where someone used an external URL link to your own
> wiki ([http://yourwiki.com/...name]) instead of an internal link (
> [[name]] ).
> 
> Mike
> 
> 
> 

Thank you all for the help,

Actually I'm managing a number of virtual domains (wikis),
so after the change of virtual host config. file (.conf), I've change the directory and DNS name.

The only thing I had to change in LocalSettings.php is 
$IP = "/var/www/localhost/htdocs/newdir";

Best Regards,
Leon Kolchinsky

Gmane