miniBB ® 


Support Forums
 | Start | Register | Search | Statistics | File Bank | Manual |
News miniBB Support Forums / News /  

YouTube BB codes solution updated

Author Paul
Lead Developer 
#1 | Posted: 8 Apr 2015 15:27 
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
Active Member
#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:

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:


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

Author Paul
Lead Developer 
#3 | Posted: 8 Apr 2015 19:39 
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, 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
Active Member
#4 | Posted: 8 Apr 2015 21:44 
OK, it's working as it should then, thanks..

News miniBB Support Forums / News /
 YouTube BB codes solution updated
 Share Topic's Link

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

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.

Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.


miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.