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 ;]


All times are GMT. The time now is 02:38 AM.

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.01102 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_html_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
  • (10)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