Page 1 of 1

No image in my popup box

Posted: 18 Nov 2009, 21:48
by Morleyuwm
I have installed the Phoca Gallery component version 2.5.8 into Joomla version 1.5.9 and everything works as it should when I use one of the standard Joomla templates. (JA_Purity or rhuk_milkyway)

My problem occurs when I try to use my own Joomla template. If I setup my parameters for “Detail View Settings” using any of the following methods:
1. Standard Popup Window
2. Modal popup box
3. Highslide JS
The detail view does not show an image when I click on a thumbnail. What I get is a blank box.

Is there a tag or CSS block that I need to have defined in my template that will allow Phoca Gallery to function as it does with the standard templates? I have included a copy of index.php for my template in case you need it .

Code: Select all

<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
  <jdoc:include type="head" />

  <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
  <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />

  <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/Wood2/css/styles.css" type="text/css" />
</head>
<body>
  <div id="content">
    <!-- This is a markup just to put the logo at the top of the page -->
    <div id="logo_block">
      <div class="bg"></div>
    </div>

    <!-- This is the USER1 position of the template -->
    <div class="user1_bg">
      <div id="user1">
        <jdoc:include type="modules" name="user1" style="xhtml" />
      </div>
    </div>

    <div id="header">
      <jdoc:include type="modules" name="user2" style="xhtml" />
    </div>


    <!-- This is the LEFT position in the template -->
    <?php if($this->countModules('left')) : ?>
    <div class="boxed">
      <jdoc:include type="modules" name="left" style="xhtml" />
    </div>
    <?php endif; ?>

    <!-- All of the Joomla articals are in the component position-->
    <div id="posts">
      <!-- This is the TOP position in the template it is contained in the same area as the posts-->
      <div class="post">
        <?php if($this->countModules('top')) : ?>
        <jdoc:include type="modules" name="top" style="xhtml" /><br/>
        <?php endif; ?>
      </div>
      <div class="post">
        <jdoc:include type="component" />
      </div>
    </div>

    <div class="clearfloat"></div>

    <div id="footer">
      <!-- This is the footer area of the page -->
      <jdoc:include type="modules" name="footer" style="xhtml"/>
    </div>

  </div>

</body>
</html>


Re: No image in my popup box

Posted: 19 Nov 2009, 00:12
by Jan
Hi, as every component under Joomla!, Phoca Gallery works only with standard templates which don't miss any important part, so the best way how to recognize what your template misses, is comparing your template code with some standard template like rhuk_milkyway is.

Jan

Re: No image in my popup box (solved)

Posted: 20 Nov 2009, 01:39
by Morleyuwm
Thank you for your response, even though it was not very helpful. :( I did figure out what the problem is, and I thought I would pass it along. Hopefully it will help someone else.

There is a file in each of the standard templates called “component.php”. This file appears to be nothing more than a very simple template file that is used to display components. After I copied this file into the root directory of my template Phoca Gallery started to display images as it should.

One final point, component.php has a reference to the style sheet for the template. In my case this file is named styles.css, so I needed to change the reference to point to it instead of template.css.