[Mediawiki-l] problem with breaking out of frames JS using Short URLs???
Richard Evans
revansx at cox.net
Thu Apr 5 16:05:11 UTC 2007
Hi,
In order to get an HTML "iframe" working in a custom skin I'm working on,
I've disabled my MediaWiki's behavior of breaking out of frames using an
equivalent act of adding "$wgBreakFrames=false;" in the LocalSettings file
by simply modifying the /skins/common/wikibits.js file to comment out the
code which checks for the parent frame (lines 65 & 66 in ver. 1.6.10) <-
thanks Rob :-)
This works perfectly for long URLs which use the php post data to carry the
article title
such as: .../wiki/index.php?title=My_Title
but does NOT work with short URLs
such as: ../wiki/index.php/My_Title
does anyone the mechanics of the "Short URL" programming well enough to help
me come up with a solution that does not involve upgrading. I am stuck with
1.6.10
please advise,
- rich (revansx)
----- Original Message -----
From: "Rob Church" <robchur at gmail.com>
To: "MediaWiki announcements and site admin list"
<mediawiki-l at lists.wikimedia.org>
Sent: Wednesday, April 04, 2007 2:03 PM
Subject: Re: [Mediawiki-l] iframes problem in modified Monobook skin
> On 04/04/07, revansx at cox.net <revansx at cox.net> wrote:
>> I have modified my Monobook.php skin to include an "iframe" at the top
>> (just above the article title). However, when I look at the page in my
>> wiki, the wiki automatically goes to an article which is named what my
>> iframe src= is pointed to. The iframe html code works fine in a page by
>> itself. Can anyone help me understand why this is happening? ...and help
>> me with a work around?
>
> The IFRAME source is a page on the wiki?
>
> If that's the case (it wasn't clear above), then this appears to be
> MediaWiki's behaviour of breaking out of frames. You can switch this
> off in newer versions of the software using $wgBreakFrames = false; in
> LocalSettings.php.
>
>
> Rob Church
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
More information about the MediaWiki-l
mailing list