The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
inlineVideo - Youtube / Myspace / Google / Ebaums
![]() Developer Last Online: Sep 2013 ![]() ![]()
[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
[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 */ 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!"); } } }; [hr]value[/hr] If you like then [Mark As Installed] [hr]value[/hr]Show Your Support
|
Comments |
#72
|
||||
|
||||
![]() Quote:
|
#73
|
|||
|
|||
![]()
NP. Hopefully someone can shed light on why only the code is showing and not video. I should fix my original post because I see my typing was slower than my brain.
Update: OK. I looked at the BB code manager and all code looks correct. When I saved this code, then the posts worked properly. YEAH ! |
#74
|
|||
|
|||
![]()
I love this addon but have a question.
Is there anyway to disable this for signatures? I know you can disable bb code for signatures but than people cant even have links in their signatures. Does anyone know how i can do this? |
#75
|
|||
|
|||
![]()
Thanks for that. *clicks install.
One question any plan for gametrailers support. It's the one I really want to embed. ![]() |
#76
|
|||
|
|||
![]()
Hi,can this be set just for admin?
|
#77
|
|||
|
|||
![]()
Sorry, I am new in vBulletin,
How to install the product xml? ![]() |
#78
|
||||
|
||||
![]()
Great hack, and thanks for all your efforts. I modified the "vbulletin_textedit.js" file to pull the video file tag directly from the embedded/blog code (vs. the URL) with the exception of Google video, because it does not offer the code. I did this because "Break.com", one of the more popular video sites, does not associate the URL within the embedded file tag.
My users just simply copy and paste the embedded/blog code from Break.com, YouTube, LiveLeak, Metacafe, Yahoo, MySpace, and eBaum's World, which inturn places the proper BB code and file tag. For Google Video, I tell my visitors to use the URL instead, because, as I said, it does not offer embed code. I'm not a coder, and I struggled through the entire process of trial and error, but I can honestly say that I am very happy with the results. I'm writing this post in case you may want to create an alternate version that would use the "provided" embed/blog" code instead of the URL, or even perhaps have it use both (either/or). Thanks again for a great hack. ![]() |
#79
|
|||
|
|||
![]()
your forum not work?
|
#80
|
|||
|
|||
![]() |
#81
|
|||
|
|||
![]() Quote:
Uninstall this hack |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|