Diskussion:Iframe
Aus TransArte
This extension worked great on my site, Angel's Grimoire, for displaying the various webrings we belong to. Thank you so much for this extension.
Hey...
There seems to be a bug in the part where you split up the parameters to the iframe block.
foreach($info as $lin){
$line = explode("=",$lin);
if(count($line)==2){
$param[trim($line[0])] = trim($line[1]);
}
}
When you use an url with a '=' in it, this fails, letting the URL unset, as the
explode then returns an array with more than 2 elemtents. For example,
if you want to pass parameters to the URL like http://example.invalid/test.php?action=showThis
the URL is just set blank.
If i'm wrong, consider making a comment on the main page about this...
...
Me again, i just found a fix for this. Just add a third parameter to explode, so then it is
explode("=", $lin, 2 );
Then in the second field of the array is the whole resulting string from the URL.
- yupp, i corrected it in the example, thanks.
Hey- If you guys don't mind- I'd just like to delete the space at the beginning and end of the Php code that I mentioned in the article. It's a silly detail but the code does not parse on my linux/apache installation which is pretty standard. MakThorpe 4. Mär 2006 21:52 (CET)
[bearbeiten] Mess
I have a question on safety of this extension. There was some info on wikimedia: Danger + that it can display your LocalSettings.php if used inproperly. On this page there is some info that iframes shouldnt be used with MW, may I ask why?
I also think there should be some version control. Now the source code, user comments, etc -> output is a little bit messy. I would like to see an official version (+OS that is operates on).
I think it should be more like this one: http://meta.wikimedia.org/wiki/RDF (note: I'm not engaged in this extension it's not a spam)
Aretai 11:47, 14. Dez 2006 (CET)
[bearbeiten] Could you add parser function for the extension
I want to change a iframe dynamically. Could you give me a hand to add a parser function for the extension?--Roc michael 16:47, 6. Dez. 2007 (CET)
