View Full Version : BB Code Enhancements - Youtube BBCODE integrated with vB
anywares
03-15-2007, 10:00 PM
Quick search turned up bubkis on anything similar to this except something quite like this but for vB 3.5.X . the codes were ALL made by me i DIDNT copy/leech of anyone elses codes
Why use this?
No template or file edits requiered. its as simple as adding a BBCODE
Installation:
Step1:
Goto AdminCP => Custom BBCodes => Manage BBCodes => Add new BBCODE
Step 2:
Title:
YouTube BB Code
tag:
yt {can be youtube or w/e but yt is shorter =p}
replacement:
<!-- Start Youtube BBCODE -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="400" style="margin:10px 0">
<thead>
<tr>
<td class="tcat" colspan="2" style="text-align:center">
<a href="http://www.youtube.com/watch?v={param}" title="Click to view this video on youtube" target="_blank">{option}</a>
</td>
</tr>
</thead>
<tr>
<td>
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
</td>
</tr>
</table>
<!-- End Youtube BBCODE -->
Example:
ejOJkcs-a7s
Discription:
YouTube embeded videos
Use {option}
yes
Button Immage:attached
Screenshot attached ;]
Live Demo:
http://www.mega-codez.info/test/showthread.php?p=3#post3
If there has been a previous release for this kinda thing sorry for the double post :(
If you like this mod, please click install :)
UPDATE IN CODES:
When a user clicks on the hyperlinked name, they will be taken to the page on youtube this was posted on and not a huge enlarged version of the video
Dark_Sirius
03-16-2007, 09:16 PM
Very cool. Installed. Thanks!
anywares
03-16-2007, 09:42 PM
Glad you like it ^^
G_Man
03-17-2007, 02:18 AM
Works a treat!! Cheers.
Of course I have to fix about a 100 vids now using an older code!! LOL
anywares
03-17-2007, 07:13 AM
lolz glad you like it
thanx for installing ;)
BoredOutOfMyMin
03-18-2007, 04:22 AM
Nice job-
Is there a way to encode the link where if a user posts embedded link, it will allow that?
Not all users are savvy at pasting. They see a link and paste the url.
They paste http://www.youtube.com/watch?v=qj9KgUtdQVc
Instead of qj9KgUtdQVc
I've been trying to figure out how to use the {option} feature to input the video id (qj9KgUtdQVc) instead of the video name. I've really been struggling with this.
For example; when a user clicks on the youtube BB code button and the dialog box pops up prompting the user for the tag option, I'd like them to be able to simply input the video id (currently {param}) or the entire youtube link (as requested by BoredOutOfMyMin) in the dialog box in order to embed the youtube video.
Similarly to how the 'insert image' button works - click it, add a url, press OK - embedded image.
Can that be done? Cool if it could be.
glorify
03-19-2007, 12:20 AM
Works great. Got one for DailyMotion?
glorify
03-19-2007, 01:52 PM
By the way, here is a better button that works in your editor. Yours was an icon file that wasn't correctly sized ;)
anywares
03-19-2007, 04:07 PM
Thanx :D thread updated ;]
tigerroar
03-19-2007, 05:24 PM
I've been trying to figure out how to use the {option} feature to input the video id (qj9KgUtdQVc) instead of the video name. I've really been struggling with this.
For example; when a user clicks on the youtube BB code button and the dialog box pops up prompting the user for the tag option, I'd like them to be able to simply input the video id (currently {param}) or the entire youtube link (as requested by BoredOutOfMyMin) in the dialog box in order to embed the youtube video.
Similarly to how the 'insert image' button works - click it, add a url, press OK - embedded image.
Can that be done? Cool if it could be.Thats my problem too. It's a shame that it doesn't seem to work as it probably should because this makes for a really nice addition to a vb forum but it would just confuse the hell out of most people :(
anywares
03-19-2007, 05:48 PM
well the problem is that the video links on youtube is http://www.youtube.com/v/
and the links displayd on page browsing is http://www.youtube.com/watch&v=
or smtin like that
thats why its kinda almost impossible to do that in a simple bbcode :( sorry guys
tigerroar
03-19-2007, 05:56 PM
No problem, you've done a nice job. Thanks :)
anywares
03-19-2007, 06:13 PM
If you like it please remember to click install ;]
menese
03-20-2007, 10:05 AM
thanks. it simply to setup and use ..
anywares
03-20-2007, 04:08 PM
If you like it why not take a few seconds to click install? ;]
Mikecp421
03-21-2007, 03:15 AM
it doesn't show up on mine? no matter what url I use
Staxed
03-21-2007, 09:11 AM
what are you putting in? ... you shouldn't be using a URL...
it doesn't show up on mine? no matter what url I use
Mikecp421
03-21-2007, 12:21 PM
i either put the url to youtube or just the video code at the end of the url and the entire code disappears when I preview it. or the link just shows
anywares
03-21-2007, 04:18 PM
Perhaps a screenshot or a live demo link could help ? :D
Mikecp421
03-21-2007, 09:58 PM
I took it out and used another and edited the code some, sorry but it just wasn't working
Thanks anyhow. It works well, just need a little instruction to the members, but they're pretty savvy and catch on quickly.
Clicked installed!
Subah
03-23-2007, 04:43 PM
Thanks anyhow. It works well, just need a little instruction to the members, but they're pretty savvy and catch on quickly.
Clicked installed!
As he sead there is same thing error because its write the name of the video and live the place of the code empty ??
So i need to modify the code to let the video start correct !
and installed :rolleyes:
anywares
03-23-2007, 04:49 PM
Thanks for the install glad you like it ;)
just so all know the correct ussage of this is
QykRgx
Viper007Bond
03-24-2007, 12:11 AM
Nice job-
Is there a way to encode the link where if a user posts embedded link, it will allow that?
Not all users are savvy at pasting. They see a link and paste the url.
They paste http://www.youtube.com/watch?v=qj9KgUtdQVc
Instead of qj9KgUtdQVc
You'd have to use an actual plugin to do that rather than custom BBCode.
I hate to link to another thread from this one (especially my own), but I want to answer your question. This will do what you want: https://vborg.vbsupport.ru/showthread.php?t=130868
pollon
03-24-2007, 12:34 AM
hi! I've installed this one :)
Actually, when I insert a video I see it in a blue window:
http://immagini.p2pforum.it/out.php/i121196_screen3.JPG
but I would like to see it in a black window:
http://immagini.p2pforum.it/out.php/i121195_screen2.JPG
how can I do it?
anywares
03-24-2007, 04:38 AM
They integrated youtube is set to blend in with your forums natural skin. istall a dark skin like dark_vb and it will also be dark. thanks for the install =)
Necrosaro420
03-27-2007, 12:35 AM
doesnt work for me, it just posts the actual code/url =(
ra7al
03-27-2007, 12:55 AM
LooK GooD
:: INSTALL ::
anywares
03-27-2007, 12:59 AM
doesnt work for me, it just posts the actual code/url =(
lets say the video you would like to have displayed on your forum is located at
http://www.youtube.com/watch?v=U_Wo5_LwYeY
the corect usage of this code would then be
Rosebot[/COLOR]]U_Wo5_LwYeY
The Strings it pink is the url you use with this BBCODE
The text in red is the self set name given by the user once the option window displays
Is this of any help?
Fungsten
03-27-2007, 01:12 AM
Sounds good.
On Edit.
You mentioned there is a button image. I can't find it.
anywares
03-27-2007, 07:08 AM
Its the last attached immage ;)
Fungsten
03-27-2007, 04:28 PM
:o :o
Its the last attached immage ;)
On Edit.
I didn't realize you had to enter the total path to the gif including the URL. I thought it was relative to the forum.
Fungsten
03-27-2007, 06:20 PM
All I get is a blank area where the image of the video should be. When I click on it nothing happens. However the link to show it at You Tube works.
anywares
03-27-2007, 06:46 PM
Please make sure you used the [yt] tags correctly when you tried to post the youtube video
Reffer to : https://vborg.vbsupport.ru/showpost.php?p=1213276&postcount=31
Fungsten
03-27-2007, 07:21 PM
I'll take a look at it and see if there is anything I did wrong and get back to you.
Please make sure you used the [yt] tags correctly when you tried to post the youtube video
Reffer to : https://vborg.vbsupport.ru/showpost.php?p=1213276&postcount=31
lb 2.0
04-07-2007, 01:44 PM
Thanks! Install clicked.
One question though...will this affect my bandwidth or does it just work like a hotlink?
anywares
04-07-2007, 03:02 PM
it works excactly like a hotlink . please do decide to click install as u are still showing up as uninstalled to me :)
heavy1
04-07-2007, 03:15 PM
it works excactly like a hotlink . please do decide to click install as u are still showing up as uninstalled to me :)
Hi,
I see you are playing with youtube.
Maybe you would be interested in helping me with:
https://vborg.vbsupport.ru/showthread.php?t=144224
?
baronvonwalz
04-09-2007, 07:04 AM
Great work, thanks. Combined it with a spoiler button BBCode in case the still frame is risque or NSFW.
Fungsten
04-10-2007, 06:53 PM
the appropriate digits. From what I've seen one should only enter the alpha-numeric characters after the = sign; no %, &, etc. As some YouTube videos have the additional characters many people are getting confused. Now, what can be removed from the code so users can just paste the URL into the link? BTW, I did try to work with it but I couldn't get it. Also, I do understand that you do only want it to work for YouTube but it is confusing to my members.
Thank you!
anywares
04-11-2007, 06:53 PM
the appropriate digits. From what I've seen one should only enter the alpha-numeric characters after the = sign; no %, &, etc. As some YouTube videos have the additional characters many people are getting confused. Now, what can be removed from the code so users can just paste the URL into the link? BTW, I did try to work with it but I couldn't get it. Also, I do understand that you do only want it to work for YouTube but it is confusing to my members.
Thank you!
Use this ;)
https://vborg.vbsupport.ru/showpost.php?p=1210719&postcount=26
Fungsten
04-11-2007, 07:40 PM
I'll take a look at it!
Use this ;)
https://vborg.vbsupport.ru/showpost.php?p=1210719&postcount=26
skooby
04-12-2007, 12:02 AM
Awesome!
anywares
04-12-2007, 05:45 PM
Glad you like it ... thanks for the install ;)
sub_ubi
04-15-2007, 07:48 PM
Thanks, great idea!
This is the only Youtube solution on vb.org that doesn't crash IE on some of my computers.
amoxycillin
04-28-2007, 06:23 AM
yay! it works in IE!
thanks. :)
basilrath
04-28-2007, 12:15 PM
looks good in a sidebar !
http://www.recommenditall.com/thebig/forums/portal.php
sdebank
04-30-2007, 09:21 AM
Rosebot[/COLOR]]U_Wo5_LwYeY
The above code works but on my forum it's producing:
Which doesn't appear to work, any ideas?
Ted Clore
05-01-2007, 06:16 PM
Installed and working great.
Just don't know what to do to make the icon show up in the "Button Image" area.
Has to be really easy for a neophyte. ;)
Mikecp421
05-01-2007, 08:19 PM
let me know if you need me or my people to help get you going. Pm me for requests
bigwest
05-03-2007, 10:45 PM
I have installed this hack and its fantastic!
I wonder how easy it would be to create a similar hack for kickapps?
If so forum owners could start their own free video hosting and integrate the videos into their forum. Have you checked out http://www.kickapps.com ?
I have no affiliation with them but I think their service is interesting.
AndyBaines
05-26-2007, 04:57 PM
Second modification Ive made to my site, works a treat, thankyou very much.
:)
sananedir
06-29-2007, 12:05 AM
How can we prevent only this BBcode not to use in signature?
WiseOne38221
07-16-2007, 10:22 PM
EXCELLENT Mod! Is there a way you can add www.LiveLeak.com (http://www.LiveLeak.com) to this Mod or add another Mod for it, please?
:)
sananedir
07-17-2007, 08:59 PM
How can we prevent only this BBcode not to use in signature?
Hi again,
Users can use this code in their signature!
How can we prevent only this BBcode not to use in signature?
chatzworld
07-20-2007, 02:43 PM
The above code works but on my forum it's producing:
Which doesn't appear to work, any ideas?
i get the same anyone help?
XSCCASPER
07-21-2007, 02:10 AM
Great work. Seemless integration. ;)
Millenium IT
07-21-2007, 05:14 AM
Hi again,
Users can use this code in their signature!
How can we prevent only this BBcode not to use in signature?
i get the same anyone help?
Install this modification:
Advanced BBCode Permissions - now with custom BBcodes! (https://vborg.vbsupport.ru/showthread.php?t=103747)
J. Thomas Jeans
07-22-2007, 05:28 AM
I can't get this code to work at all. I've tried every variation of what's been said to do in this thread, and it just doesn't want to work.
Thanks for the effort, though.
duditas
07-27-2007, 11:44 PM
lets say the video you would like to have displayed on your forum is located at
http://www.youtube.com/watch?v=U_Wo5_LwYeY
the corect usage of this code would then be
Rosebot[/COLOR]]U_Wo5_LwYeY
The Strings it pink is the url you use with this BBCODE
The text in red is the self set name given by the user once the option window displays
Is this of any help?
Of course it is, thanks!! :D
But I must put it by hand, clicking the button it doesn't work. :(
Can anybody make the needed changes, please? I run the 6.3.8 vB version.
weedheaven
08-03-2007, 06:38 AM
This aint working for 3.6.8 it seems. Whenever i try to add a video it keeps coming up wit this
While it should end up like this:
blg7bqF4O_A
What is the problem with this? When i edit it after manualy again it works. But for my users this would bad to know as they aint all smart. Hope that there is a fix
Tearstone
08-03-2007, 12:02 PM
Works great in 3.6.8!
dc3dreamer
08-03-2007, 10:17 PM
Wow, this is GREAT!!!!! Thank you VERY MUCH!
nnjj.net
08-04-2007, 04:49 PM
not working its come up like this
[YT {CAN BE YOUTUBE OR W/E BUT YT IS SHORTER =P}="test"][/yt {can be youtube or w/e but yt is shorter =p}]
thetopday21122
08-04-2007, 05:38 PM
What do you enter when you click the button?
nnjj.net
08-05-2007, 08:07 AM
just test
aberg
08-05-2007, 06:40 PM
This aint working for 3.6.8 it seems. Whenever i try to add a video it keeps coming up wit this
While it should end up like this:
blg7bqF4O_A
What is the problem with this? When i edit it after manualy again it works. But for my users this would bad to know as they aint all smart. Hope that there is a fix
same issue here, don't work here.
I have removed the code
forumsonsuz
08-05-2007, 08:17 PM
Thanks
AndyP
08-07-2007, 09:06 AM
Currently when you hold the cursor over the YouTube graphic, the popup text reads "Wrap [YT] tags around selected text".
Is it possible for this to be changed to "Wrap [YT] tags around YouTube video code (not URL)" or something similar that makes it easier to use?
Or is it the same standard thing for all BBCodes?
Installed. Thanx :) this works perfect on 3.6.8
I just figured out the same thing for Google so I'm sharing it here.
Title:
Google BB Code
tag:
gv
replacement:
<!-- Start Google BBCODE --> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="400" height="326" style="margin:10px 0">
<thead><tr><td class="tcat" colspan="2" style="text-align:center">
<a href="http://video.google.com/videoplay?docid=-811321280634119479" title="Click to view this video on Google" target="_blank">video name</a>
</td>
</tr>
</thead>
<tr>
<td>
<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-811321280634119479" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded">
</embed>
</td>
</tr>
</table>
<!-- End Google BBCODE -->
Example:
811321280634119479
Discription:
Google embeded videos
Use {option}
yes
Button Immage:upload attached image to images/editor/
SteveOh_UK
08-26-2007, 03:16 PM
I have the same problems as several others..
Anyone got a fix for this please...?
nevermind... i uninstalled
Aclikyano
11-19-2007, 07:09 PM
good one!
viper007
12-19-2007, 02:33 AM
in my forum the prob is we cant see the video in forumits coming just like a line only
hyppa
12-30-2007, 03:33 PM
Does not work at all, its all blank.
len backus
01-01-2008, 11:07 PM
Has anyone used this with vBAdvanced CMPS?
Which part of the following Youtube URL is the part I need to input?
http://www.youtube.com/watch?v=mT-kdIaiy8k&NR=1
AURFSCAN
01-05-2008, 07:27 AM
Hello, have installed and I'll see how it goes. Working pretty good.
Thankyou
AURFSCAN
01-05-2008, 06:13 PM
Ok ...for me I have no problem using it but might be a little confusing for members.
I need something easier - 'just paste the link' so I will use passivevid (https://vborg.vbsupport.ru/showthread.php?t=150761)
otherwise for a newbie like myself (just learning about vbulletin) this is very easy to install
thanks
len backus
01-05-2008, 07:22 PM
AURFSCAN
Which part of the youtube link in my example above is to be inserted?
I would like to see it on your vBulletin site if you are running vBA CMPS. Can you post your RUL please.
Le Soft Parade
02-12-2008, 02:25 PM
Great work, thanks. Combined it with a spoiler button BBCode in case the still frame is risque or NSFW.
This would be exactly what I'm looking for. Anyone know how I could do it?
Edit: Nevermind. Got it, and now it's the perfect YouTube embedder. Thanks!
sheryjutt
02-20-2008, 11:21 AM
Sir I Can't Open Currect
Can Any One Help Me ;))
thansk In advance
aibon
04-22-2008, 08:02 AM
to disable this in signatures:
https://vborg.vbsupport.ru/showthread.php?p=1496394#post1496394
Livingstrong
04-23-2008, 04:42 AM
Would this great mod interfere with passivevid hack?
pooslokka
06-13-2008, 02:03 PM
Fantastic plugin. Marked as installed :D
Jase2
06-23-2008, 06:15 PM
This working fine with 3.7.1 ?
Jase2
06-23-2008, 06:30 PM
Ok, it works for me if I use: -ql1LbDOb_I
However, if I click the image on the WYSIWYG editor, it just uses:
therefore doesn't work. Strange...any ideas?
EDIT: Doesn't matter, found an updated one. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.