Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:55 am EST

Geeklog Forums

gekklog cuts iframe page layout


2000

Anonymous



Well, i see it's not easy to create hi-looking pages with geeklog. There is annoying HTML filter, and there is WYSWYG HTML editor, which i do not use, too poor. But i am not here to give critics about GL. Geeklog as CMS is great, definitly the best of open source CMS.


Anyway - i want to create some good looking pages with our site in a short time, so i use iframe with staticpages. I set up 100% for height and weight, scrooling is disabled, frameborder also. But what happens?
Geeklog cuts the part of page, it shows only the lenght of layout.


How would i set that the site page would be shown entirely, so the left and right block columns would extend to the bottom of iframe inserted?


I give you example here, you can scroll down, if you select the text with mouse cursor from the midlle and go to the bottom. Can you see, what am i talking about?


LINK TO PROBLEMATIC PAGE ON GL SITE

Guys, i really need a tip, a helpful advice, a brilliant solutions. Any genious arround?


thanks



 Quote

2000

Anonymous
sorry becuse the link doesn't work: here you go: http://www.intely.com/2000//staticpages/index.php?page=vlado_sav_romanja_domov
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
- snipped -

just ignore me Mr. Green
Vanrillaer.com - our Family Portal
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Why did you use Word as your HTML editor?? That's the first start to get lousy and buggy HTML code. And negative margins could be nasty....

But sorry, I do not really understand why you want to use an Iframe. Do you know you can edit in config.php which html tags are filtered/allowed?

If you place a simple HTML table with a tag for the height the page will resize accordlingly:

Text Formatted Code
<table width="100%" height="500" cellpadding="0" cellspacing="0" align="center"><tr><td  width="100%">YOUR TEXT HERE</td></tr></table>
 

Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
I don't think that works, I have tried to get iframes to recognize the size of the page in the iframe with no luck and I just tried your solution which didn't work either. The only thing I have been able to do was specify the height of the iframe larger than the page that is within it.

 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by 2000:i want to create some good looking pages with our site in a short time, so i use iframe with staticpages.
I don't see any reason here why you would need an iframe. Why not just throw the html into your staticpage and all is well? Or am I missing something?
 Quote

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
Quote by machinari:
Quote by 2000:i want to create some good looking pages with our site in a short time, so i use iframe with staticpages.
I don't see any reason here why you would need an iframe. Why not just throw the html into your staticpage and all is well? Or am I missing something?

I'll have to agree with you here, unless what's in the iframe is on some other server. I had to do that with pages that were on a secure server where my pages were not.
 Quote

2000

Anonymous
ok, so it is like that... DOES anyone know how to use php command for other document/variable inlcude, something like PHP INCLUDE? I would really like use it that way.
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Here you GO Mr. Green
Vanrillaer.com - our Family Portal
 Quote

2000

Anonymous
tnx, i ll try that, actually i am doing it right now at the moment. And i ll look over the web for php include code. Tnx a lot!
 Quote

2000

Anonymous
so... is there a PHP code, which prints a html code (site) from some page on server? Let's say i have a webfolder on my server and there are sites, which i want to publish with geeklog. I want to insert all the content of a specific web page in new, static page, with PHP command (like iframe, only that systems really prints the code). How do i do that? I thought that php include will work, but it does not. Hmmmmmmmm. You know, i only know some HTML, but PHP is a mistery for me right now. Maybe i'll know it all in next 5 years. I have to take time and learn it all. It is really useful.

I'v been browsing the web, but i cant fix that out, some pharse error shows. Anyway...


Do you know how to do that, how to force the system to regenerate (copy) the source code from some other page to static page with only some PHP lines? And, sure, I want that the site will display correctly (with images, what about paths, will they work well?).


Thank you all, specially knuff.

 Quote

2000

Anonymous
so... is there a PHP code, which prints a html code (site) from some page on server? Let's say i have a webfolder on my server and there are sites, which i want to publish with geeklog. I want to insert all the content of a specific web page in new, static page, with PHP command (like iframe, only that systems really prints the code). How do i do that? I thought that php include will work, but it does not. Hmmmmmmmm. You know, i only know some HTML, but PHP is a mistery for me right now. Maybe i'll know it all in next 5 years. I have to take time and learn it all. It is really useful.

I'v been browsing the web, but i cant fix that out, some pharse error shows. Anyway...


Do you know how to do that, how to force the system to regenerate (copy) the source code from some other page to static page with only some PHP lines? And, sure, I want that the site will display correctly (with images, what about paths, will they work well?).


Thank you all, specially knuff.

 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
I didn´t do much more as pointing you to the FAQ.

Anyway, what you could do to include your old static HTML pages in dynamic GL static php pages, is create an alternative version of this body wrapper script.
Text Formatted Code

// BodyInclude 1.1
// script by Jeff Hanlon, 2003-2004.  Email any comments to jeff@hanlon.ca
// BodyInclude is a simple script that functions as an 'include' of an html file
// with one important difference!
// We want to include only the html from the body of the file, and not the headers, metatags or the body tags themselves.
// This was originally designed to allow site owners and content producers
// to use Mozilla Composer as an html editor to upload content to the server
// while maintaining style control in my own hands.
// Its nothing special, but here is how it works

// open the file for reading
$fp = fopen('contentfile.html','r');

// capture its contents in $content for processing
$content = fread($fp,filesize('contentfile.html'));

// relying on the fact that there will be only one <body> tag in the document
// we divide the file in half by <body>
$array = explode('<body>',$content);

// redefine $content to capture only the content from the 'body' tag to the end of the file
$content = $array[1];

// note, $content will still include the '&60;/body>' and '</html>' tags, which we do no want to include  
// so, we divide $content again, this time by </body>
$array2 = explode('</body>',$content);

// we now redefine $content again to capture only the remaining content before </body>
$content = $array2[0];

// For those who want to produce standards compliant xHTML, there are changes to be made to Composer HTML.
// Composer renders the break tag as "<br>", but XML requires all tags, not just container tags, to be closed properly.
// So we now use Php to replace all instances of <br> with

$bodyinclude = str_replace("<br>", "", $content);

// The following print function effectively acts as an include
print($bodyinclude);

// now we simply close the html file to finish the job
fclose($fp);


 



It will basicly grab your html page and strip out the head and metatags.

Please note that this script is just a start and will not work with GL as is, but yes you could achieve it.

Best Regards,
Boris
Vanrillaer.com - our Family Portal
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
In addition, you might want to take a look at this one here.

Again it won´t work with GL, but maybe this one could inspire you to make a plugin, that will dynamicly include all your html files located in a certain spot and be included in GL look and feel.

Ideal if you would want to link to an older version of a static HTML site.
Vanrillaer.com - our Family Portal
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by 2000:
Geeklog cuts the part of page, it shows only the lenght of layout.
have you tried wrapping your iframe using a div or table td? alternatively, see that the staticpage is "wrapped in a block." That setting is in the editor. The iframe's 100% height should then be limited to its container and that container should not extend.
Or you could set a fixed height (rather than a percentage) and adjust it accordingly.
 Quote

All times are EST. The time is now 09:55 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content