Page 1 of 1

Highslide not centered

Posted: 07 Mar 2009, 21:07
by hinkel11
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

Re: Highslide not centered

Posted: 08 Mar 2009, 11:34
by Jan
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

Re: Highslide not centered

Posted: 03 Apr 2009, 18:36
by stanislawl
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

Re: Highslide not centered

Posted: 16 Apr 2009, 01:06
by Jan
thank you for this information, Jan

Re: Highslide not centered

Posted: 24 Oct 2012, 15:40
by navysailor
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:

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>
Maybe somebody still need that information.