Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Youtube BBCODE integrated with vB Details »»
Youtube BBCODE integrated with vB
Version: 1.00, by anywares anywares is offline
Developer Last Online: Jan 2008 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.6.5 Rating:
Released: 03-15-2007 Last Update: Never Installs: 147
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-16-2007, 09:16 PM
Dark_Sirius Dark_Sirius is offline
 
Join Date: Aug 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. Installed. Thanks!
Reply With Quote
  #3  
Old 03-16-2007, 09:42 PM
anywares anywares is offline
 
Join Date: Dec 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you like it ^^
Reply With Quote
  #4  
Old 03-17-2007, 02:18 AM
G_Man G_Man is offline
 
Join Date: Feb 2006
Location: Washington State
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works a treat!! Cheers.

Of course I have to fix about a 100 vids now using an older code!! LOL
Reply With Quote
  #5  
Old 03-17-2007, 07:13 AM
anywares anywares is offline
 
Join Date: Dec 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lolz glad you like it

thanx for installing
Reply With Quote
  #6  
Old 03-18-2007, 04:22 AM
BoredOutOfMyMin BoredOutOfMyMin is offline
 
Join Date: Feb 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-18-2007, 11:20 PM
DJA DJA is offline
 
Join Date: Apr 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-19-2007, 12:20 AM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great. Got one for DailyMotion?
Reply With Quote
  #9  
Old 03-19-2007, 01:52 PM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, here is a better button that works in your editor. Yours was an icon file that wasn't correctly sized
Reply With Quote
  #10  
Old 03-19-2007, 04:07 PM
anywares anywares is offline
 
Join Date: Dec 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx thread updated ;]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05122 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete