Video BBcode not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • derUnterstrich
    New Member
    • Feb 2017
    • 7
    • 5.2.x

    [Resolved] Video BBcode not working

    After insert an embed Code/ URL from Youtube I only get an image. After klicking on the play button, the ajax request (community/ajax/render/bbcode_video) get only an empty json respons:
    template:""
    css_links:Array

    The parameters given are:
    code:"yjzUxDhuXig"
    provider:"youtube"
    securitytoken:"greatesecuritytoken-trustme"

    I checked the template mediabbcode_video and allowed the bbcodes.

    I didn’t find any information in this forum and I have no idea what sort of problem it is.
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4011
    • 5.7.X

    #2
    Check the bbcode_video template in Style Manager if it exists and if it's not empty. Did you edit it before?

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • derUnterstrich
      New Member
      • Feb 2017
      • 7
      • 5.2.x

      #3
      There is only the mediabbcode_video template. We don't edit it before.

      HTML Code:
      <vb:if condition="$provider == 'hulu'">
      <object class="restrain" type="application/x-shockwave-flash" width="128" height="74" data="http://www.hulu.com/embed/{vb:raw code}">
          <param name="movie" value="http://www.hulu.com/embed/{vb:raw code}" />
          <param name="wmode" value="transparent" />
      </object>
      <vb:elseif condition="$provider == 'youtube'" />
      YES YES YES
      <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode=opaque&autoplay=1"></iframe>
      <vb:elseif condition="$provider == 'vimeo'" />
      <object class="restrain" type="application/x-shockwave-flash" width="160" height="96" data="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}">
          <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}" />
          <param name="wmode" value="transparent" />
      </object>
      <vb:elseif condition="$provider == 'dailymotion'" />
      <object class="restrain" type="application/x-shockwave-flash" width="140" height="112" data="http://www.dailymotion.com/swf/{vb:raw code}">
          <param name="movie" value="http://www.dailymotion.com/swf/{vb:raw code}" />
          <param name="wmode" value="transparent" />
      </object>
      <vb:elseif condition="$provider == 'metacafe'" />
      <object class="restrain" type="application/x-shockwave-flash" width="100" height="86" data="http://www.metacafe.com/fplayer/{vb:raw code}.swf">
          <param name="movie" value="http://www.metacafe.com/fplayer/{vb:raw code}.swf" />
          <param name="wmode" value="transparent" />
      </object>
      <vb:elseif condition="$provider == 'google'" />
      <object class="restrain" type="application/x-shockwave-flash" width="100" height="82" data="http://video.google.com/googleplayer.swf?docid={vb:raw code}">
          <param name="movie" value="http://video.google.com/googleplayer.swf?docid={vb:raw code}" />
          <param name="wmode" value="transparent" />
      </object>
      <vb:elseif condition="$provider == 'facebook'" />
          <iframe src="https://www.facebook.com/video/embed?video_id={vb:raw code}" width="<vb:if condition="isset($width) AND $width > 0">{vb:raw width}<vb:else />144</vb:if>" height="<vb:if condition="$height">{vb:raw height}<vb:else />108</vb:if>" frameborder="0"></iframe>
      </vb:if>

      Comment

      • glennrocksvb
        Former vBulletin Developer
        • Mar 2011
        • 4011
        • 5.7.X

        #4
        I don't know why bbcode_video template is missing. It should exist. Try creating it manually.

        Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73978

          #5
          Please run upgrade.php on your site. This will import all templates again and rebuild the video bbcodes so they are up to date.
          Translations provided by Google.

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

          Comment

          • derUnterstrich
            New Member
            • Feb 2017
            • 7
            • 5.2.x

            #6
            THX. now it works!
            Last edited by derUnterstrich; Tue 7 Feb '17, 10:24pm.

            Comment

            Related Topics

            Collapse

            Working...