Page 1 of 1

gbook is loading a white page first

Posted: Sun May 10, 2009 8:25 pm
by Jomar
Script URL: http://www.zydegonutz.nl/index.php?opti ... &Itemid=41
Version of script: 1.6
Hosting company: hosting2go.nl
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
White page first
gbook in joomla

Write your message below:

Again i'm using this perfect guestbook in a website.
This time it is loaded in a wrapper in Joomla, but now you first see a white page while loading.
Is there a solution for this issue?

Posted: Mon May 11, 2009 6:50 am
by Klemen
Try setting a background color for the iframe that is loading GBook.

Posted: Mon May 11, 2009 6:44 pm
by Jomar
That isn't going to do the trick Klemen, but I found a solution.
And I'm sure other people have the same problem so I will share it with you.

With your ftp program find the file:
templates/your_template_name/html/com_wrapper/default.php

Put in this code:

You have to ad a line I marked with #this line#. Don't include #this line#, get rid of it!

Code: Select all

<div class="contentpane<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php if ( $this->params->get( 'show_page_title' ) ) : ?>
   <div class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
   <?php echo $this->params->get( 'page_title' ); ?>
   </div>
<?php endif; ?>
<iframe <?php echo $this->wrapper->load; ?>
   id="blockrandom"
   name="iframe"
   src="<?php echo $this->wrapper->url; ?>"
   width="<?php echo $this->params->get( 'width' ); ?>"
   height="<?php echo $this->params->get( 'height' ); ?>"
   scrolling="<?php echo $this->params->get( 'scrolling' ); ?>"
   align="top"
   frameborder="0"
#this line# allowtransparency="true"
   class="wrapper<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
   <?php echo JText::_( 'NO_IFRAMES' ); ?>
</iframe>
Hope this can be helpfull.