tqcovtau
22-09-2012, 10:21 AM
Installation Time: <2 mins
Products: 1
File Edit: 1
VB Version: 3.6.7
v2.02
removed the need for template edits.Example:
youtube-myspace-videos-posts/ (http://beasttoast.com/forum/f30/youtube-myspace-videos-posts-4535/)
Description:
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:
Open clientscript/vbulletin_textedit.js and Find:
// ================================================== ===========================
// vB_Text_Editor methods
/**
* Editor initialization wrapper
*/
Add This above:
/**
* 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("" + col_array[part_num] + "");
}
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("" + col_array[part_num] + "");
}
else if (my_colors.match("video.google."))
{
var col_array=my_colors.split("docid=");
var part_num=1;
return this.insert_text("" + col_array[part_num] + "");
}
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("" + col_array[1] + "");
}
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("" + col_array[1] + "");
}
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.
Products: 1
File Edit: 1
VB Version: 3.6.7
v2.02
removed the need for template edits.Example:
youtube-myspace-videos-posts/ (http://beasttoast.com/forum/f30/youtube-myspace-videos-posts-4535/)
Description:
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:
Open clientscript/vbulletin_textedit.js and Find:
// ================================================== ===========================
// vB_Text_Editor methods
/**
* Editor initialization wrapper
*/
Add This above:
/**
* 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("" + col_array[part_num] + "");
}
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("" + col_array[part_num] + "");
}
else if (my_colors.match("video.google."))
{
var col_array=my_colors.split("docid=");
var part_num=1;
return this.insert_text("" + col_array[part_num] + "");
}
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("" + col_array[1] + "");
}
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("" + col_array[1] + "");
}
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.