• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Youtube element - allowfullscreen ?

rbuelund

Member
If I set the "Allow fullscreen button" to yes on the youtube element, I am still not allowed to press the Fullscreen button - it is there but cannot be pressed ??
If I watch the source code on the site I also cannot see the tag "allowfullscreen" ?? The inserted code from the field looks like this:

<iframe
type="text/html"
width="100%"
height="300px"
src="https://www.youtube.com/embed/EIFQ9yczcJ0?autoplay=0&fs=1"
frameborder="0"
></iframe>
 
Just found the solution myself. In the file /plugins/fabrik_element/youtube/layouts/fabrik-element-youtube-detail.php there needs to be added som code:
From:
<iframe
type="text/html"
width="<?php echo $d->width;?>"
height="<?php echo $d->height; ?>"
src="<?php echo $d->url; ?><?php echo $d->vid; ?>?autoplay=<?php echo $d->autoplay; ?>&fs=<?php echo $d->fs; ?>"
frameborder="0"
></iframe>

to this:

<iframe
type="text/html"
width="<?php echo $d->width;?>"
height="<?php echo $d->height; ?>"
src="<?php echo $d->url; ?><?php echo $d->vid; ?>?autoplay=<?php echo $d->autoplay; ?>&fs=<?php echo $d->fs; ?>"
frameborder="0"
<?php if ($d->fs) {echo 'allowfullscreen';} ?>
></iframe>

Then the fullscreen button also works for youyube videos. Could you please add this code to github ?
 
Could you please add this code to github ?
You could do a pull request there yourself.

Though I also think that most users must like to have the fullscreen option by default, I'm not so sure if it makes sense to put it in after all these years...
Especially since there's no need for changing the core code: anyone can make it a layout override and add this and other attributes, or else: http://fabrikar.com/forums/index.ph...ing-an-element-jlayout-for-a-specific-element
 
As you write "most users must like to have the fullscreen option by default"
. It does not work as the code is right now.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top