Static Page Plugin to hold iFrame?

Creating and modifying plugins.
Post Reply
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Static Page Plugin to hold iFrame?

Post by garvinhicking »

I'd create a sidebar plugin which includes the file in question instead of using ugly iframes :)

Look at serendipity_plugin_gallery_menalto_random (or sth. like that), this embeds a foreign gallery page into your blog. You could adapt this and embed your own script there...

As for the reason why it failed, I could only tell that if you give me the URL to the blog with that iframe code in it...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Rob: Using Firefox, it works properly. The IE fails, though. You might need to look up iframe specifications and see why the IE is freaking. I bet it's got something to do with XHTML/Doctype compliance or missing attributes...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Wizard
Regular
Posts: 103
Joined: Sat Aug 13, 2005 7:18 am
Location: Southern California
Contact:

wrapURL rocks

Post by Wizard »

This plugin worked great! I used it to "embed" not only coppermine, but another program I have that catalogs movies. It can output HTML pages with links, photos and other information that I now wrap Serendipity around it. Thanks Rob for the useful program. Here is the link if you want to see it in action. http://www.socalwizard.com/serendipity/ ... ydvds.html
Wizard
My WeBlog
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: wrapURL rocks

Post by garvinhicking »

I just took the liberty to add the plugin to our repository. Thanks a lot, Rob - and I hope this is fine with you? :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

quick question

Post by verbatim »

quick question

is it posible for the links on the page i embed to be shown inside frames also when they are clicked on?

Just curious to how this would be done?

thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: quick question

Post by garvinhicking »

Verbatim,

if you add an iframe to a page, all links inside that iframe will be shown within the iframe. Only if the links have a "target=top" or "target=parent" attribute they will break out of the iframe, which cannot be prevented.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

Post by verbatim »

thanks Garv,

the test page i used happened to be one that would break out of the iframe.

thanks again
Post Reply