Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:54:50 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: GDPics module v0.7: Too many </div>s emitted.  (Read 686 times)
nottledim

Offline Offline

Posts: 11


« on: November 08, 2007, 08:32:46 AM »

I have a problem with GDPics where it emits one too many </div> elements when displaying the top level gallery list.  This of course breaks the page layout.  When displaying the thumbs or the individual pictures it is OK.

It seems the offending </div> is output at around line 475 in view.php.  I'm using v0.7.
Code:
   
            }
            echo '</div>';
        if (isset($page_links)) {
          echo '<div class="page_list">[ '.$page_links.' ]</div>';
        }
        echo '</div>';
        closedir($dh);
        // Create file handle for the thumbs directory.


If I change the above to:
Code:
       }
        if (isset($page_links)) {
          echo '</div>';
          echo '<div class="page_list">[ '.$page_links.' ]</div>';
        }
        echo '</div>';
        closedir($dh);
        // Create file handle for the thumbs directory.

then the symptoms go away.  I'm not too sure why this works and I'm even less sure that it's the proper or correct solution.  However it does give a clue as to where the problem might be.

Dick



Logged
windowsvista

Offline Offline

Posts: 4


« Reply #1 on: January 18, 2009, 11:56:41 AM »

Thanks a lot !! wink
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!