Announcement

Collapse
No announcement yet.

Change embedded YouTube preview size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] Change embedded YouTube preview size

    I know this has been asked before and so far I have not found a straight up answer on how to do this. I need the preview youtube video to be even SMALLER than what it is at default. How do I do this? I checked the bb-code template for video and the only size in there is the large default size. I see nothing for the smaller preview.

    Also, how do I increase the amount of text in the preview?

    I just upgraded from 3.x to 4 CMS and am a little overwhelmed, meanwhile my site is down. I appreciate any help that you can give me.

    Thanks.

  • #2
    Doing this is a bit complicated and not really supported. You have to make the modifications at your own risk.

    1) You need to edit the includes/xml/bbcode_video_vbulletin.xml file and change the sizes in there. You'll see two sections for YouTube. YouTube (Long) and YouTube (Short). You'll need to edit the height and width for the iFrame on each section.

    2) You need to put your vBulletin into Debug Mode. https://www.vbulletin.com/docs/html/debug_mode

    3) Finally, you need to go into the AdminCP and there will be a new menu on the left called Rebuild. From there you can rebuild your video BBCode.

    4) Next, check your template and make sure it has the correct values.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    Related Topics

    Collapse

    • lange
      Video issues, black bars and too small
      by lange
      Hi,

      On vBulletin 5.5.0 by using the BBcode by default, videos are inserted with two black bars, videoz are too small by default.

      How to remove the black bars and how to increase...
      Thu 7 Feb '19, 4:19pm
    • aspiredl
      Increase size of embedded videos
      by aspiredl
      Hello,

      I was wondering what the best way to increase the size of embedded videos on vBulletin 5? I want it to be the regular YouTube video size rather then such a small box.

      ...
      Wed 13 Nov '13, 9:50pm
    • GrdPa
      BBCode [video]
      by GrdPa
      Hello,
      The BBCode [video] create an iframe with a width = 640. This is not adaptive with the vbulletin's defaut template which is adapted to the resolution of the screen.
      It is more ergonomic...
      Mon 14 Jan '13, 10:12pm
    • webcms
      Video Player dimensions
      by webcms
      I need to set the player dimensions same as the initial thumbnail (300x225) - (if the users need, they can click the full screen icon in the player).

      When I click the thumbnail, the player
      ...
      Tue 24 Mar '20, 8:43am
    • humpty
      Video Size
      by humpty
      Is there any way to adjust the size of embedded videos from YT using the Post Link feature? At present the videos are very small - the same size you see them on YT would be preferred if it's possibl...
      Sun 30 Dec '12, 10:10am
    Working...
    X