Slideshow - link to detail view with player

Phoca Gallery plugins - plugins for Phoca Gallery extension
kindUp
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Oct 2009, 10:30

Slideshow - link to detail view with player

Post by kindUp »

Hi Jan,
I have a question:
Is it possible to set the link into slideshow so that when you click on the image to start immediately detail view with a player who show all images in category (no link to other side as it is now)?
Thank's
p.s.
I use shadowbox player.
kindUp
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Oct 2009, 10:30

Re: Slideshow - link to detail view with player

Post by kindUp »

Hi,

If you want to display the slideshow ditail view (I use shadowbox player), directly after clicking on the slideshow in the article - here's a solution:

1)before for loop - line about 110 - there is:

Code: Select all

for ($i = 0; $i < $n; $i++) {
insert this line:

Code: Select all

$slideImg = new JObject();
2)
after switch loop switch ($image) - after code line about 136 - there is:

Code: Select all

$script .= 'fadeimages'.$c.'['.$i.'] = [\'' . JURI::base(true).'/'.$imageName->rel . '\', \'\', \'\'];'. "\n";
insert this line:

Code: Select all

$slideImg->link[] .= PhocaGalleryFile::getFileOriginal($images[$i]->filename , 1);
$slideImg->title[] .= $images[$i]->title;
3)
change output at code into lines about 203-210 - there is:

Code: Select all

if ($siteLink != '') {
	$output .= '<a href="'.$siteLink.'" ><span id="phocagallerycontent'.$c.'"></span></a>'. "\n";
} else {
	$output .= '<div id="phocagallerycontent'.$c.'"></div>';
}
changed into else:

Code: Select all

if ($siteLink != '') {
	$output .= '<a href="'.$siteLink.'" ><span id="phocagallerycontent'.$c.'"></span></a>'. "\n";
}
} else {
	for($k=0;$k<count($slideImg->link);$k++){
		$output .= '<a href="'.$slideImg->link[$k].'" rel="shadowbox[gallery'.$c.'];options={slideshowDelay:5,overlayOpacity: \'0.2\'}" title="'.$slideImg->title[$k].'"><span id="phocagallerycontent'.$c.'"></span></a>'. "\n";
	}
}
options={slideshowDelay:5,overlayOpacity: \'0.2\' - it isn't required, this is my options to display shadowbox

kindUp :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slideshow - link to detail view with player

Post by Jan »

Ok, thank you for this info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply