Hey,
I'am using Phoca Gallery 2.2.2beta and have the problem that the highslide-box isn't centered, but shwon to the left of the browser window. Is there any parameter I haven't found yet or is this due to some css-paramters? Thanx.
You can my page with the gallery here:
http://sccg09.cockerspaniel-gehren.de/m ... &Itemid=62
Highslide not centered
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Highslide not centered
Hi, I don't know such parameter... maybe such parameter exists but this you can get on highslide site... but before try to test it with some standard template like rhuk_milkyway is... maybe it can be template issue.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
stanislawl
- Phoca Member

- Posts: 16
- Joined: 16 Sep 2008, 09:13
Re: Highslide not centered
Hi,
I had the same problem with my template. I solved it by adding the tags to the file com_phocagallery/views/detail/tmpl/default.php:
<tr>
<td colspan="6" style="text-align:center" valign="middle" height="<?php echo $largeHeight; ?>" >
<center><div id="image-box" style="width:<?php echo $this->tmpl['realimagewidth'];?>px;">
<a href="#" onclick="<?php echo $this->tmpl['detailwindowclose']; ?>"><?php echo JHTML::_( 'image.site', $this->file->linkthumbnailpath, ''); ?></a><?php
$titleDesc = '';
if ($this->tmpl['displaytitleindescription'] == 1) {
$titleDesc .= $this->file->title;
if ($this->file->description != '' && $titleDesc != '') {
$titleDesc .= ' - ';
}
}
// LIGHTBOX DESCRIPTION
if ($this->tmpl['displaydescriptiondetail'] == 2 && (!empty($this->file->description) || !empty($titleDesc))){
?>
<div id="description-msg" style="background:<?php echo $this->tmpl['descriptionlightboxbgcolor'];?>"><div id="description-text" style="background:<?php echo $this->tmpl['descriptionlightboxbgcolor'];?>;color:<?php echo $this->tmpl['descriptionlightboxfontcolor'];?>;font-size:<?php echo $this->tmpl['descriptionlightboxfontsize'];?>px"><?php echo $titleDesc . $this->file->description;?></div></div>
<?php
}
?></center></div>
</td>
</tr>
The same operation should be done in the file com_phocagallery/views/detail/tmpl/default_slideshow.php:
<tr>
<td colspan="6" style="text-align:center" valign="middle" height="<?php echo $this->tmpl['largeheight']; ?>" style="height:<?php echo $this->tmpl['largeheight']; ?>px" >
<center><script type="text/javascript"><?php
if ( $this->tmpl['slideshowrandom'] == 1 ) {
echo 'new fadeshow(fadeimages, '.$this->tmpl['largewidth'] .', '. $this->tmpl['largeheight'] .', 0, '. $this->tmpl['slideshowdelay'] .', '. $this->tmpl['slideshowpause'] .', \'R\')';
} else {
echo 'new fadeshow(fadeimages, '.$this->tmpl['largewidth'] .', '. $this->tmpl['largeheight'] .', 0, '. $this->tmpl['slideshowdelay'] .', '. $this->tmpl['slideshowpause'] .')';
} ?>
</script></center>
</td>
</tr>
However, I do not know why only some templates had such a problem...
Best regards,
Stan
I had the same problem with my template. I solved it by adding the tags to the file com_phocagallery/views/detail/tmpl/default.php:
<tr>
<td colspan="6" style="text-align:center" valign="middle" height="<?php echo $largeHeight; ?>" >
<center><div id="image-box" style="width:<?php echo $this->tmpl['realimagewidth'];?>px;">
<a href="#" onclick="<?php echo $this->tmpl['detailwindowclose']; ?>"><?php echo JHTML::_( 'image.site', $this->file->linkthumbnailpath, ''); ?></a><?php
$titleDesc = '';
if ($this->tmpl['displaytitleindescription'] == 1) {
$titleDesc .= $this->file->title;
if ($this->file->description != '' && $titleDesc != '') {
$titleDesc .= ' - ';
}
}
// LIGHTBOX DESCRIPTION
if ($this->tmpl['displaydescriptiondetail'] == 2 && (!empty($this->file->description) || !empty($titleDesc))){
?>
<div id="description-msg" style="background:<?php echo $this->tmpl['descriptionlightboxbgcolor'];?>"><div id="description-text" style="background:<?php echo $this->tmpl['descriptionlightboxbgcolor'];?>;color:<?php echo $this->tmpl['descriptionlightboxfontcolor'];?>;font-size:<?php echo $this->tmpl['descriptionlightboxfontsize'];?>px"><?php echo $titleDesc . $this->file->description;?></div></div>
<?php
}
?></center></div>
</td>
</tr>
The same operation should be done in the file com_phocagallery/views/detail/tmpl/default_slideshow.php:
<tr>
<td colspan="6" style="text-align:center" valign="middle" height="<?php echo $this->tmpl['largeheight']; ?>" style="height:<?php echo $this->tmpl['largeheight']; ?>px" >
<center><script type="text/javascript"><?php
if ( $this->tmpl['slideshowrandom'] == 1 ) {
echo 'new fadeshow(fadeimages, '.$this->tmpl['largewidth'] .', '. $this->tmpl['largeheight'] .', 0, '. $this->tmpl['slideshowdelay'] .', '. $this->tmpl['slideshowpause'] .', \'R\')';
} else {
echo 'new fadeshow(fadeimages, '.$this->tmpl['largewidth'] .', '. $this->tmpl['largeheight'] .', 0, '. $this->tmpl['slideshowdelay'] .', '. $this->tmpl['slideshowpause'] .')';
} ?>
</script></center>
</td>
</tr>
However, I do not know why only some templates had such a problem...
Best regards,
Stan
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Highslide not centered
thank you for this information, Jan
If you find Phoca extensions useful, please support the project
- navysailor
- Phoca Member

- Posts: 23
- Joined: 30 Jan 2009, 16:08
- Location: Hamburg / Germany
- Contact:
Re: Highslide not centered
Very late but nevertheless I had the same problem.
I tried to add a slideshow to a joomla article and it was always at the left side of the the contentbox.
At the end I tried really a simple idea and it worked:
Maybe somebody still need that information.
I tried to add a slideshow to a joomla article and it was always at the left side of the the contentbox.
At the end I tried really a simple idea and it worked:
Code: Select all
<table border="0" align="center">
<tbody>
<tr>
<td>{pgslideshow id=48|width=400|height=300|delay=3000|image=O}</td>
</tr>
</tbody>
</table>