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

Reply
 
Thread Tools
Embed XHTML valid YouTube and Google Video into your posts Details »»
Embed XHTML valid YouTube and Google Video into your posts
Version: 2.2.0, by Viper007Bond Viper007Bond is offline
Developer Last Online: Dec 2017 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.6.8 Rating:
Released: 11-04-2006 Last Update: 10-23-2007 Installs: 1040
Uses Plugins
Re-useable Code Additional Files  
No support by the author.

==============================
DON'T FORGET TO CLICK INSTALL!
==============================


Just thought I'd share what I did to allow my users to embed YouTube and Google Video videos into posts on my forum. This is my very first mod I've made since switching to vB, so forgive me if I screwed something up.


Demo:

http://forums.finalgear.com/test-for...-thread-14892/

The black bar will be different for you as it'll match your theme (it uses the same style as the whole quick reply box).


Upgrading from v1.x:

Just remove the plugin you added before (manage plugins -> delete) and then continue on to the installation instructions.

If you already have v2.x installed, you do NOT need to do this.


Installation:

Download and install the attached product. It will automatically create the new custom BBCode and add in some filtering plugins.

Save the two attached images and upload them to /images/editor/.


Usage:

Here's some examples:

Code:
[youtube]http://www.youtube.com/watch?v=hl2UUunlI2Q[/youtube]
[youtube]hl2UUunlI2Q[/youtube]
[youtube="http://www.youtube.com/watch?v=hl2UUunlI2Q"]Aston Martin Crash[/youtube]
[youtube="hl2UUunlI2Q"]Aston Martin Crash[/youtube]
Code:
[gvideo]http://video.google.com/videoplay?docid=3688185030664621355[/gvideo]
[gvideo]3688185030664621355[/gvideo]
[gvideo="http://video.google.com/videoplay?docid=3688185030664621355"]1980's Izuzu Gemini Advertisement[/gvideo]
[gvideo="3688185030664621355"]1980's Izuzu Gemini Advertisement[/gvideo]
Using vBAdvanced? It lacks the hook this plugin uses apparently, so if you wish to use this plugin with it, you need to use only the video ID and NOT the full URL for it to display correctly. Nothing I can do about it, it's vBAdvanced's fault.


How do I customize the look of the new box thingies?

Just edit the new custom BBCode items. It's in the admin area, near the bottom.

Show Your Support

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

Comments
  #122  
Old 11-19-2006, 11:48 PM
RidinHighSpeeds RidinHighSpeeds is offline
 
Join Date: Mar 2006
Location: Taxachusetts
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by transitbus View Post
I think what he is asking is like the insert link:

Attachment 56240
Yes. Insert URL of the link. Then after that, another window saying "please insert the title of the link"
Reply With Quote
  #123  
Old 11-20-2006, 12:56 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ubblite View Post
A CMPS module would be a great addition for this mod.

Also, if you could have your own player instead of using Google's and YouTube's, it would be a real nice option.
Sorry, I don't use vBadvanced and wouldn't know where to start.

As for your own player, I'm not sure if YouTube & Google Video would appreciate that or not. I think they want you to use their Flash player.

Quote:
Originally Posted by xtrass View Post
Viper, great mod. I also run a SMF forum, version 1.1 RC3,

any chance you can port this over for 1.1RC3?

They only have a similar mod for 1.1RC2 and all the suggested hacks to get it to work on RC3 fails. Plus you need to install 2 mods to get what your VB mod does!

I know your mod would be greatly appreciated for SMF

Any chance it happening?
Nope, no chance, of me making a version that is. I hate SMF and will never install it, sorry.

Quote:
Originally Posted by RidinHighSpeeds View Post
When you click the YouTube icon for example, it brings up a window where you enter in the URL of the video.

Now if I submit my reply without entering in a title within the tags, it does not display the video. I would recommend another pop-up window asking the user to enter in a description or title.
I was unaware such a thing happened. I only use Firefox and when you click the button for a custom BBCode, it just inserts the BBCode into the write box.

Either way, my plugin doesn't add the button, vB does, so there's not much I can do about it AFAIK.

Quote:
Originally Posted by redlabour View Post
Attention :

If you have used something like [gv] before this Update and want to change now all old Codes to [gvideo] operate this SQL Querie.

Code:
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[gv]', '[gvideo]');
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[/gv]', '[/gvideo]');
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[GV]', '[gvideo]');
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[/GV]', '[/gvideo]');
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[Gv]', '[gvideo]');
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[/Gv]', '[/gvideo]');
Same for old [anymedia] or [yt] Codes.

Attention - maybe you have to change Tableprefix.

@Viper007Bond - include this to Installinstructions please or use it for coding a AdminCP Option.
Yeah, when I have a chance to release an update, I'll allow you to easily change the BBCode.
Reply With Quote
  #124  
Old 11-20-2006, 04:30 AM
Kwak Kwak is offline
 
Join Date: Sep 2003
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the great mod, clicked Install.
Reply With Quote
  #125  
Old 11-22-2006, 10:52 AM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm doing the update but what about the old bbcode code that was manually put in is it updated or should it be deleted?
Reply With Quote
  #126  
Old 11-23-2006, 09:06 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webspider View Post
I'm doing the update but what about the old bbcode code that was manually put in is it updated or should it be deleted?
You can leave it.
Reply With Quote
  #127  
Old 11-24-2006, 04:04 PM
trichnosis's Avatar
trichnosis trichnosis is offline
 
Join Date: Sep 2005
Location: Mars
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's a great product. i have installed
Reply With Quote
  #128  
Old 11-24-2006, 06:16 PM
da_judge's Avatar
da_judge da_judge is offline
 
Join Date: Jan 2006
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Top bloody draw... nice plugin m8

Installed clicked
Reply With Quote
  #129  
Old 11-24-2006, 08:20 PM
Been Told Been Told is offline
 
Join Date: Oct 2006
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A very fine hack, thanks man! My forum needed something just like this
Reply With Quote
  #130  
Old 11-28-2006, 08:37 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v2.0.1 has been released. It fixes a minor issue in the invalid BBCode reseter. It wasn't replacing the temporary placeholders in the post cache.

Nothing critical, but worth a upgrade if you have a chance.
Reply With Quote
  #131  
Old 11-28-2006, 12:20 PM
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
Location: SoCal
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated....to your latest version.

Thanks
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 02:15 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.04838 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (6)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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