Youtube bbc display bug when combined with centering bbc

Started by Nightcrawler99, July 08, 2025, 01:54:03 PM

Previous topic - Next topic

Nightcrawler99

This is a problem with SMF 2.1.6. I didn't see the problem with 2.1.4 (did not run 2.1.5 to check there).

You can reproduce it right here on the official SMF forum!
https://www.simplemachines.org/community/index.php

I will demonstrate in this post.

The Problem:

Code that won't display:
[center][youtube]VeF-51MQ51A[/youtube][/center]
Output Below:

Code that will display:
[youtube]VeF-51MQ51A[/youtube]
Output Below:


Possible Cause:

From my limited understanding, I have found that the centering CSS below seems to block it from displaying. If you disable this line, it will display. Doing that of course probably breaks the centering tag. I don't know how to properly fix it.

Index.css Line 4012

.inline_block {
display: inline-block;
}


If anyone can please help come up with a proper PHP or CSS fix for this, it would be greatly appreciated.


Nightcrawler99

Thank you. :) That topic didn't come up in my searches.

Advertisement: