Video Bracket Tags


This plugin provides the ability to embed a number of video objects into your WP pages. The formatting is based off of the familiar BBCode tagging, so anyone who regulars forums these days will already be comfortable with their usage.

[Downloadable On WordPress.org]

This plugin provides the ability to embed a number of video objects into your WP pages. The formatting is based off of the familiar BBCode tagging, so anyone who regulars forums these days will already be comfortable with their usage.

The current supported formats are:

Youtube, Youtube Custom Player, College Humor, Google, Vimeo, Veoh, LiveLeak, Blip.tv, Revver, Daily Motion, MySpace, Hulu, Yahoo

The tags accept a number of parameters. Justification, Width, Aspect Ratio and a text Blurb are all editable on a per tag basis.
[youtube id=”gEzm4qMRC54″ JUST=”CENTER” SIZE=”340″ RATIO=”16:9″ BLURB=”This is my test blurb” AUTOPLAY=”20″]
to create…

Ordering of these parameters does not matter, and no, its not case sensitive.

New Features

  • Options Menu has a new entry to control styling. Raw CSS is available to be tweaked on a site wide basis
  • Added two new providers – MySpace Video and Daily Motion.
  • Autoplay is now fully functional on Vimeo, Google and LiveLeak as well as Youtube Videos.
  • Corrected a linking issue for Veoh and Liveleak
  • Deprecated Float Keyword

Currently Supported Parameters

  • FLOAT – Left Justification
  • LEFT – Left Justification
  • RIGHT – Right Justification
  • NOLINK – Do not include video origin link
  • LINK – Force Inclusion of video origin link
  • Ratio – Accepted Ratios are – 16:9 16:10 1:1 221:100 5:4 – All other provided values are set to 4:3 (the most common video ratio)
  • Numerical Values – If you provide any numerical values you are setting the width of your video.
  • Alphanumeric Values – When you post your video you may want to change the text value from the default to something descriptive or to caption something in the video.

Selected video players only

  • AUTOPLAY – Autoplay video when loaded
  • NOAUTOPLAY – Don’t autoplay video when loaded – if you have autoplay defaulted to on.

Change Log

Version 3.0 – Released September 5th, 2010

  • Cleaned up some of the code
  • Moved to shortcodes
  • removed old and retired video players.
  • Update to include Youtube playlists
  • confirmed plugin works on 3.0.1

Version 2.4.1

  • Tested against WordPress v 2.7

Version 2.4.0

  • Added Yahoo and CNN video embedding support
  • Updated Screenshot
  • Added Screenshot page to WP site listing

Full Changelog

  • hi. Thanks for plugin

    perfect.

    best regards

  • Pingback: A little look into how WordPress handles user roles()

  • Pingback: VBT Update | Gneu.org()

  • Chase

    Running WP 2.6, just tried to activate the plugin and I received this error:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/chase12/public_html/wp-content/plugins/video-bracket-tag/wp-video.php on line 14

  • Bob

    Thank you for this.

    It is quite unfortunate. The plugin worked fine for you on 2.5.x? What version of PHP do you have? This error is often around on PHP 4 when code is written for PHP 5. I use objects and unfortunately the private/public/protected variable notices are all very finicky and don’t work on PHP 4.

    If you would like I can change it to work on PHP4, I think.

  • Bob

    This was a PHP4 issue and Chase has taken to using PHP5 instead =)

  • Pingback: Leonaut.com()

  • This is a really cool plug in

  • Today my wordpress admin panel showed that a new version (2.3.1) of your plugin is available. I ran the update, but wordpress said it couldn’t reactivate Video Bracket Tags.

    I think you made a mistake packaging your version. The archive contains the following folders “/video-bracket-tag/WP Videos/”. The folder “WP Videos” is too much. It breaks the automated updates…

  • Bob

    Thank you for the catch, I have updated the plugin and retagged it as well. Please let me know if there are any further issues =)

  • Great plugin!I used the «Wordpress Video Plugin» before this, but now that YouTube has gone 16:9, I found it somewhat dissatisfying. 🙂

    I was wondering though, if it is possible to set 16:9 as standard for all (YouTube-)videos? And is it possible to get the fullscreen-button that you get if you use the embed-code from YouTube?

  • Bob

    I may be able to pull this off, but it will lead to a very complicated interface. If that is what the community wants i will gladly update it, but without the support of the masses i dont think it is a good idea. Maybe i can create a second version of the plugin that you can toggle to?

    Thoughts?

  • That would be great, but you shouldn’t make a plugin just for me, that’s just waste of time. :p
    Maybe more like a suggestion for possible features of versions to come, if other people than me express interest for it? 🙂

  • This plugin is ace

  • Bob

    Maybe i can provide an advanced switch where everyone else can stick to the standard interface and it can be toggled to allow the customization that you are looking for.

  • Hi, I’m using WordPress 2.7 and when I tried activating the installed plugin, I got this error:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/admor0/public_html/wp-content/plugins/wp-video.php on line 14

    Have any idea what it could be?

    • Bob

      I have the same 2.4.1 VBT and 2.7 WP installed. Can you email me your copy of the plugin? maybe try updating your version again? it may have corrupted.

  • I was so excited, then:

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/content/k/u/i/kuiper/html/wp-content/plugins/video-bracket-tag/wp-video.php on line 14

    I just set up a new database yesterday php 5.0

    is it because of the theme?

    the features look fab.

    • Bob

      Are you sure you are using PHP v. 5.0? I know there were issues with the code working on pre 5.0 servers, but i may have to put some time into figuring out what version of php it is actually dependent on. The line it refers to, assuming you have not done any changes, is the array of supported clients. Maybe there is simply an issue with your current install. Change the version number with the built in editor to something before 2.4.1 and redo the install using wordpress’s built in updater.

      I will be around to help you through it tomorrow morning PST

  • I successfully installed the plugin and video embeds perfectly. However, I can’t change any video values under options > configure videos.

    I’m trying to get rid of the border around the vid but it keeps resetting to the default values. I even changed the code in the PHP file but no luck. Any advice?

  • Bob

    Hmm, that could be a number of issues, but primarily i would ask you to walk me through what it displays to you. I have the exact same version of the plugin on this site and i just spent 20 mins testing the settings and they appear to be fine. I would suggest you dont jump into the PHP end of things without an understanding of the language, but you shouldnt need to edit the border and so forth there.

    Is it not saving or is it throwing errors at you or what?

  • I’m getting the same error as everyone else:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /hermes/bosweb/web279/b2798/sl.cliveyou/public_html/wp/wp-content/plugins/video-bracket-tag/wp-video.php on line 14

    I tried lowering the version number to 2.3.0, but that didn’t change anything (not sure why it would but I’m no programmer). Any ideas?

  • Bob

    As has been covered previously, this is related to your PHP install. I spent a good couple weeks trying to reproduce it on my own servers, but was unable to do so. I am fairly sure it has to do with PHP4 being used but that is not always the case. Please PM me on AIM / Gtalk or one of the others and i will gladly work with you to get this plugin working.

  • sure–what’s your aim screen name?

  • Looked it up–my site uses PHP 4.4.7

    • Bob

      My Screenname is TheAdvocateSB

      That is most likely the problem. If you can switch to 5+. My code is requiring 5 for the OO paradigms. If you cant get it to work i can update my code (not too complicated to move back i don’t think). Do note that PHP4 is no longer being supported so your host will most likely be moving to PHP 5 soon.

  • Me again. I was able to switch to PHP5, which cleared up a number of other problems besides getting the plugin to install, so thanks for pointing me in the right direction.
    New question–how can I mod the plugin to play all videos at a default width? As it stands right now, videos are huge, spilling over into my sidebars. I tried changing $width numbers in the script to see what would happen–and Nothing happened. On a separate note, I don’t seem to have a “video” section under Settings like you mentioned in a different answer. Any ideas why that might be? Thanks for your help!

  • What is the best way to remove all the div tags? I would like the video just be embedded within standard paragraph tags. Super simple.

    I can edit the php code, but I fear this won’t be so helpful when you update the script.

    Thanks in advance for the help!

    • Bob

      as for the div tags, uhm… well the problem here is that the div tags are what vids are typically wrapped in. I can add some further customization but it may require some updates to my generation script.

  • Is there a way to force videos to start in High Quality mode (HQ) for YouTube videos?

    • Bob

      Thank you for the comments, as of right now, no. I dont know of the tags, but ill look into it and maybe release an update in the next week.

  • wiewahr

    Hi, it does not work with blip.tv with Internet Explorer – whats wrong? “Error: No Feed”.
    Any Solution?

  • Hi-All your suggestions worked a few months ago, and I should’ve come back and said Thanks but didn’t. My apologies–VBT is wonderful and I use it all over my blog. Purely FYI, I added a new plugin today, Searchles, and it has some kind of conflict with VBT; as soon as it added it, all the VBT windows in the blog were turned into their text form ([youtube=xxxx]). Once I disabled Searchles, the windows came back. Any thoughts? The Searchles site is http://www.searchles.com
    Thanks for all your hard work!

    • Bob

      Thank you for the update. I am glad that your usage is now working.

      As for searchles killing it, the only thing i can think of is that either my plugin or theirs is doing something wrong and breaking the usage of other plugins. I am pretty sure that mine is compliant but may have misinterpreted something in my implementation. Ill look into this but i cant think of any reason to have it break.

  • Joe

    How about crackle.com?

  • Bob

    Ill have that update for you some time tomorrow i think, ill have to look at their options though.

  • Bob

    Crackle embedding is not as forward as these that I have chosen. I don’t think i am going to update it, although I’ve played with it. Its just not standardized enough to make it worth the while.

    Sorry.

  • Rolf

    Hi Bob, could you please send me your email-address? I inserted youtubepl (playlist-integration) in your plugin and would like to send it to you.
    Rolf

  • Rob

    Hi

    I noticed a comment about adding playlist functionality. I’d love that, it’s what I need to do in one of my sites where there’s only page space for one video window but a lot of videos to show. Is there any chance of it being implemented?

  • Bob

    =)

    The release will be later this week. I had some fixes to commit and the release will be completed. Sorry about the wait.

  • KStar

    If you’re still maintaining this project, I would love to see an option to remove all extra markup i.e. just return the code without the wrapper div and without the link/blurb. I’m working on a video gallery and really only need the object code, so I modified your plugin:

    private static $XtraMarkup = false;

    Then anywhere extra markup gets added, I check the value of self::$XtraMarkup.

    If nothing else, something to consider for the next release. Thanks for the plugin!

  • Bob

    You can already achieve this by removing the styling and setting adding NOLINK.

    Something like this should work for you.

    [youtube id=9IY1hirzk8s NOLINK]

  • Hi Bob,
    I just installed your youtube-plugin. The problem now is that I don’t find the ‘Settings’ > ‘Configure Videos’ Menu because my wordpress-blog ist german. I don’t find your options in the “Einstellungen” menu. It might be the same as settings.
    Regards Jürgen

    • Ah, yes. I was afraid of localization creeping up on me.

      Hopefully i will have time today to go through and add that in and remedy this. My apologies for that slip up.

  • Thanks so much for your hard work!

    I’m trying to get the vimeo videos I just posted to quit autoplaying. The default has always been set to OFF and trying to add “NOAUTOPLAY” to the bracket just breaks the link. Any ideas?

    Thanks again.

    • Nevermind. I just learned via twitter that it was a vimeo-related issue that they have cleared up.