Announcement

Collapse
No announcement yet.

Video BBcode not working

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

  • [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.

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

    GIPHY for vB5 | AutoLinker | Video Attachments Player | Audio Attachments Player | Clear System Cache Cron | Drag-n-Drop Upload | Topic AJAX AutoUpdate | Force Read Topic | and a lot more...

    Comment


    • #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


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

        GIPHY for vB5 | AutoLinker | Video Attachments Player | Audio Attachments Player | Clear System Cache Cron | Drag-n-Drop Upload | Topic AJAX AutoUpdate | Force Read Topic | and a lot more...

        Comment


        • #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 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


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

            Comment

            Related Topics

            Collapse

            Working...
            X