How make auto play the slide option when open image?

Phoca Gallery - image gallery extension
kostianev
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Nov 2015, 23:28

How make auto play the slide option when open image?

Post by kostianev »

Dear,

I have used Phoca Gallery for my galleries and try to set option when user open for preview the image, to see the next images automatic after 3 seconds with autoplay? How can I achieve that?

Now the user must click play button to play the slides with images.
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: How make auto play the slide option when open image?

Post by christine »

Hi,

can only tell you for Detail View - Shadowbox (image only):

/administrator\components\com_phocagallery\libraries\phocagallery\render\renderdetailwindow.php on ca line: 150 you will find this here:
a)

Code: Select all

/*if ( $libraries['pg-group-shadowbox']->value == 0 ) {
				$document->addStyleSheet(JURI::base(true).'/components/com_phocagallery/assets/shadowbox/shadowbox.css');
				$document->addScript(JURI::base(true).'/components/com_phocagallery/assets/shadowbox/shadowbox.js');
				$document->addCustomTag('<script type="text/javascript">
					Shadowbox.init({
					'.$sbSettingsO.'
					});
				</script>');
			}*/
Code is "commented out" > remove the: /* at the beginning and the: */ at the end.

Below (ca. line 160) you will find:
b)

Code: Select all

if ( $libraries['pg-group-shadowbox']->value == 0 ) {
                $document->addStyleSheet(JURI::base(true).'/components/com_phocagallery/assets/shadowbox/shadowbox.css');
                $document->addScript(JURI::base(true).'/components/com_phocagallery/assets/shadowbox/shadowbox.js');
                $document->addCustomTag('<script type="text/javascript">
                    var SBpauseOnStart = "true";
                    Shadowbox.init({
                    '.$sbSettingsO.',
                    continuous: true,
          onFinish: function(){setTimeout(\'if(SBpauseOnStart == "true"){SBpauseOnStart = "done";Shadowbox.pause();}\', 375)},
          onClose: function(){SBpauseOnStart = "true";}
                    });
                </script>');
            }

comment out: /* at the beginning and with: */ at the end.

Kind regards, Christine
kostianev
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Nov 2015, 23:28

Re: How make auto play the slide option when open image?

Post by kostianev »

Thank you. Now working, I am using the shadowbox.
Can you tell me, while I am using shadowbox, why my download link/icon don't show? I set up to show in administrator settings, but not showing in category view of the images.
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: How make auto play the slide option when open image?

Post by christine »

Hi,

did you follow this: https://www.phoca.cz/documents/2-phoca-g ... e-joomla-3
Display Download Icon (Hide | Display | Display (direct download)) Display or hide icon of download link in Category Vie
Kind regards, Christine
kostianev
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Nov 2015, 23:28

Re: How make auto play the slide option when open image?

Post by kostianev »

Yes, I tried this option in component Phoca Gallery settings. Please, see my screenshots.
Here is the website for test view.

https://db.tt/MLi3N0K5xu
https://db.tt/DbJOelefPM
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How make auto play the slide option when open image?

Post by Jan »

Hi, I don't see the gally on given link? Is this plugin or component?

Jan
If you find Phoca extensions useful, please support the project
kostianev
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Nov 2015, 23:28

Re: How make auto play the slide option when open image?

Post by kostianev »

So, any suggestions? Why my download link not showing?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How make auto play the slide option when open image?

Post by Jan »

Are they display other icons (try to enable other icons: link to detail, to info, etc.)?

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