Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Remove Mozallowfullscreen, Webkitallowfullscreen And Frameborder From Iframe Attributes

wordpress youtube

Best Answer eric, 01 October 2014 - 10:19 PM

This is actually an expected behavior of TubePress 4.x and above; templates are cached on the filesystem, so any edits won't show up without user intervention. We are working furiously to polish and document TubePress 4, so for now please continue to ask your questions here and we will be glad to assist.

 

In short, if you edit a template in TubePress 4.x and above, you'll need to clear the "system cache" so TubePress sees the changes. You can do this by adding tubepress_clear_system_cache=true to the end of the address bar. For instance,

http://my.blog.com/something.php?tubepress_clear_system_cache=true

or

http://my.blog.com/something.php?foo=bar&tubepress_clear_system_cache=true

Please give that a try and let us know how it works for you. Thanks!

Go to the full post


  • Please log in to reply
12 replies to this topic

#1 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 28 September 2014 - 02:22 AM

May I know how can I remove the iframe's attributes webkitallowfullscreen, mozallowfullscreen and frameborder? I'm getting error from w3c validator with this attributes. Hope you can help me please. I tried to change \src\add-ons\youtube_v2\templates\single\embedded but unfortunately nothing change. 



#2 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 29 September 2014 - 07:48 AM

Please help me, hope someone can answer me.



#3 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 29 September 2014 - 07:04 PM

Hi kitchary,

 

Which player implementation are you using?

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#4 MashedPotatoh

MashedPotatoh

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 September 2014 - 10:05 PM

Hello brandon,

 

I also need to do the same, (remove iframe's attributes webkitallowfullscreen, mozallowfullscreen and frameborder). I'm currently using the default theme right now on my website.

 

Hopefully you could help me with this. :)

 

 

Thanks and Regards,



#5 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 29 September 2014 - 10:09 PM

Hello brandon,

 

Im using youtube Sir.

 

Thanks for the reply.



#6 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 30 September 2014 - 11:27 PM

Hello Kitchary,

 

You will need to edit the file titled: youtube_iframe.html.twig located here: tubepress_4_0_0_RC2\src\add-ons\youtube_v2\templates\single\embedded

 

Once you open that file to edit, you will see the <iframe> tag as well as the webkitallowfullscreen mozallowfullscreen allowfullscreen attributes.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#7 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 30 September 2014 - 11:30 PM

Hi MashedPotatoh,

 

You will have to edit the player located in the similar location, however it depends on if you are using YouTube or Vimeo as the source of your videos, as the default player is based on video source.

 

Youtube: \tubepress_4_0_0_RC2\src\add-ons\youtube_v2\templates\single\embedded\youtube_iframe.html.twig

Vimeo: \tubepress_4_0_0_RC2\src\add-ons\vimeo_v2\templates\single\embedded\vimeo_v2.html.twig

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#8 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 01 October 2014 - 06:49 AM

Hi brandon,

 

I tried exactly to edit that file and remove those attributes and nothing change. By the way I used your new release candidate 4.0.0. RC2 because I got so many errors on w3c validation on your version 3 released. Hoping you have enought time to help me.

 

Thank you so much.



#9 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 01 October 2014 - 08:12 AM

One more thing, I also tried to delete the content of youtube_iframe.html.twig and to my surprise the video on my site is still showing and playing perfectly which i think is not normal, but when I tried to delete the whole file of youtube_iframe.html.twig the video will not show and an error message appears which is normal. What do you think is the problem Sir Brandon?

 

Thanks.



#10 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 01 October 2014 - 07:36 PM

I noticed something, I tried to install a new wordpress and have tubepress on it. Before I activate the plugin I edit youtube_iframe.html.twig and remove the attributes and IT WORKS. But when I tried to add again those attributes and reload the site it seems nothing changes. It's like tubepress recognize the file only once and save it somewhere so whatever changes you made youtube_iframe.html.twig is not reading it. I wonder why and where it save those data.



#11 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 01 October 2014 - 08:58 PM

Hi Kitchary,

 

I have verified that editing the file does not update it in WordPress, as it should. I have notified the developers of this issue and will let you know when I have more information.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#12 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 01 October 2014 - 10:19 PM   Best Answer

This is actually an expected behavior of TubePress 4.x and above; templates are cached on the filesystem, so any edits won't show up without user intervention. We are working furiously to polish and document TubePress 4, so for now please continue to ask your questions here and we will be glad to assist.

 

In short, if you edit a template in TubePress 4.x and above, you'll need to clear the "system cache" so TubePress sees the changes. You can do this by adding tubepress_clear_system_cache=true to the end of the address bar. For instance,

http://my.blog.com/something.php?tubepress_clear_system_cache=true

or

http://my.blog.com/something.php?foo=bar&tubepress_clear_system_cache=true

Please give that a try and let us know how it works for you. Thanks!



#13 kitchary

kitchary

    Newbie

  • Members
  • Pip
  • 7 posts
  • LocationPhilippines

Posted 01 October 2014 - 11:06 PM

Hi Eric and Brandon,

 

Thank you for the quick respond and answer to my question. IT WORKS LIKE A CHARM! Thank you so much!