miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
News & Announcements miniBB Support Forums / News & Announcements /   

YouTube BB codes solution updated

Author Paul
Lead Developer
#1 | Posted: 8 Apr 2015 15:27 | Edited by: Paul 
YouTube did it again: their famous trick to change the embedding codes, which happens at least once a year and makes pain to all developers. It appears now they completely switched to the secure protocol (HTTPS), and that changed their embedding/sharing codes again. Now all

That's why we were forced to update the current solution for miniBB - I hope that was the last change from YouTube for the closes couple of years, as that becomes truly annoying to support them for free.

Note: it seems the older YouTube codes still work, so you don't have to care about the older content on your forums, at least now. MiniBB solution also contains the decoding function, which will automatically convert all older codes to the new format upon editing the message, so the only update you should do by now, is to update your bb_codes.php file and hopefully nothing else by the moment.

Also, the earlier solution has been updated to include the instruction about avoiding the cancelled YouTube button like it was mentioned here. The Compiler also includes now this little update to templates/form.js.

Post updates in this thread, if necessary.

Author tom322
Registered
#2 | Posted: 8 Apr 2015 17:17 
I tested it and it works well except in one case (not sure if they won't change it though or if it's crucial). I mean - when you go to watch a video, for example: https://www.youtube.com/watch?v=qO8ax6KpjP0

then when you right-click on the video, there is in the menu: 'Copy Video URL' (or Copy Video URL in Current Time). Then the URL is like:

https://www.youtube.com/watch?feature=player_detailpage&v=qO8ax6KpjP0

or

https://www.youtube.com/watch?feature=player_detailpage&v=qO8ax6KpjP0#t=34

which doesn't seem to work with the code..

Author Paul
Lead Developer
#3 | Posted: 8 Apr 2015 19:39 | Edited by: Paul 
It's not about the YouTube embedding code. It's about Video URL, which is about [url] code ;)

There's a "Share" tab under each video, which the only should be used either to provide a valid sharing link, either a direct embedding HTML. There are hundreds of options on YouTube, which could transform the original (clean) address from the format https://www.youtube.com/watch?v=SOMETHING, adding even more params in it - that doesn't mean they all could and should be inserted in the [youtube] code - so it's not the task and/or the deal regarding miniBB solution.

Author tom322
Registered
#4 | Posted: 8 Apr 2015 21:44 
OK, it's working as it should then, thanks..

News & Announcements miniBB Support Forums / News & Announcements / YouTube BB codes solution updated Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB