youtube-nocookie.com  

  RSS

mickdom
(@mickdom)
Active Member Customer
Joined: 7 months  ago
Posts: 17
16/05/2018 9:41 pm  

Hi

I'm trying to replace embedded Youtube videos with youtube-nocookie.com and do this:
I replace the code in wpforoembeds.php from line 88 onwards

array ( '# [^ \ s \ r \ n \ t \' \ "<>] * https: // (: www \) youtube \ .com + v = ([^ \ \.?.? s \ r \ n \ t \ 0 <>] +) [^ \ s \ r \ n \ t \ '\ "<>] * # isu', '<div class =" wpf-video "style =" width : '. $ w.'; height: '. $ h.' "> <iframe style =" width: '. $ w.'; height: '. $ h.' "src =" // www.youtube- nocookie.com/embed/$1 "frameborder =" 0 "allowfullscreen> </ iframe> </ div> ',' youtube.com '),
array ( '# [^ \ s \ r \ n \ t \' \ "<>] * https: // (: www \) youtu \ .be \ / ([^ \ s \ r \ n.? \ t \ 0 <>] +) [^ \ s \ r \ n \ t \ '\ "<>] * # isu', '<div class =" wpf-video "style =" width:'. $ w . '; height:'. $ h. '"> <iframe style =" width:'. $ w. '; height:'. $ h. '"src =" // www.youtube-nocookie.com/embed / $ 1 "frameborder =" 0 "allowfullscreen> </ iframe> </ div> ',' youtube.com '),

Is there a better way to do that? Thanks for your help! I'm a beginner:)


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 10 months  ago
Posts: 1068
16/05/2018 9:55 pm  

Hi @mickdom,

Please don't do any customization. In the regex, every pattern is very important so don't change anything. Explain more in detail what you need to change, we'll try to help you if it possible.


ReplyQuote
mickdom
(@mickdom)
Active Member Customer
Joined: 7 months  ago
Posts: 17
16/05/2018 10:07 pm  

Hi Astghik,

thanks for your help! I would like to use the privacy-enhanced mode for embedding Youtube videos.

youtube

Best regards


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 10 months  ago
Posts: 1068
16/05/2018 10:48 pm  

Also, please note that the regex that you left in the previous post can damage your post contents.

Please provide us some information about  youtube-nocookie.com (may be documentation), we'll take it into consideration to add in next version release.


mickdom liked
ReplyQuote
mickdom
(@mickdom)
Active Member Customer
Joined: 7 months  ago
Posts: 17
16/05/2018 11:31 pm  

Hi Astghik, thanks for your information!

That's all I found about youtube-nocookie:

https://support.google.com/youtube/answer/171780?visit_id=1-636620943329167783-4190845816&rd=1 (How this works on Youtube, is shown in the video)

https://productforums.google.com/forum/#!topic/youtube/KVKLo8wfYgg

Youtube will only replace the youtube.com URL with the youtube-nocookie.com URL if you enable privacy-enhanced mode.

Best regards!


Astghik and Razmik liked
ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 10 months  ago
Posts: 1068
17/05/2018 5:37 pm  

Hi @mickdom,

Thank you for sharing this information. We will include this in wpForo Embeds next version release. Please wait for the next update.


mickdom liked
ReplyQuote
mickdom
(@mickdom)
Active Member Customer
Joined: 7 months  ago
Posts: 17
17/05/2018 10:09 pm  

Hi Astghik

Wow, thanks for the quick support and upcoming implementation. Great support!

I like your forum and the addons 🙂

Best regards!


ReplyQuote
Share: