Thomas Rother | 1 Jun 2004 17:55
Picon

MediaWiki 1.2.4: Usage inside a frame


Hi,
I want to use mediawiki for an internal documentation wiki where it
appears inside a nested frame. Unfortunately, there is always a new
window opened. I looked into the code and found that style/wikibits.js
contains such code:

/ Wikipedia JavaScript support functions
// Un-trap us from framesets
if( window.top != window ) window.top.location = window.location;

But if I comment this line, the behaviour is still the same. Is there
any other place were js code is used to avoid frames?

Thanks for help,
Thommmie
--
---------------------------------------------------------------------
~    THOMAS M. ROTHER  *  n e t z w i s s e n  *  D-73728 Esslingen
~   F.R. Germany, European Union  *  mailto:t.rother@...
~ http://www.netzwissen.de  *  GPG Key from http://wwwkeys.de.pgp.net
~    Fingerprint B208 E204 4249 4635 19B9 B691 3E73 C8B9 1229 DE4C
---------------------------------------------------------------------

Attachment (t.rother.vcf): text/x-vcard, 357 bytes
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
(Continue reading)

Tim Wilson | 1 Jun 2004 18:56
Picon
Picon

Images not loading on new install

Hi everyone,

I've just downloaded and installed v. 1.2.6 on my Debian/apache server. The
install appears to have proceeded without incident, but I notice that none
of the images are loading on the new wiki's Web pages. The apache error log
shows:

[Tue Jun  1 11:14:11 2004] [error] [client 10.50.10.116] File does not
exist: /usr/share/images/wiki.png

I'm puzzled why apache would be looking in /usr/share for the images when
I've defined the DocumentRoot elsewhere. Any ideas?

-Tim

--

-- 
Timothy Wilson
Technology Integration Specialist
Hopkins ISD #270, Hopkins, MN, USA  (44š56.013'N  93š24.736'W)
ph: 952.988.4103  fax: 952.988.4311  AIM: tis270
Bruce Bertrand | 1 Jun 2004 19:25

Re: Rewrite rules and .htaccess

On Saturday 29 May 2004 02:41 am, Brion Vibber wrote:
> Bruce Bertrand wrote:
> > When I change my LocalSettings.php and .htaccess (following the user
> > guide's directions on rewrite rules) the URL rewrite happens.  In other
> > words, my browser tries to get "http://my.url.here/Main_page".
> >
> > BUT, this results in a "Not found" error (404).
>
> Can you confirm that you can use rewrite rules in an .htaccess on your
> setup? Try something very simple like:
>
> RewriteEngine on
> RewriteRule ^/fake.html /real.html
>
> -- brion vibber (brion  <at>  pobox.com)

Nope!  The above entries for .htaccess do nothing.
Do you know of any other way to do this (if it's possible)?
This is odd though, as rewrite used to work for this server.  They just moved 
to a new datacenter this past weekend, but the config files shouldn't have 
been changed.

How can I see the apache configuration? (the actual config files aren't 
readable by my account.  it's a shared host)

Bruce
Bruce Bertrand | 1 Jun 2004 19:28

Including an external html (or php) file

Is there a way to display an external html or php file within a page?  Or even 
just insert some raw html code?  the <nowiki> tag doesn't seem to work for 
this.

Bruce
Andy Smith | 1 Jun 2004 19:55
Favicon

Re: Images not loading on new install

On Tue, Jun 01, 2004 at 11:56:01AM -0500, Tim Wilson wrote:
> [Tue Jun  1 11:14:11 2004] [error] [client 10.50.10.116] File does not
> exist: /usr/share/images/wiki.png
> 
> I'm puzzled why apache would be looking in /usr/share for the images when
> I've defined the DocumentRoot elsewhere. Any ideas?

Is it possible that you have an:

Alias /images/ /usr/share/images/

somewhere up in your global conf?

--

-- 
http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Tim Wilson | 1 Jun 2004 20:13
Picon
Picon

Re: Images not loading on new install

On 6/1/04 12:55 PM, "Andy Smith" <andy@...> wrote:

> Is it possible that you have an:
> 
> Alias /images/ /usr/share/images/
> 
> somewhere up in your global conf?

Yes, you're right. I should have thought of that. It looks like Debian's
apache config uses that to locate the images it uses for displaying
directories of files. Thanks for the pointer.

-Tim

--

-- 
Timothy Wilson
Technology Integration Specialist
Hopkins ISD #270, Hopkins, MN, USA  (44š56.013'N  93š24.736'W)
ph: 952.988.4103  fax: 952.988.4311  AIM: tis270
Brion Vibber | 1 Jun 2004 22:06
Picon
Favicon
Gravatar

Re: MediaWiki 1.2.4: Usage inside a frame

Thomas Rother wrote:
> I want to use mediawiki for an internal documentation wiki where it
> appears inside a nested frame. Unfortunately, there is always a new
> window opened. I looked into the code and found that style/wikibits.js
> contains such code:
> 
> / Wikipedia JavaScript support functions
> // Un-trap us from framesets
> if( window.top != window ) window.top.location = window.location;
> 
> But if I comment this line, the behaviour is still the same. Is there
> any other place were js code is used to avoid frames?

No, that's it. Be sure you've cleared the old version from your browser 
cache.

-- brion vibber (brion  <at>  pobox.com)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Brion Vibber | 1 Jun 2004 22:10
Picon
Favicon
Gravatar

Re: Including an external html (or php) file

Bruce Bertrand wrote:
> Is there a way to display an external html or php file within a page?

No. You could add a way, I suppose, but there isn't one.

>  Or even 
> just insert some raw html code?  the <nowiki> tag doesn't seem to work for 
> this.

Arbitrary HTML is dangerous: cross-site scripting attacks; hijacking 
sessions of other users, etc.

-- brion vibber (brion  <at>  pobox.com)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Bruce Bertrand | 1 Jun 2004 22:42

Re: Including an external html (or php) file

On Tuesday 01 June 2004 04:10 pm, Brion Vibber wrote:
> Bruce Bertrand wrote:
> > Is there a way to display an external html or php file within a page?
>
> No. You could add a way, I suppose, but there isn't one.
>
> >  Or even
> > just insert some raw html code?  the <nowiki> tag doesn't seem to work
> > for this.
>
> Arbitrary HTML is dangerous: cross-site scripting attacks; hijacking
> sessions of other users, etc.
>
> -- brion vibber (brion  <at>  pobox.com)

Perhaps an <html> tag that would disable the wiki processing and could itself 
be disabled in the config file (similar to the whitelist flag, only give it 
to SysAdmins).

My goal it to insert an html form into a particular page (and protect that 
page).  I've modified some html through the WikiMedia:All_messages pages (in 
particular, to display a Creative Commons Liscence notice, but I don't fully 
understand the way that these messages are parsed, and I don't think I'd be 
able to do what I'm trying to do with it.

Maybe I just need to create a static html page and have my wiki pages link to 
it, but I'd rather stay in the wiki.

Bruce
(Continue reading)

Richards,Michael | 1 Jun 2004 22:49
Picon
Favicon

RE: Including an external html (or php) file

Brion Vibber wrote:
>Bruce Bertrand wrote:
>> Is there a way to display an external html or php file within a page?
>No. You could add a way, I suppose, but there isn't one.
>>  Or even 
>> just insert some raw html code?  the <nowiki> tag doesn't seem to work for 
>> this.
>Arbitrary HTML is dangerous: cross-site scripting attacks; hijacking 
>sessions of other users, etc.

Another related question: is there a way to *link* to an external file on a file system, using perhaps UNC
(Universal Naming Convention), e.g. [<\\servername\sharename\path\filename> External File] or
some such syntax? On some Mediawiki installations other than Wikipedia (e.g. ours) this would be
extremely useful to link to non-wiki flat files (e.g. Microsoft Word).

Michael Richards

Gmane