vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   [BB Code] YouTube embedded video (https://vborg.vbsupport.ru/showthread.php?t=111386)

Danny W 03-25-2006 10:00 PM

[BB Code] YouTube embedded video
 
I didnt see anyone else release this so i thought i'd release it :)

What this code does is allow your members to embed YouTube Videos
into their posts. As YouTube url's always begin with http://www.youtube.com/v/
all your users need to do is copy and paste the last bit of url (found on the
YouTube site for whatever video they want to post) inside the tags (see the example below).

To Install:
1. Go To Admin CP
2. Scroll down the left nav and select Custom BB Codes
3. Add New BB Code
4. Fill in the following:

Title: YouTube BB Code
Tag: yt (You can change this to whatever you prefer, yt is just nice and small :))
Replacement:
Code:

<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>
Example: [yt]ejOJkcs-a7s[/yt]
Description: Embeds You Tube Videos
Use {Option}: No

Enjoy! (Although its not much, this is my first release on vb.org ;))

Mattikana 03-26-2006 11:19 AM

Quote:

I didnt see anyone else release this so i thought i'd release it
Well you must've overlooked this one ;)

Danny W 03-26-2006 11:26 AM

ah crap....i didnt notice that one supported YouTube :p...

Rickie3 03-26-2006 11:38 AM

good job,at least no edits,thankyou for sharing

KTBleeding 03-26-2006 02:42 PM

Quote:

Originally Posted by Danny W
ah crap....i didnt notice that one supported YouTube :p...well someone can delete this one then if no one wants to use it because the other one looks alot better :p

No no.. still useful to those who would like only YouTube, and not any other kind of media.

Tralala 03-26-2006 02:48 PM

Quote:

Originally Posted by KTBleeding
No no.. still useful to those who would like only YouTube, and not any other kind of media.

Agreed! :banana:

eNforce 03-26-2006 05:46 PM

Seems to be buggy in Opera 8.52, when first entering thread it will not display.. clicking edit and then canceling the edit it will show but won't actually play.

hotwheels 03-26-2006 06:27 PM

Plus the one linked isn't working correctly........I have yet to get it to show youtube video's..........

thanks for the fine work

Danny W 03-26-2006 08:02 PM

The example i gave above is the one in this thread:
http://www.crashbangwallopwhatawebsi...ead.php?t=1057

It seems to work fine for me. I've tested it in Firefox and IE and both work fine, i also tested several other videos and they all seem to work, i dont know why it wont for you... i'm not much of a an expert when it comes to coding :(

Rickie3 03-26-2006 09:04 PM

it does work properly,say you go to this site
http://www.youtube.com/watch?v=rPxWW...page=1&t=t&f=b

take this out of the url link="rPxWW6MU-MQ" and place the BB tags around it in your post
eg:[yt]rPxWW6MU-MQ[/yt] and you will see that it works ;...)

ubblite 03-27-2006 02:31 AM

Quote:

Originally Posted by hotwheels
Plus the one linked isn't working correctly........I have yet to get it to show youtube video's..........

thanks for the fine work

Same here. This one works perfect for YouTube.

Thanks & nice work, Danny.

hollyboy 03-27-2006 10:51 AM

Very nice!
Can't the tag be clickable from the tags bar?

Danny W 03-27-2006 12:19 PM

Quote:

Originally Posted by hollyboy
Very nice!
Can't the tag be clickable from the tags bar?

If you mean have a button, it can but i decided not to include one with this because most people have their own styles other than the default, but if you want me to make one for the default skin i'd be happy to. :)

Snake 03-28-2006 11:52 AM

Excellent, I'll install this right now.

indiancinema 03-30-2006 01:22 PM

works perfectly

i have one question

if we double click on the movie can we make it full screen
because if we double click right now its taking back to youtube website

thanks for ur help

manutdvn 04-02-2006 03:25 PM

Thank you. Installed.

ibuddy 05-04-2006 02:55 PM

This is awesome I was looking for this because im not familiar with bbcode.

But real quick I actually made it so the videos AUTO PLAY! which is pretty cool so your users dont have to click play, here is that code:

Quote:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}&autoplay=1"></param><embed src="http://www.youtube.com/v/{param}&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Tralala 05-04-2006 03:55 PM

Quote:

Originally Posted by ibuddy
But real quick I actually made it so the videos AUTO PLAY! which is pretty cool so your users dont have to click play, here is that code:

What if there's more than one YouTube video on your thread's page? Two movies playing simultaneously? :confused:

DarKNull 05-04-2006 05:59 PM

how to add a tag in editor toolbar on for this please ?

RFViet 05-04-2006 06:55 PM

Well, use Any Media Hack, I can play whatever , youtude or google video !!!

AGIRABI 05-07-2006 06:11 PM

Youtube isn't working for some reason... The screen comes up and you click to play and it just loads.

Rickie3 05-07-2006 09:55 PM

Quote:

Originally Posted by AGIRABI
Youtube isn't working for some reason... The screen comes up and you click to play and it just loads.

working fine for me,maybe Youtube server was busy at the time.How are you wrapping the code??? like this
[yt]38ppH4gW5Xs[/yt] ?

AGIRABI 05-08-2006 05:26 AM

Quote:

Originally Posted by Rickie3
working fine for me,maybe Youtube server was busy at the time.How are you wrapping the code??? like this
[yt]38ppH4gW5Xs[/yt] ?

No i wasn't do it like that:rolleyes:

I works know thnx alot buddy :banana:

Master Miyagi 05-08-2006 07:33 PM

Excellent work, Danny! Thanks alot.

hypnoticpimp 05-30-2006 11:47 PM

How can i place a small bb picture on the forum's posting interface, like on the right of php code bb code picture?

Please tell me the code and exactly where to place it

Dermo-MIO 06-04-2006 11:48 AM

anychance of making a button and instructions on how to get the button to work becuase my members wouldnt be able to remember each time the code

kurtbarker 06-04-2006 12:09 PM

Hey mate, this is awesome :D

*installed

kurtbarker 06-05-2006 06:51 AM

hey mate, any way to embed videos that are stored on your server?

Dr.Viggy 07-04-2006 11:18 PM

works great. installed

chkdgate 07-12-2006 04:15 PM

Is there a way to have this displayed in the user's profile page?

chkdgate 07-18-2006 05:31 PM

^^Has anyone tried this yet?

RFViet 07-19-2006 01:22 PM

How to make it collapsable ??

chkdgate 07-19-2006 03:09 PM

No, I would like this to show up in the member's public profile.

giorgiotave 07-23-2006 12:11 PM

Have problem with layout

https://vborg.vbsupport.ru/

??

chkdgate 07-26-2006 05:01 AM

Quote:

Originally Posted by chkdgate
No, I would like this to show up in the memeber's public profile.

Anyone?

I've been on forums for years and I've never quoted myself. How sad.:disappointed:

chkdgate 07-26-2006 06:05 PM

Can you assign permissions to embedded media? Meaning you can only allow a certain group (Admins, moderators ect.) to post youtube videos but everyone else can view? Or assign a certain group to be able to watch any videos?

Aneurysm 07-28-2006 06:52 AM

easy
easy
easy
Thanks!

Chicago_VLNU_4s 07-29-2006 03:01 AM

wow! nice, easiest hack to install!

Nxs 08-02-2006 07:39 PM

Installed over "anymedia" after all why use a sledgehammer on a small nail.

Changed the BBcode tho, may be of use to others so posted it here (we also take advantage of autoplay the video is not played until the user clicks AGREE to a small disclaimer. Some code borrowed from the anymedia plugin so credit where its due :)

Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="466">
  <tr><td class="smallfont"><strong>IMPORTANT NOTICE:</strong> No media files are hosted on these forums. By clicking the link below you agree to view content from an external website. We can not be held responsible for the suitability or legality of this material.</div></td></tr>
  <tr><td class="smallfont" align="right"><a href="#" onclick="return toggle_collapse('{param}')"></a><a href="#" onclick="return toggle_collapse('{param}')"> I AGREE</a></td></tr>
  <tbody id="collapseobj_{param}" style="display:none;"><tr><td class="alt1" align="center"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}&autoplay=1"></param><embed src="http://www.youtube.com/v/{param}&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></td></tr></tbody>
</table>

Normal
https://vborg.vbsupport.ru/


After clicking 'AGREE'
https://vborg.vbsupport.ru/
p.s. Power Rangers rule :)

DA KING 08-03-2006 09:32 PM

its not workin for me..all i get a WHITE BOX. what am i doing wrong?


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01324 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete