View Full Version : BB Code Enhancements - Play Youtube Video and more on you forums with you images and logo
friend01
06-26-2008, 10:00 PM
NEW YOUTUBE VIDEO BBCODE and more file type on you forums with you images and logo.
code by: friend01
http://thuytinh.name
Suport: on vBB v3.6x and vBB v3.7.x
and folge file type: Youtube video, images(jpg,png,gif....), mp3, rtmp stream,swf,flv. :)
Install:
1. Upload the contents of the "upload" folder to you root forums.
2. Goto: ACP > Custom BB Codes > add new BB code
Title: Play Youtube Video
BB Code Tag Name: ttyoutube
Replacement:
<script type="text/javascript" src="http://youhome.com/forums/mediaplayer/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://youhome.com/forums/mediaplayer/mediaplayer.swf','mpl','425','344','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','344');
so.addVariable('width','425');
so.addVariable('file','{param}');
so.addVariable('image','http://youhome.com/forums/mediaplayer/ttimages.png');
so.addVariable('logo','http://youhome.com/forums/mediaplayer/ttplayerlogo.png');
so.addVariable('displayheight','344');
so.addVariable('searchbar','false');
so.write('player');
</script>
Example: http://de.youtube.com/watch?v=6yYBdiCoR9A
Description: Play Youtube Video on you forums with you images and logo
Use {option}: no
Button Image (Optional): images/youtube.gif
3. click: save
4. :up: :)...
//////////////////////////////////////////////////////////////////////////////////////////
Importal:
a. Replace link in Red color with you forums pach.
b. Replace link in Green color with you with you bachground images. (support file jpg, png)
c. Replace link in Blue color with you with you logo images. (support file jpg, png)
//////////////////////////////////////////////////////////////////////////////////////////
Update: Add javascript!
iogames
06-27-2008, 08:58 PM
Well I'm using 3.6x [yes because I want ;)] I think there's not a problem with that right?
And just one more question? can I build my own Flash Player?
www.tvzone.us <-- here I'm supposed to, but I can't access nothing
Antek
06-27-2008, 09:28 PM
I can't see watermark on my board. I did all steps from tutorial... :(
friend01
06-27-2008, 10:02 PM
Well I'm using 3.6x [yes because I want ] I think there's not a problem with that right?no problem with vB v3.6x
I can't see watermark on my board. I did all steps from tutorial...
a. Replace link in Red color with you forums pach.
b. Replace link in Green color with you with you bachground images. (support file jpg, png)
c. Replace link in Blue color with you with you logo images. (support file jpg, png)
Examle: http://youhome/forums/images/youlogo.png
youlogo.png <<<< must Upload on http://youhome/forums/images/
Antek
06-27-2008, 10:12 PM
It was my mistake - I lost 1 symbol in code, apologise
khaleel
06-27-2008, 11:02 PM
<script type="text/javascript">
var so = new SWFObject
("http://www.****.com/flvPlayer.swf?
imagePath=http://www.***.com/image.jpg&vid
eoPath={param}
&autoStart=false&volAudio=60&newWidth=480&newHeig
ht=385&disableMiddleButton=false&playSounds=true&sou
ndBarColor=0x0066FF&barColor=0x0066FF&barShadowCo
lor=0x91BBFB&subbarColor=0xffffff", "sotester", "480",
"385", "9", "#efefef");
so.addParam
("allowFullScreen", "true");
so.write("flashcontent");
</script>
Tried this xHTML friendly and true JavaScript object declaration.. no luck. Also you need to tell people they need a JavaScript include within the headerinclude templates for your swfobject.js
friend01
06-28-2008, 12:00 AM
<script type="text/javascript">
var so = new SWFObject
("http://www.****.com/flvPlayer.swf?
imagePath=http://www.***.com/image.jpg&vid
eoPath={param}
&autoStart=false&volAudio=60&newWidth=480&newHeig
ht=385&disableMiddleButton=false&playSounds=true&sou
ndBarColor=0x0066FF&barColor=0x0066FF&barShadowCo
lor=0x91BBFB&subbarColor=0xffffff", "sotester", "480",
"385", "9", "#efefef");
so.addParam
("allowFullScreen", "true");
so.write("flashcontent");
</script>
Tried this xHTML friendly and true JavaScript object declaration.. no luck. Also you need to tell people they need a JavaScript include within the headerinclude templates for your swfobject.js
Thank! New code with JavaScript Update!:up:
Scarface Claw
06-28-2008, 12:34 AM
does the tag have to be
[ ttyoutube ][ /ttyoutube ]
Or can it just be
[ youtube ][ /youtube]
-Minus the spaces of course.
friend01
06-28-2008, 12:45 AM
does the tag have to be
[ ttyoutube ][ /ttyoutube ]
Or can it just be
[ youtube ][ /youtube]
-Minus the spaces of course.
you can any code to Replace!:D
Scarface Claw
06-28-2008, 01:20 AM
thought so.
I might give this a go.
Thanks.
nothing4me
06-28-2008, 03:10 PM
Isn't this kind of illegal? Like you're claiming someone else's work or somewhat related to it...
It already has that Youtube logo. I mean, it's like not you did anything to help the Youtube/Google corporation, you're just branding it your own for no reason at all.
srkrocks
06-28-2008, 05:28 PM
Installed!
Thanks
Isn't this kind of illegal? Like you're claiming someone else's work or somewhat related to it...YouTube makes a living from hosting illegal content...
What kind of bandwidth overhead does this hack have?
:)
Installed - works a treat! :up: :up: :up:
KURTZ
06-29-2008, 07:29 AM
friend, i saw in your screens that you have the 'video avatars' how you made this?
friend01
06-29-2008, 10:19 AM
friend, i saw in your screens that you have the 'video avatars' how you made this?
hi KURTZ! read link theard youtube Avatar: :up:
https://vborg.vbsupport.ru/showthread.php?t=150574
princeedward
06-30-2008, 10:46 AM
thanks and installed: but how come i can't make it work or play? it keep buffering only... :( using vB 3.6.8 PL2 here...
calldaffer
07-01-2008, 01:57 AM
installed, thank you! I've been waiting for a bbcode version of this. I did not want to install some beta hack audio/video player when I knew sooner or later a bbcode verion would become available!
ricky_s
07-02-2008, 02:33 AM
hey thanks for the mod.
couple of questions:
1) how can I add direct link to flv files?
I mean, I would like to view youtube videos on my forum, but I would also like to view my custom made flv videos. When I paste "http:\\whatever.com/video.flv" in between the BB code nothing happens.
2) How can I embed High Quality you tube videos?
I have uploaded some videos on youtube that are only watchable in High Quality. How can I make the custom player, play those High Quality videos?
http://youtube.com/watch?v=FOOcNT-7d88&
that is a link to normal quality video
http://youtube.com/watch?v=FOOcNT-7d88&fmt=6
that is a link to high quality video.
3) wold it be possible to let the video player adjust to the size of the video? Right now the dimensions are H:344 W:425.
If I upload a video thats H:480 W:640 the video player should show the video in its true size.
4) great mod! Props!
calldaffer
07-02-2008, 09:32 PM
any idea why I seem to randomly get "this file will be replaced" when I post a video? Doesn't happen all the time, can't figure out why its doing that to some of my video posts
elmati
07-03-2008, 04:24 AM
ok, as i see using swfobject we can't post 2 o more videos inline because we duplicate the id's...
any js coder maybe can show us the way to change the ID via javascript :)
Nice mod anyway! :)
Jamesmaps
07-03-2008, 11:36 AM
Awesome!
Thanks a lot
What's the bandwidth overhead on this hack? Does the media player (1.6Mb) get downloaded everytime? Could be a bandwidth wrecker! :eek:
xoutlawz00x
07-14-2008, 05:03 AM
same question
Rideharder
07-15-2008, 04:48 AM
What's the bandwidth overhead ?
GOOD WORK ON THIS I like it alot!
Looks like this isn't supported anymore (dev last online June 27th) :(
reloadit
07-19-2008, 10:58 AM
is it possible dto use yout own skin?
Yes - just use your own graphic (png). Take a look at the instructions.
reloadit
07-19-2008, 01:29 PM
no i mean my own stlye in a swf-skin
Still using this but it's real flakey. As posted above, you can't post any more than one video in one post (and I hope it's not in one thread. :()
The other thing is that when you edit, the YT link drops out and you get 'This text will be replaced' instead of the video.
Can this be fixed please? :)
221123
07-31-2008, 09:38 PM
ok i have a problem , it does show a video in a post only , when i reply and try to put a new video from you tube , it says text will be replaced
note im using VB 3.6.8
Uninstalled. Nightmare mod...
Rhoody@philippi
08-03-2008, 11:16 PM
I get always:
this text will be replaced (as a link to the vid)
this text will be replaced (without link to thew video)
guess it's just me...
gpc10347
08-07-2008, 02:00 PM
Anyone know what might prevent audio from working for certain users? The volume control apparently appears to work, but doesn't... The same clip when embedded using the YouTube code sounds fine to the same user...
And as usual, it works for me...
Sedition-Guild
08-10-2008, 12:50 PM
This didn't work at all for me, I ended up uninstalling it.
But I found this, and it still works! (https://vborg.vbsupport.ru/showthread.php?page=2&t=111386)
It was much easier!
MasterofWorlds
08-11-2008, 09:59 PM
Is there anyway to modify this BBCode to work with interactive flash files? In other words like playing the Foamy Video's or any other FLV file that needs you to use the mouse to click on a part of the flash to have it continue on?
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.