On a VBulletin forum I have, there are two BBCodes for Youtube videos, "[youtube]" and "[youtubehd]".
"Youtube" gives a small/regular video appearance size in the forum, while "Youtubehd" gives a much larger appearance.
I'm wondering if there's a way that can be done here? In a user friendly simple fashion without the poster needing to type in loads of HTML etc?
CSS
I can force all youtube appearences to be larger with the CSS:-
One work around?
If I use the CSS hack above with a further one for EMBED:-
Anyone have anything clever that might come to the rescue?
"Youtube" gives a small/regular video appearance size in the forum, while "Youtubehd" gives a much larger appearance.
I'm wondering if there's a way that can be done here? In a user friendly simple fashion without the poster needing to type in loads of HTML etc?
CSS
I can force all youtube appearences to be larger with the CSS:-
- Code:
.postbody iframe[src*="www.youtube.com"] {
width: 977px;
height: 550px;
}
One work around?
If I use the CSS hack above with a further one for EMBED:-
- Code:
.postbody iframe[src*="www.youtube.com"] {
width: 977px;
height: 550px;
}
.link_embed iframe[src*="www.youtube.com"] {
width: 500px;
height: 281px;
}
- Code:
[youtube]xyz12345678[/youtube]
- Code:
[embed]https://www.youtube.com/watch?v=xyz12345678[/embed]
Anyone have anything clever that might come to the rescue?
Last edited by NeilF on August 12th 2024, 10:09 am; edited 1 time in total