Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

failing to include
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=133
Page 1 of 1

Author:  palmen [ 3. Jan 2006, 19:43 ]
Post subject:  failing to include

I cannot get the including to work. :cry:

TWG Works fine without include but when doing an include TWG flashes by and the diappears leaving the following code in IE (Firefox stops...):

<div id="emsTest" style="position:absolute; left:0px; top:0px; visibility:hidden; font-family:arial,helvetica,sans-serif">A&nbsp;<br />A&nbsp;<br />A&nbsp;<br />A&nbsp;<br />A&nbsp;<br /></div>


My path section in config.php looks like this:

$php_include=true;
$install_dir = "galleri/";
$ignore_parameter = array('file');
$include_y_bottom=0;
$disable_frame_adjustment_ie=true;
$basedir = "pictures";
$cachedir = "cache";
$counterdir = "counter";
$xmldir = "xml";


at the root of the site I have a page galleri.php containing:

<?php include "galleri/index.php" ?>

Please advice what to do...[/i]

Author:  TinyWebGallery [ 4. Jan 2006, 11:18 ]
Post subject: 

Hi,

Hard to say from here - it is possible you send me the including page?
I'll try to rebuild it on my local system.

because the text that does appear in not from TWG! emsTest is not in my code at all ...

I advice to use iframes because the include is always problematic because of stylesheet and javascript issues - check the doctype too. he js I use is not working properly with the wrong doctype.

/Michael

Author:  palmen [ 4. Jan 2006, 13:01 ]
Post subject: 

Using an IFRAME avoided the problem.
Thanx for a great gallery !!

Incase you still want to investigate this problem this is what I did:

The page doing the include contains ONLY:

<?php include "galleri/index.php" ?>

No docype or anything else in the file, I have tried the DOCTYPE line one suggested in FAQ with no luck.

File structure:
------------------------------------------------------------
root/galleri.php (contains only the line above)
root/galleri/index.php (this is the TWG install dir)
-------------------------------------------------------------

The HTML source ending up in IE can be found in
TinyWebGallery13c\TWG\js\twg_image.js Line 80

Author:  TinyWebGallery [ 4. Jan 2006, 13:29 ]
Post subject: 

Thanks,

I will test this for 1.4

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/