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:
/**
* 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.
Can anyone help, please?
Had this installed and working a treat with 3.6.4.
Then upgraded to 3.6.7 and reinstalled.
Clicking the camera icon in the editor now does nothing.
Had to uninstall until I can get a solution.
Thanks.
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?
Anyone know how to no allow it in signature? Without turning bbcode off?
in the admin cp, edit bb code, replacement,
after i can preview youtube video,
but in the board, there is a youtube canvas, its write image coming soon,
loading....
but there is not a video (
how i can solve this .
there is a caps,
so.. if i wanna uninstall this and install the newer one... i'ts gonna be a dirty job i guess??
(usually clickign uninstall doesnt uninstall products and plugins properly..)