This is just an fyi post to share with the group when the problem and solution was to the situation described below.
After reading-up on the implementation of the "Short URL" method at: http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
it dawned on me that the problem was that my iframe content was within my wiki directory and therefore the Apache server was "programmed" to alias the page for me as requested for the short URL implementation.
The solution (and lesson learned) is to no point IFRAMEs to anything in the wiki directory tree if your server is set-up to alias the path for you.
so....thanks again to anyone who invested a few brain cycles into this post.
- rich (revansx) -- Even a blind squirrel finds an acorn once in a while - lol.
----- Original Message ----- From: "Richard Evans" revansx@cox.net To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Sent: Thursday, April 05, 2007 12:05 PM Subject: [Mediawiki-l] problem with breaking out of frames JS using ShortURLs???
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@gmail.com To: "MediaWiki announcements and site admin list" mediawiki-l@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@cox.net revansx@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l