Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

You Tube preview suppression
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3362
Page 1 of 1

Author:  flashbrack [ 9. Jul 2012, 01:43 ]
Post subject:  You Tube preview suppression

Please advise how to add the ?rel=0 parameter to a You Tube movie address in the TWG gallery, to suppress the irrelevant previews at the end of the movie. I cannot simply add ?rel=0 to the You Tube address string as ? is not a valid file name character and is rejected.

I like being able to add movies to the gallery, but if I have to have the previews at the end I will go back to embedding the You Tube movie separately.

Author:  TinyWebGallery [ 9. Jul 2012, 11:00 ]
Post subject:  Re: You Tube preview suppression

You have to add this to the

$video_autostart_parameter

in the config. This parameters are added at the end of the url.

Best, Michael

Author:  flashbrack [ 10. Jul 2012, 04:34 ]
Post subject:  Re: You Tube preview suppression

Thanks Michael. I tried that and my_config.php (on the server) now has the $video_autostart_parameter as follows (I seem to have it twice, is this a problem?)

$additional="\$video_autostart_parameter=\'&autoplay=1&rel=0\'; // (String) This is the extension you have to add after the link to enable autoplay - his is different for youtube and dailymotion - please read the howto 34 for more details";
/* extra parameters set in the additional page in the TWG admin */
$video_autostart_parameter='&autoplay=1&rel=0'; // (String) This is the extension you have to add after the link to enable autoplay - his is different for youtube and dailymotion - please read the howto 34 for more details

However I still get previews at the end on the movie.

HowTo #34 refers to a file called video.php that apparently also includes the autostart parameter. However I have been unable to locate that file to verify its contents. Do I need to look at that? If so where is it?

I am very impressed with the TWG, just having a few difficulties getting it to do exactly what I want. One very impressive feature is how it adapts to differnet screen sizes!

Another minor point is that I keep getting a "Please register for more features" message, when I have in fact registered. How can I suppress that message, I can't find out in the TWG admin or howtos.

ATB
Rob

Author:  TinyWebGallery [ 10. Jul 2012, 09:34 ]
Post subject:  Re: You Tube preview suppression

in my_config.php it only seems to be twice. One is the real parameter and the other one is the content of the additional field.

Have you looked in the source code of the page if the parameter is added properly?

I just tested with
$video_autostart_parameter="&rel=0&autoplay=1";

and there is works fine.

If you don't know what video.php is please read howto 34 again ;). There is is explained in detail.

Best, Michael

Author:  flashbrack [ 10. Jul 2012, 10:20 ]
Post subject:  Re: You Tube preview suppression

Thanks Michael, putting the rel=0 parameter into the video.php file inside the Videos folder has done the trick.

I would still like to suppress the "Register for more features" message though. Any suggestions on that?

Author:  TinyWebGallery [ 10. Jul 2012, 10:27 ]
Post subject:  Re: You Tube preview suppression

If you have register is should be gone.

But actually this text is only an example how to include some text.
It is explained even in the demo text how to remove it. And many times in the forum...
There is a search option in the forum. Simply use it.

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/