Page 2 of 5

Re: How to display youtube videos in e.g. shadowbox

Posted: 29 May 2016, 19:15
by Jan
Which version of Phoca Gallery you are using?

Jan

Re: How to display youtube videos in e.g. shadowbox

Posted: 30 May 2016, 09:16
by aromaweb
Phocagallery 4.2.2
Joomla 3.5.1

Re: How to display youtube videos in e.g. shadowbox

Posted: 30 May 2016, 16:44
by christine
Hi,
the current version of PG is: 4.3.0 > https://www.phoca.cz/download/category/1 ... -component
Kind regards, Christine

Re: How to display youtube videos in e.g. shadowbox

Posted: 31 May 2016, 14:41
by headtrick
Same Problem with 4.3 :(

Re: How to display youtube videos in e.g. shadowbox

Posted: 01 Jun 2016, 11:51
by aromaweb
Also for me, same problem!

Re: How to display youtube videos in e.g. shadowbox

Posted: 02 Jun 2016, 01:59
by Jan
Hi, try to set in Options:

It is boxplus (iframe) method
Detail windows: boxplus
YouTube Window: Full video
Pop-up window theme (boxplus): dark square theme
Center on scroll (boxplus): yes
Fit to window (boxplus): yes
Slideshow delay (boxplus): 0
Wrap around at end (boxplus): no
Caption placement (boxplus): below
Navigation bar (boxplus): as overlay
Animation duration (boxplus): 250
Transition effect (boxplus): linear
Context menu (boxplus): display

and then try to edit this file:
components\com_phocagallery\views\detail\tmpl\default_video.php

FROM:

Code: Select all

if ($this->tmpl['ytb_display'] == 1) {
	
	echo '<div style="padding:0;margin:0;" class="pg-ytb-full">'.$this->item->videocode.'</div>';
} else {
TO:

Code: Select all

if ($this->tmpl['ytb_display'] == 1) {
	
	$document	= JFactory::getDocument();
	$document->addCustomTag( "<style type=\"text/css\"> \n" 
			." body {overflow:hidden;} \n"
			." </style> \n");
	
	echo '<div style="padding:0;margin:0;" class="pg-ytb-full">'.$this->item->videocode.'</div>';
} else {

Re: How to display youtube videos in e.g. shadowbox

Posted: 02 Jun 2016, 15:30
by headtrick
This only prevents scrolbars to appear, but also only with the videos, but they are already fine.
Our problem is a mixed category with videos and pictures. Then the pictures are cut like shown.

Best,
Michael

Re: How to display youtube videos in e.g. shadowbox

Posted: 03 Jun 2016, 23:08
by Jan
Hi, yes, YouTube video does have other size (other ratio, etc.) so there are possible two ways:
- use videos and images separately - different categories
- or directly hardcode the modifications so every type gets other detail window :idea:

Jan

Re: How to display youtube videos in e.g. shadowbox

Posted: 06 Jun 2016, 19:47
by headtrick
Hi,

actually I don't find how I can assign different display styles to different categories, only a global option. If this doesn't work I should suggest it as feature request ;)
For hardcoding I don't have enough time :(

Also you should think in making a new modern style that has both advantages of iframe and js method and loads the images on other pages per ajax when needed, maybe I should also make a feature request here:D

Thanks.
Best,
Michael

Re: How to display youtube videos in e.g. shadowbox

Posted: 07 Jun 2016, 09:37
by aromaweb
Jan wrote: - use videos and images separately - different categories
where can I set this?