Posted on: 03/21/05 06:02am
By: Anonymous (2000)
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[*1]
Guys, i really need a tip, a helpful advice, a brilliant solutions. Any genious arround?
thanks
gekklog cuts iframe page layout
Posted on: 03/21/05 06:03am
By: Anonymous (2000)
sorry becuse the link doesn't work: here you go: http://www.intely.com/2000//staticpages/index.php?page=vlado_sav_romanja_domov
gekklog cuts iframe page layout
Posted on: 03/21/05 10:42am
By: knuff
- snipped -
just ignore me
gekklog cuts iframe page layout
Posted on: 03/21/05 11:07am
By: beewee
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:
<table width="100%" height="500" cellpadding="0" cellspacing="0" align="center"><tr><td width="100%">YOUR TEXT HERE</td></tr></table>
gekklog cuts iframe page layout
Posted on: 03/21/05 02:19pm
By: ronack
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.
gekklog cuts iframe page layout
Posted on: 03/21/05 02:29pm
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.[/QUOTE]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?
gekklog cuts iframe page layout
Posted on: 03/21/05 03:53pm
By: ronack
[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.[/QUOTE]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]
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.
gekklog cuts iframe page layout
Posted on: 03/22/05 02:45am
By: Anonymous (2000)
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.
gekklog cuts iframe page layout
Posted on: 03/22/05 03:37am
By: knuff
gekklog cuts iframe page layout
Posted on: 03/22/05 06:23am
By: Anonymous (2000)
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!
gekklog cuts iframe page layout
Posted on: 03/22/05 06:45am
By: Anonymous (2000)
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.
gekklog cuts iframe page layout
Posted on: 03/22/05 06:47am
By: Anonymous (2000)
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.
gekklog cuts iframe page layout
Posted on: 03/22/05 08:41am
By: knuff
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[*3] script.
// 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
gekklog cuts iframe page layout
Posted on: 03/22/05 08:59am
By: knuff
In addition, you might want to take a look at
this one here[*4] .
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.
gekklog cuts iframe page layout
Posted on: 03/22/05 01:24pm
By: machinari
[QUOTE BY= 2000]
Geeklog cuts the part of page, it shows only the lenght of layout.
[/QUOTE]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.