Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
inlineVideo - Youtube / Myspace / Google / Ebaums Details »»
inlineVideo - Youtube / Myspace / Google / Ebaums
Version: 2.02, by Coders Shack Coders Shack is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.7 Rating:
Released: 05-22-2007 Last Update: 05-25-2007 Installs: 132
Uses Plugins
Code Changes Additional Files  
No support by the author.

[hr]value[/hr]
. . . . . . . . Brought to you by

. . . http://www.Scriptasy.com
[hr]value[/hr]
I WOULD LIKE A MOD TO CLOSE THIS AND MOVE IT TO THE GRAVEYARD
it has been made obsolete by my other mod [here]


[/CENTER]
Installation Time: <2 mins
Products: 1
File Edit: 1
VB Version: 3.6.7
  • v2.02
    • removed the need for template edits.
Example:
[hr]value[/hr]
youtube-myspace-videos-posts/

Description:
[hr]value[/hr]
ok this mod is a little different than the other ones it adds a button to the tool bar and when you click it you just enter the URL of the video if its myspace then it creates the myspace video BB code if its youtube then it creates the youtube BB code. There is no need to enter the end of the video link you can just enter the whole URL in.

Installation:
[hr]value[/hr]
Open clientscript/vbulletin_textedit.js and Find:
Code:
    // =============================================================================
    // vB_Text_Editor methods

    /**
    * Editor initialization wrapper
    */
Add This above:
HTML Code:
    /**
    * Insert Video Link
    */
    this.createvideolink = function(e, url)
    {
        var my_colors=prompt("MySpace, YouTube, Google video, or eBaum's World video URL","");
        if ((my_colors=="") || (my_colors==null))
        {
              alert("Please Enter The Full URL!");
        }
        else
        {
            if (my_colors.match("youtube.com")) 
            {
                var col_array=my_colors.split("?v=");
                var part_num=1;
                return this.insert_text("[youtube]" + col_array[part_num] + "[/youtube]");
            }
            else if (my_colors.match("myspace.com"))
            {
                if (my_colors.match("videoID="))
                {
                    var col_array=my_colors.split("videoID=");
                }
                else
                {
                    var col_array=my_colors.split("videoid=");
                }
                var part_num=1;
                return this.insert_text("[myspace]" + col_array[part_num] + "[/myspace]");
            } 
            else if (my_colors.match("video.google.")) 
            {
                var col_array=my_colors.split("docid=");
                var part_num=1;
                return this.insert_text("[googlevideo]" + col_array[part_num] + "[/googlevideo]");
            }
            else if (my_colors.match("ebaumsworld.com")) 
            {
                var my_colors = my_colors.replace(".html","");
                var col_array = my_colors.split("ebaumsworld.com/");
                return this.insert_text("[ebaumsvideo]" + col_array[1] + "[/ebaumsvideo]");
            }
            else if (my_colors.match("metacafe.com")) 
            {
                var my_colors = my_colors.replace(new RegExp(/\/$/),"");
                var col_array = my_colors.split(new RegExp(/\/watch\//g));
                return this.insert_text("[metacafe]" + col_array[1] + "[/metacafe]");
            }
            else
            {
                  alert("Please Enter The Full URL!");
            }
        }
    };
Ok, install the product xml. Then go to your BB Code Manager and click edit and resave all 5 of the BBCODES.

[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

Show Your Support

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

Comments
  #12  
Old 05-23-2007, 11:22 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice addition good job installed :up:
Reply With Quote
  #13  
Old 05-24-2007, 01:31 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome works great
Reply With Quote
  #14  
Old 05-24-2007, 04:54 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellent work, it is really good to see one that works like this.

some ideas for a future update. there is another youtube one on vb that is more seo friendly, adds the name of the video to the post etc, it would be nice if you could include that to this mod as well.

and of course, the more players you add the better. so far looking good tho.

thanks.
Reply With Quote
  #15  
Old 05-24-2007, 05:17 AM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

trying to make this an edit-less mod but cant get the quick edit cache template to work.
Reply With Quote
  #16  
Old 05-24-2007, 05:53 AM
Carl Anderson's Avatar
Carl Anderson Carl Anderson is offline
 
Join Date: Apr 2003
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yahoo video would be nice also...........

Thx
Reply With Quote
  #17  
Old 05-24-2007, 07:03 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carl Anderson View Post
Yahoo video would be nice also...........
Quote:
Originally Posted by COBRAws View Post
It would be great that it was SEO'ed (added the video title in the litte video window title)
Full ACK!

But please dont forget myvideo.de, wmv, mp3 and Quicktime.

It has a chance to give a Alternative to the not longer supported AnyMedia Mod.
Reply With Quote
  #18  
Old 05-24-2007, 07:41 AM
mktrilogy mktrilogy is offline
 
Join Date: May 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dailymotion would be cool too.
Reply With Quote
  #19  
Old 05-24-2007, 01:42 PM
eurofunny eurofunny is offline
 
Join Date: Aug 2006
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack.......

http://en.sevenload.com/ would be nice in this hack too
Reply With Quote
  #20  
Old 05-24-2007, 01:51 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway to add videos from break.com?
Reply With Quote
  #21  
Old 05-24-2007, 02:29 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well in favor of a 'ALL-IN-ONE' Video poster... I have ten reasons to request it... LOL
Reply With Quote
Reply

Thread Tools

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:31 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.10847 seconds
  • Memory Usage 2,313KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (2)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
  • (3)pagenav_pagelink
  • (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