Highslide not centered

Phoca Gallery - image gallery extension
hinkel11
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 17 Feb 2009, 17:24

Highslide not centered

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Highslide not centered

Post 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
If you find Phoca extensions useful, please support the project
stanislawl
Phoca Member
Phoca Member
Posts: 16
Joined: 16 Sep 2008, 09:13

Re: Highslide not centered

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Highslide not centered

Post by Jan »

thank you for this information, Jan
If you find Phoca extensions useful, please support the project
User avatar
navysailor
Phoca Member
Phoca Member
Posts: 23
Joined: 30 Jan 2009, 16:08
Location: Hamburg / Germany
Contact:

Re: Highslide not centered

Post 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.
Post Reply