MyBB Community Forums

Full Version: Need to add embed options
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
template video_bitchute_embed is similar.
<iframe width="640" height="360" src="https://bitchute.com/embed/{$id}" frameborder="0" allowfullscreen></iframe>

class_parser.php code for both is simple, until they permit variations like youtube uses. Since the rumble video plays without requiring the $queries element, I've dropped it as unnecessary.

				case "rumble":
					$id = $path[2]; 			// https://www.rumble.com/embed/vxxxxxx/?pub=xxxx
				break;
			case "bitchute":
					$id = $path[2];				 // https://www.bitchute.com/video/xxxxxxx
				break;

And since I'm adding these features for my forum, if it breaks in the future, I'll return with a fix. I've already made so many core edits to fix PHP8 warnings, one more mod to keep track of is a drop in the bucket. Big Grin
(2023-02-23, 01:58 AM)HLFadmin Wrote: [ -> ]template video_bitchute_embed is similar.
<iframe width="640" height="360" src="https://bitchute.com/embed/{$id}" frameborder="0" allowfullscreen></iframe>

class_parser.php code for both is simple, until they permit variations like youtube uses. Since the rumble video plays without requiring the $queries element, I've dropped it as unnecessary.

				case "rumble":
					$id = $path[2]; 			// https://www.rumble.com/embed/vxxxxxx/?pub=xxxx
				break;
			case "bitchute":
					$id = $path[2];				 // https://www.bitchute.com/video/xxxxxxx
				break;

And since I'm adding these features for my forum, if it breaks in the future, I'll return with a fix. I've already made so many core edits to fix PHP8 warnings, one more mod to keep track of is a drop in the bucket. Big Grin

Thank You for your help.... I am going to have a lot of happy campers... Thanks again...
Pages: 1 2