vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   BB Code Enhancements - Youtube BBCODE integrated with vB (https://vborg.vbsupport.ru/showthread.php?t=142236)

anywares 03-15-2007 10:00 PM

Youtube BBCODE integrated with vB
 
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:
HTML Code:

<!-- 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:
[yt=video name]ejOJkcs-a7s[/yt]

Discription:
YouTube embeded videos

Use {option}
yes

Button Immage:
attached

Screenshot attached ;]

Live Demo:
http://www.mega-codez.info/test/show....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

DJA 03-18-2007 11:20 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.

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

Quote:

Originally Posted by DJA (Post 1206908)
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...

Quote:

Originally Posted by Mikecp421 (Post 1208528)
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

gtv 03-21-2007 07:54 PM

thanks a lot

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

DJA 03-21-2007 11:13 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!

Subah 03-23-2007 04:43 PM

Quote:

Originally Posted by DJA (Post 1209229)
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

[yt=VIDEO NAME TO BE DISPLAYED]QykRgx[/yt]

Viper007Bond 03-24-2007 12:11 AM

Quote:

Originally Posted by BoredOutOfMyMin (Post 1206071)
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

Quote:

Originally Posted by Necrosaro420 (Post 1213259)
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

Code:

http://www.youtube.com/watch?v=U_Wo5_LwYeY
the corect usage of this code would then be

Code:

[yt=Rosebot]U_Wo5_LwYeY[/yt]
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


Quote:

Originally Posted by anywares (Post 1213447)
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....6&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.

Quote:

Originally Posted by anywares (Post 1213811)
Please make sure you used the [yt] tags correctly when you tried to post the youtube video

Reffer to : https://vborg.vbsupport.ru/showpost....6&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

Quote:

Originally Posted by anywares (Post 1221927)
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
?


All times are GMT. The time now is 08:47 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.01447 seconds
  • Memory Usage 1,819KB
  • 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
  • (1)bbcode_html_printable
  • (8)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