Announcement

#1 2014-07-10 15:18:56

Gust
Member
2010-06-02
77

including Piwigo album

How can I include Piwigo?

- With an Iframe I see 2 scrollbars, no 100% height and an 1px line
- With an php include, I see nothing

I do this:
<?php
include ("../fotoalbum/index.php");
?>

What do I wrong?

Offline

 

#2 2014-07-10 15:39:35

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: including Piwigo album

Hi

you can't use php include, at all

about iframes, you will never be able to set an iframe to 100% height of it's container (page body or other), it works for width but not height, the only possibilities are fixed height or dynamic resizing in javascript

also please provide a working example, I don't know what "1px line" means

---

generally speaking, iframes must be avoided, you should spend some time customizing the theme and content of your Piwigo to make it looks like the rest of the website

Offline

 

#3 2014-07-10 15:44:17

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: including Piwigo album

well yes you can actually get a 100% height iframe, you just need to ensure that every container (even html and body) are 100% height

Code:

<!DOCTYPE html>
<html>
<head>....</head>
<body>
  <iframe></iframe>
</body>
</html>

Code:

html, body, iframe {
 width:100%;
 height:100%;
 margin:0;
 padding:0;
}

and then you get headaches when you want to add content with an iframe which height is 100% - height of my content

Offline

 

#4 2014-07-10 16:04:48

Gust
Member
2010-06-02
77

Re: including Piwigo album

Thank you! Sorry for my bad english. The '1px line' is the border :-) You can see it on this page
The sollution (for other people with maybe the same problem): border=none

Last edited by Gust (2014-07-10 16:08:25)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact