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.
Slideshow - link to detail view with player
-
- Phoca Newbie
- Posts: 6
- Joined: 04 Oct 2009, 10:30
-
- Phoca Newbie
- Posts: 6
- Joined: 04 Oct 2009, 10:30
Re: Slideshow - link to detail view with player
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:
insert this line:
2)
after switch loop switch ($image) - after code line about 136 - there is:
insert this line:
3)
change output at code into lines about 203-210 - there is:
changed into else:
options={slideshowDelay:5,overlayOpacity: \'0.2\' - it isn't required, this is my options to display shadowbox
kindUp
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++) {
Code: Select all
$slideImg = new JObject();
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";
Code: Select all
$slideImg->link[] .= PhocaGalleryFile::getFileOriginal($images[$i]->filename , 1);
$slideImg->title[] .= $images[$i]->title;
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>';
}
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";
}
}
kindUp
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Slideshow - link to detail view with player
Ok, thank you for this info.
Jan
Jan
If you find Phoca extensions useful, please support the project