Video not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarceloBR
    Member
    • Oct 2008
    • 37
    • 4.2.X

    [Forum] Video not working?

    Just installed vb4 gold, video doesnt seem to be working:



    video tags are there, I checked, but video is not being shown, only the link.

    Any thoughts?
    Last edited by MarceloBR; Mon 21 Dec '09, 5:24pm.
  • nubian
    Senior Member
    • Nov 2004
    • 495

    #2
    Quote yourself on that site of yours and and post it here

    Comment

    • MarceloBR
      Member
      • Oct 2008
      • 37
      • 4.2.X

      #3
      Thanks, problem solved: it was lacking the "http://"

      Comment

      • Stryker412
        Member
        • May 2005
        • 81
        • 3.8.x

        #4
        How do you change the default size of the video?

        I posted this video on my site and it's in a 4:3 window.


        Community Multiplayer Gaming
        www.osfhome.com

        Comment

        • nubian
          Senior Member
          • Nov 2004
          • 495

          #5
          Originally posted by Stryker412
          How do you change the default size of the video?

          I posted this video on my site and it's in a 4:3 window.


          Copy and paste what's in your bbcode_video template.

          Comment

          • Stryker412
            Member
            • May 2005
            • 81
            • 3.8.x

            #6
            Code:
            <vb:if condition="$provider == 'hulu'">
            <object type="application/x-shockwave-flash" width="512" height="296" 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'" />
            <object type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}">
                <param name="movie" value="http://www.youtube.com/v/{vb:raw code}" />
                <param name="wmode" value="transparent" />
            </object>
            <vb:elseif condition="$provider == 'vimeo'" />
            <object type="application/x-shockwave-flash" width="640" height="360" 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 type="application/x-shockwave-flash" width="420" height="339" 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 type="application/x-shockwave-flash" width="400" height="345" 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 type="application/x-shockwave-flash" width="400" height="326" 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'" />
            <object type="application/x-shockwave-flash" width="576" height="432" data="http://www.facebook.com/v/{vb:raw code}">
                <param name="movie" value="http://www.facebook.com/v/{vb:raw code}" />
                <param name="wmode" value="transparent" />
            </object>
            </vb:if>
            Community Multiplayer Gaming
            www.osfhome.com

            Comment

            • nubian
              Senior Member
              • Nov 2004
              • 495

              #7
              So my guess is that your YouTube videos are being posted in the 4:3 aspect ratio instead of the 16:9 widescreen even though your template states otherwise.
              If so, what does your bbcode_video_vbulletin.xml file (/includes/xml/bbcode_video_vbulletin.xml) file show within the provider tags for YouTube?

              Comment

              • Stryker412
                Member
                • May 2005
                • 81
                • 3.8.x

                #8
                Code:
                title>YouTube</title>
                        <url>http://www.youtube.com</url>
                        <regex_url><![CDATA[http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)]]></regex_url>
                        <regex_scrape></regex_scrape>
                        <embed><![CDATA[<object type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}">
                    <param name="movie" value="http://www.youtube.com/v/{vb:raw code}" />
                    <param name="wmode" value="transparent" />
                </object>]]></embed>
                    </provider>
                Here's how it looks:

                shatteredplanet.org is your first and best source for information about shatteredplanet. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!
                Community Multiplayer Gaming
                www.osfhome.com

                Comment

                • nubian
                  Senior Member
                  • Nov 2004
                  • 495

                  #9
                  Do the following:
                  • Edit your includes/config.php and find this: (I don't recommend doing this on a live forum)
                    At least close it for the time being.
                    PHP Code:
                    <?php
                    and place this under it...
                    PHP Code:
                    $config['Misc']['debug'] = true
                    So it looks like this...
                    PHP Code:
                    <?php
                    $config
                    ['Misc']['debug'] = true;
                  • Go to your Style & Templates -> Style Manager -> MASTER STYLE -> Edit Templates -> BB Code Layout Templates -> bbcode_video
                  • I believe your old dimensions show this:
                    width="425" height="344"
                    Change the width & height to this:
                    width="640" height="385"
                  • Save the template
                  • Post a YouTube video or re-visit one you have already posted
                  • ???
                  • Profit

                  If all is good then remove this from the config.php file.
                  PHP Code:
                  $config['Misc']['debug'] = true
                  and re-open your forum.

                  Comment

                  • Stryker412
                    Member
                    • May 2005
                    • 81
                    • 3.8.x

                    #10
                    Sorry I haven't gotten back sooner. I tried your changes but the dimensions were already set to 640x385.

                    I tried another video today and same thing.

                    shatteredplanet.org is your first and best source for information about shatteredplanet. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!


                    I wonder if it's because I had AME on my previous forum version and imported the database, however I did uninstall all products before upgrading to vb4.

                    Edit: Nevermind I fixed it. It turns out that includes/xml/hooks_vbcms.xml was never uploaded for some reason. It's working now.
                    Last edited by Stryker412; Fri 8 Jan '10, 10:44am.
                    Community Multiplayer Gaming
                    www.osfhome.com

                    Comment

                    • nubian
                      Senior Member
                      • Nov 2004
                      • 495

                      #11
                      post the bbcode_video templates of both the master style template and the default style template.

                      Comment

                      Related Topics

                      Collapse

                      Working...