About This Custom Tag will allow you to syndicate YouTube Videos. Users will need to copy the "Video URL" (or Video ID) into the video tags (or the editor if enabled).
Note The code supplied below must be imported to the Custom Tags feature of your UBB.threads install; the coding escapes any slashes, so just copy and pasting to your existing install just plain will not work, please use the import function.
Install Save "CustomTag.txt" (with the code provided) and import into the "Custom Tags" feature of the control panel: Control Panel -> Tools & Info -> Content Rebuilder -> Custom Tags -> Import new tags (bottom tab)
Compatibility The v7.6.0 works with the updated common.css file entries in v7.6.0 to responsively display your videos depending on the size of your browser window (to a maximum of 640x360). As these classes do not exist in previous builds an additional set of code is provided for 7.5.x which displays videos in a 16:9 resolution of 400x255.
Hi Guys, My youtube embedded videos have failed over the last few days. I'm hoping this is the page with the latest update...
I'm running 7.5.9x I have tried to import both codes from the first post with out success. I get a white screen, and all permissions are green with the permissions check.
See below for what happened and the code i have running now that is giving me that problem.
I'm assuming this is the page with the latest updates for custom tags.
I have now manually updated the tag code from Pre-v7.6.0 CustomTag.txt above and there is no change.
I was going to post this in the bugs section on ubb but as I pressed the preview its working fine over there ? Ive not done any updates, and its the members that have come to me with this strange change.
Hey Mark, Im not sure if this will help you out or not, but this is a screen cap from UBBDev's current YouTube Custom Tag for UBB.threads 7.6.0 (Snapshot 20160813)
There is also a "common.css" file which is unique to UBBT v7.6.x series.
You can paste the following code in to your style sheet's EXTRAS section, if you are not currently on a 7.6.x series install. You'll need to do it to each of your styles. And then when you move to 7.6.x, you'll probably need to remove it at that time, since it will duplicate functionality.
You have too many slashes near your "/embed/\\2" code.
You should not copy/paste the items in to the boxes from the above code. Instead, copy the whole code in to a txt file, and then import that text file to the Tag Editor.
But my old videos are still only showing as previous a tall back box ?? I still have the style sheet extras.
Since you basically "added a new UBBCode" (or updated your current code), you need to run the content rebuilder.
Control Panel » Content Rebuilder > Rebuild Posts
Quote
Rebuild Posts Select this action if you've added a new UBBCode or if you've edited the list of censored words.
hint: If you enter the post editor on one of your old youtube posts and click the "Preview Post" button, you will get an idea of what the rest of your posts will look like before running the rebuilder on your whole forums.
The devil is in the detail and your snapshots helped. The code in the first post needs some attention as it has the extra slashes in it and also the regex.
That's a great little trick the preview post...
I'm at a loss what has caused this to randomly fail ??
The devil is in the detail and your snapshots helped. The code in the first post needs some attention as it has the extra slashes in it and also the regex.
The code in the first posts works if you dump it in to a text file and then import that text to your Custom Tag editer, by way of the "Import New Tags" button at the bottom. The newly imported tags will be prefixed with "new", so as to not be confused with your current tags.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.