Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gallery does not follow division tags
02-17-2010, 03:05 AM (This post was last modified: 02-17-2010 03:49 AM by ok6@embarqmail.com.)
Post: #1
gallery does not follow division tags
I just upgraded from v1.81 to v2.2b. The slide show works correctly, I can click on a thumbnail and use the right/left arrows and play slideshow. However, the thumbnails now load in the upper left corner of the page instead of inside the division tag. It works the same in both IE8 and FF 3.5.7 The page was validated at http://validator.w3.org/ as an XHTML transistional 1.0 page. The link to the page is http://www.karensgarden.net/KGDPhoto.php
I attached the code for the page. I just realized my menu tabs do not work on the page after the thumbnails load (they are dynamic links written in php).


Attached File(s)
.php  KGDPhoto.php (Size: 1.93 KB / Downloads: 1)
Find all posts by this user
Quote this message in a reply
02-17-2010, 03:55 AM
Post: #2
RE: gallery does not follow division tags
Change the following code part:

PHP Code:
<div class="koschtitgallery" title="2010">
<
h2>Click on a photo to view larger size or 'Next' to advance thumbnails</h2>
</
div

to

PHP Code:
<div class="koschtitgallery" title="2010"></div

You can't place anything else inside the koschtitgallery-div. This will result in a wrong script behaviour.

KoschtIT Image Gallery developer
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2010, 04:16 AM
Post: #3
RE: gallery does not follow division tags
(02-17-2010 03:55 AM)kkokus Wrote:  Change the following code part:

PHP Code:
<div class="koschtitgallery" title="2010">
<
h2>Click on a photo to view larger size or 'Next' to advance thumbnails</h2>
</
div

to

PHP Code:
<div class="koschtitgallery" title="2010"></div

You can't place anything else inside the koschtitgallery-div. This will result in a wrong script behaviour.

I made the changes, but no difference. Is koschtitgallery-div not allowed inside nested div's?
Find all posts by this user
Quote this message in a reply
02-17-2010, 01:13 PM
Post: #4
RE: gallery does not follow division tags
(02-17-2010 04:16 AM)ok6@embarqmail.com Wrote:  I made the changes, but no difference. Is koschtitgallery-div not allowed inside nested div's?

You can place the div anywhere but, for some reason it doesn't work on your webserver. When I copy your code to my localhost everything is placed correctly. Did you modify the "ki_include.php"? Is the php-function ob_start() disabled on your server?

KoschtIT Image Gallery developer
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2010, 07:56 PM
Post: #5
RE: gallery does not follow division tags
(02-17-2010 01:13 PM)kkokus Wrote:  
(02-17-2010 04:16 AM)ok6@embarqmail.com Wrote:  I made the changes, but no difference. Is koschtitgallery-div not allowed inside nested div's?

You can place the div anywhere but, for some reason it doesn't work on your webserver. When I copy your code to my localhost everything is placed correctly. Did you modify the "ki_include.php"? Is the php-function ob_start() disabled on your server?

I used the ki_include.php included with the new version (copied to public_html directory). The php-function ob_start() was disabled, I set output_buffering=on, but the problem still occurs (I tried copying php.ini to the public_html directory and the ki_base directory). What other php settings might I need to change?
Find all posts by this user
Quote this message in a reply
02-17-2010, 09:55 PM
Post: #6
RE: gallery does not follow division tags
(02-17-2010 07:56 PM)ok6@embarqmail.com Wrote:  The php-function ob_start() was disabled, I set output_buffering=on, but the problem still occurs (I tried copying php.ini to the public_html directory and the ki_base directory). What other php settings might I need to change?

It doesn't help to just copy the php.ini into those directories. If you are not the server admin and the ob_start-function is disabled you can't do anything about it, except ask the server admin to turn that feature on.
But you can set the css-height and width of your gallery manually. To do so try this:

PHP Code:
<div class="koschtitgallery" title="..." style="position:relative; padding: 0px; overflow:hidden; width:XXpx; height:YYpx; background:ZZ;"></div

Replace XX, YY and ZZ with the values you desire ...

KoschtIT Image Gallery developer
Visit this user's website Find all posts by this user
Quote this message in a reply
02-18-2010, 05:27 AM
Post: #7
RE: gallery does not follow division tags
(02-17-2010 09:55 PM)kkokus Wrote:  
(02-17-2010 07:56 PM)ok6@embarqmail.com Wrote:  The php-function ob_start() was disabled, I set output_buffering=on, but the problem still occurs (I tried copying php.ini to the public_html directory and the ki_base directory). What other php settings might I need to change?

It doesn't help to just copy the php.ini into those directories. If you are not the server admin and the ob_start-function is disabled you can't do anything about it, except ask the server admin to turn that feature on.
But you can set the css-height and width of your gallery manually. To do so try this:

PHP Code:
<div class="koschtitgallery" title="..." style="position:relative; padding: 0px; overflow:hidden; width:XXpx; height:YYpx; background:ZZ;"></div

Replace XX, YY and ZZ with the values you desire ...

Yes, that fixed the problem (I used XX=1000, YY=700, ZZ=none). I will try to have the site administrator turn on ob_start().
Thank you
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)