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
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
  #112  
Old 07-11-2007, 03:20 PM
69lakalle's Avatar
69lakalle 69lakalle is offline
 
Join Date: Apr 2007
Location: Fort Lauderdale
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https://vborg.vbsupport.ru/showthread.php?t=150761 is better an easier !! OMG
Reply With Quote
  #113  
Old 07-19-2007, 08:13 AM
ahmed_a_najim ahmed_a_najim is offline
 
Join Date: Feb 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a problem

the addon do not work
Reply With Quote
  #114  
Old 09-13-2007, 05:44 AM
adivor's Avatar
adivor adivor is offline
 
Join Date: Sep 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to all...work fine in my forum www.adivor.it/forum
Reply With Quote
  #115  
Old 10-27-2007, 11:31 PM
tei727's Avatar
tei727 tei727 is offline
 
Join Date: Feb 2006
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when pressing the button nothing happens.
Reply With Quote
  #116  
Old 10-28-2007, 12:13 AM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tei727 View Post
when pressing the button nothing happens.
please uninstall this mod and install this one:

https://vborg.vbsupport.ru/showthread.php?t=150761
Reply With Quote
  #117  
Old 04-30-2008, 12:21 AM
Bicho??'s Avatar
Bicho?? Bicho?? is offline
 
Join Date: Jul 2007
Location: Portugal
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can i do to put this working in VB 3.7.0
Reply With Quote
  #118  
Old 05-15-2008, 05:05 AM
popular popular is offline
 
Join Date: Jun 2007
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same or how i would love for it to work for VB 3.7 as users are used to having that button there is there a way to make both versions work? 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 06:32 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.04678 seconds
  • Memory Usage 2,285KB
  • Queries Executed 24 (?)
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
  • (1)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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