hello,
I've got a page which opens an url in frame 1 and the same url translated by bablefish in frame 2.
Whenever I try with a wikipedia (or my wiki), the frameset explodes and there isn't any frame.
Is that the effect of a special php or javascript, that I could disconnect on my wiki?
http://www.fxparlant.net/static/bilingual/ (the two frames are by default set on a german newspaper translated to french)
François
On Apr 2, 2005 9:45 AM, FxParlant f-x.p@laposte.net wrote:
Whenever I try with a wikipedia (or my wiki), the frameset explodes and there isn't any frame.
Is that the effect of a special php or javascript, that I could disconnect on my wiki?
Yep, it's a snippet of JavaScript, intended I think to avoid people displaying Wikipedia content in their own frameset to make it look like their own - very lazy (since they can run a mirror) and anti-social (since bandwidth costs donations).
Anyway, it consists of one line in "wikibits.js" (somewhere in the ever-changing skins directory structure, I'll let you find yours):
// Un-trap us from framesets if( window.top != window ) window.top.location = window.location;
Thanks a lot Rowan. François
Rowan Collins wrote:
On Apr 2, 2005 9:45 AM, FxParlant f-x.p@laposte.net wrote:
Whenever I try with a wikipedia (or my wiki), the frameset explodes and there isn't any frame.
Is that the effect of a special php or javascript, that I could disconnect on my wiki?
Yep, it's a snippet of JavaScript, intended I think to avoid people displaying Wikipedia content in their own frameset to make it look like their own - very lazy (since they can run a mirror) and anti-social (since bandwidth costs donations).
Anyway, it consists of one line in "wikibits.js" (somewhere in the ever-changing skins directory structure, I'll let you find yours):
// Un-trap us from framesets if( window.top != window ) window.top.location = window.location;
On Sat, 02 Apr 2005, FxParlant wrote:
hello,
I've got a page which opens an url in frame 1 and the same url translated by bablefish in frame 2.
Whenever I try with a wikipedia (or my wiki), the frameset explodes and there isn't any frame.
Is that the effect of a special php or javascript, that I could disconnect on my wiki?
its in the javascript. have a look at skins/common/wikibits.js and comment out these lines:
Un-trap us from framesets if( window.top != window ) window.top.location = window.location;
I did this too, because it was confusing with google images.
christof
Thanks Christof, As my wiki is just a personal site, I'll disconnect this feature too François
Christof Damian wrote:
On Sat, 02 Apr 2005, FxParlant wrote:
hello,
I've got a page which opens an url in frame 1 and the same url translated by bablefish in frame 2.
Whenever I try with a wikipedia (or my wiki), the frameset explodes and there isn't any frame.
Is that the effect of a special php or javascript, that I could disconnect on my wiki?
its in the javascript. have a look at skins/common/wikibits.js and comment out these lines:
Un-trap us from framesets if( window.top != window ) window.top.location = window.location;
I did this too, because it was confusing with google images.
christof
mediawiki-l@lists.wikimedia.org