Announcement

Collapse
No announcement yet.

Center video thumbnails

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

  • [Site Builder] Center video thumbnails

    good morning ...
    I have a problem which is to center the thumbnails of the video turned centered by the code center and did not work and tried by the method did not work also is there a solution to this problem:
    Click image for larger version

Name:	3243244242.PNG
Views:	1
Size:	164.5 KB
ID:	4393358

  • #2
    https://tracker.vbulletin.com/vbulle...sues/VBV-18434
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      The solution to the problem is to modify the following code in the template (css_global.css) :
      Code:
      .linkcontainer .videocontainer .videothumbnail,
      .post-content .videocontainer .videothumbnail,
      .OLD__post-content .videocontainer .videothumbnail {
          margin-{vb:stylevar right}:15px;
          margin-bottom:15px;
          border:1px solid {vb:stylevar slideshow_image_background.backgroundColor};
          background: {vb:stylevar slideshow_image_background};
          width:300px;
          height:225px;
          float:{vb:stylevar left};
          position:relative;
      }
      Beginning with line 2318 to 2327
      Replace it :
      Code:
      .linkcontainer .videocontainer .videothumbnail,
      .post-content .videocontainer .videothumbnail,
      .OLD__post-content .videocontainer .videothumbnail {
          margin:0px auto;
          border:1px solid {vb:stylevar slideshow_image_background.backgroundColor};
          background: {vb:stylevar slideshow_image_background};
          width:300px;
          height:225px;
          position:relative;
      }

      Comment


      • In Omnibus
        In Omnibus commented
        Editing a comment
        vBulletin will never recommend anyone edit the default templates. Do so at your own risk.

      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        Now it is probably broken on mobile devices but it is your site. I have to worry about fixes for thousands of websites that will be maintained through upgrades.

      • ABDUR7MAAN
        ABDUR7MAAN commented
        Editing a comment
        I do not force anyone to use the amendments but I find the solution myself better than I wait 10 years until the problem is considered
        On the whole the modification is compatible with mobile :
        https://www.anime-toons.tv/files/upl...665096391.jpeg
    Loading...
    Working...
    X