TMX YouTube thumbnail BB-coder

This script lets you paste the link to one of your YouTube videos, and automatically create BB-code to paste your desired thumbnails and video links in the TMX forum.


Input

* indicates a required field



The Youtube video URL. Example: http://www.youtube.com/watch?v=QeAC6JAz80c (help)



The text that will be replacing the Youtube URL. Example: "Tecfan driving really fast" (help)



Where do you want the link(s) to the video to appear? Above the thumbnails? Below? Both? (help)



Select the thumbnail layout you prefer. The 3 big pictures will be in a list downwards, since they are too big to be placed next to eachother. (help)



When the user presses your video link, what quality should be the default? (help)

Also link to:







These additional links will go behind the link text/YouTube URL so users can select specific video qualities with one click. (help)




Troubleshooting / list of error messages

Error 0: You did not write anything in the required URL field.

Self-explanatory. You have to include the full URL to one of your videos. The URL of the video can be copied from the address bar in your browser when watching the video, or you can right click a youtube video link and press "Copy link location". Paste the URL into the URL field.

Error 1: Invalid URL. You have to paste the full URL, including "http://" at the start of the URL (no spaces).

Your URL did not start with "http://". Possible cause: a space in front of the URL. See above (error 0) to find out how to find and copy the video URL."

Error 2: The video ID was not valid. The video ID can only contain letters (A-Z and a-z), numbers (0-9), "-" and "_".

The video ID wasn't valid because it contained other signs than the ones listed above. See "Error 0" to find out how to properly copy the video URL.

Error 3: The video ID was not valid. The video ID should be 11 characters, yours was less than this.

Self-explanatory. See "Error 0" to find out how to properly copy the video URL.

Error 4: The video ID was not valid. The video ID should be 11 characters, yours was longer than this.

Self-explanatory. See "Error 0" to find out how to properly copy the video URL.


Changelog

v1.2 - 21st February, 2010

  • New: you can now use the Youtube video URL to generate the code instead of a video thumbnail URL!
  • New: you can now select where you want to place the link, or if you even want a link.
  • New: "copy to clipboard" button. Press it, and your text is ready to be pasted. (Requires javascript and possibly Adobe flash player)
  • New: you can now also include links to different qualities of your video.
  • Tweaked: "1 big and 3 small" is now the thumbnail layout.
  • Tweaked: form input fields order.
  • Tweaked: form design, help texts and description texts. A lot more user-friendly now.
  • Tweaked: video quality selection is now more user-friendly and understandable. Change from a text input field to a select box.
  • Tweaked: 720p HD is no longer the default video quality.
  • Tweaked: the "Preview" section now uses the font and font size of the TMX forums.
  • Tweaked: design update. Moved the menu to under the header and added gradient background colors.

v1.1 - 3rd November, 2009

  • New: added support for default.jpg (http://i2.ytimg.com/vi/QeAC6JAz80c/default.jpg). Previously only x.jpg.
  • New: added support for custom link texts (optional).
  • New: added support for two links. One above the thumbnails and one below (optional).
  • New: overview of error codes with information on how to fix the problem.
  • Tweaked: added help abbrs and cleaned up the form a bit.
  • Tweaked: a line break between the large thumbnail and the small thumbnails.
  • Improved: checking for valid URL's.
  • Fixed: video ID's with "_" (underscore) in them, was not valid.

v1.0 - 1st November, 2009

  • First version

To-do list

  • Add support for multiple videos at the same time

Contact

Send a message on the TMNF TMX to user: Tecfan.