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
  #62  
Old 06-08-2007, 05:10 PM
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Posts: 615
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Coders Shack

What's the deal? I cannot get a drop down box to insert the url when I click on the cam icon. It's there and highlights when you mouse over, but it does nothing when you click it.

You got any pointers for me to look into? It would greatly be appreciated. Running 3.6.7PL1 here.
Reply With Quote
  #63  
Old 06-08-2007, 06:19 PM
vitrag24's Avatar
vitrag24 vitrag24 is offline
 
Join Date: Nov 2006
Location: India
Posts: 639
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this hack working properly without any prb on 3.6.4?
and easy to install without any patch or edition in ur addon/
as i'm not much familiar with programming
Reply With Quote
  #64  
Old 06-08-2007, 08:10 PM
aggiefan aggiefan is offline
 
Join Date: Apr 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work for hosting mp3 files? we use a different version hacked up to work with youtube which gets most of our videos but it doesnt work with mp3's. and we put our podcasts inline and would like to be able to play them.
Reply With Quote
  #65  
Old 06-08-2007, 08:30 PM
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Posts: 615
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I got my problem corrected from post #61, but I have another problem maybe some one can help with. When playing youtube vids I get no audio from post or testing in bbcode control. I have tried google vids and they work okay. I mostly use youtube and the reason I installed hack.
Reply With Quote
  #66  
Old 06-08-2007, 09:19 PM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alibass, are you having problems yesterday and today (thursday and friday?) Youtube has been having problems for the past 2 days. Yesterday some of my embedded videos would not load, nor would youtube load. And today (friday) youtube is running slow, plus comments on my videos are out of order, replies to comments are showing up under the wrong person.

So the audio might be be having problems from youtube.
Reply With Quote
  #67  
Old 06-09-2007, 03:10 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work... thanks.
Reply With Quote
  #68  
Old 06-09-2007, 03:17 PM
Zixxy Zixxy is offline
 
Join Date: Jun 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I add the code to the js file and upload the xml and install it but when I go to BB Manager, nothing there!

EDIT:: NVM. Working
Reply With Quote
  #69  
Old 06-11-2007, 04:50 PM
LPH2004 LPH2004 is offline
 
Join Date: Feb 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm. I edited the .js file, uploaded, uploaded the .xml, saved the BBCodes, and tried a post. The camera image for inserting video URLs is present and opens a place to insert URL. Copied Youtube code and end up with the following in the post. There is no video.

Code:
[youtube]MxmTaCnuMPA[/youtube]
Any suggestions? This is 3.6.7PL

See problem post

Updated this post because of my poor wording.
Reply With Quote
  #70  
Old 06-11-2007, 04:55 PM
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Posts: 615
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LPH2004 View Post
Hmm. I edited the .js file, uploaded, uploaded the .xml, saved the BBCodes, and tried a post. The image for videos is present and opens a place to insert URL. Copied Youtube code and end up with the following in the post. There is no video.

Code:
[youtube]MxmTaCnuMPA[/youtube]
Any suggestions? This is 3.6.7PL

See problem post
You may look here http://www.google.com/support/youtub...15&topic=10560

My problem with youtube is I cant hear the audio. Vid is fine. I did what youtube troubleshooting suggested for audio, but did not work for me.
Reply With Quote
  #71  
Old 06-11-2007, 05:03 PM
LPH2004 LPH2004 is offline
 
Join Date: Feb 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alibass View Post
You may look here http://www.google.com/support/youtub...15&topic=10560

My problem with youtube is I cant hear the audio. Vid is fine. I did what youtube troubleshooting suggested for audio, but did not work for me.
I'm sorry but I don't think that has anything to do with this problem experienced on the HP site. The code is showing rather than a place for video. I know YouTube is running slow today but at least something should show up besides the code. (?)

Update: FWIW, I also attempted a google video and the same problem exists. Only the code shows, not the video.
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 03:38 PM.


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.09877 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
  • (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
  • (4)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