PDA

View Full Version : Mini Mods - MySpace/YouTube/Google Video Addon (best yet)


Pages : [1] 2

Mr Chad
12-04-2006, 10:00 PM
...

Mr Chad
12-04-2006, 10:35 PM
Reserved (not really done with this mod, just made it. works great on my board)

dodgeboard.com
12-04-2006, 11:20 PM
what about Google Videos?

Stavs16
12-04-2006, 11:36 PM
i agree what about google videos they are important too

Mr Chad
12-04-2006, 11:45 PM
added google.

dodgeboard.com
12-05-2006, 12:14 AM
Thanks Chad!!

Mr Chad
12-05-2006, 01:01 AM
tell me how well it works on your board, also don't forget to click install :P

BigJimTheLug
12-05-2006, 01:22 AM
Any demos for this?

Can u make it work for Metacafe as well?

Mr Chad
12-05-2006, 01:55 AM
added meta cafe, also no demos because you need to be logged in to post a topic on my site.

tell me if metacafe works.

magmf
12-05-2006, 02:50 AM
i click on insert link on editor and nothing happens

can anyone help me ?

Mr Chad
12-05-2006, 03:16 AM
did you make all the edits?

dot forget the postbit_quickedit and showthread_quickreply templates

lazytown
12-05-2006, 03:29 AM
i click on insert link on editor and nothing happens

can anyone help me ?

Same problem here.. Plus when I use the youtube code manually, it doesn't work properly (creates a box, but no video plays)

-vissa

lazytown
12-05-2006, 03:31 AM
I only made the edit mentioned on "editor_toolbar_on" but not on postbit_quickedit and showthread_quickreply. Why would that matter if I only want the link in the advanced editor?

-vissa

Mr Chad
12-05-2006, 03:35 AM
when you click the button what happens?

lazytown
12-05-2006, 03:41 AM
Nevermind I'm being lame today. Forgot to save the javascript editor file (had it open in pico).

However, in IE7 it does popup with a yellow warning box at the top of broswer saying you can only temporarily activate this control (which has to be clicked and enabled for it to work). I believe I've seen this for other buttons in VB. Testing now.....

youtube seems to work!! Good job, but I'll have to see what's going on with IE7. Probably the controls are too strict, but they default to medium-high I believe.

thanks
-vissa

Mr Chad
12-05-2006, 03:58 AM
lol, ok that makes more sense :P

make sure to save file edits.

abramelin
12-05-2006, 04:45 AM
any demo?

Mr Chad
12-05-2006, 04:55 AM
any demo?
cant give a demo because you need to login as a user not a guest.

but if you wana signup to see it go for it.

http://beasttoast.com/forum/register.php

no email verification enabled

magmf
12-05-2006, 08:40 AM
I made all changes but i continue with the problema...


i use vbulletin 3.6.4 and my browser is Firefox 2 with linux...

But i access in other machine with ie 7 and nothing happens...

can you look for me ?? http://under-linux.org/forums

magmf
12-05-2006, 09:01 AM
Sorry .... i found the problem

Now it's working...

Please put in your install instructions to put the javascript before all

/**
* Insert Link
*/

i only put in first :)

SORRYY!!

Arjan
12-05-2006, 03:11 PM
I simply added all of them to my BBcode section.
I don't see why I should hack the vbulletin_textedit.js file in version 3.6.x


I got metcafe to work.
But I added .swf after the {param} tag in the HTML code
And a little note to my users who copy and paste the video code from the URL bar to remove the trailing slash.
See here:
http://www.simmerspaintshop.com/forums/general-discussion/695-posting-videos.html#post4152

Stangsta
12-05-2006, 08:13 PM
Can this be used for standard videos hosted on the web? WMV, AVI, etc. If not, can you add that functionality?

Mr Chad
12-05-2006, 09:24 PM
not sure but i think its possible if i make the java script search for the format endings.

i just dont know how compatable the code would be:

<embed name="RAOCXplayer" src="{param}" width="352" height="300" autostart="true">

like i dont know how many extensions work with that code above. If i did then i could make an if statement checking for the valid file extensions.

popmyzit
12-05-2006, 09:28 PM
Thanks but The bb code instructions aren't complete.

popmyzit
12-05-2006, 09:48 PM
Googlevideo doesn't work on this for me. Youtube is fine...

Mr Chad
12-05-2006, 10:47 PM
what happens?

lazytown
12-05-2006, 11:17 PM
Everything works except metacafe. And of course the annoying script warning every time in IE7. I don't think that's your fault though -- VB has to do something about working properly with IE7 defaults.

The way the template edits were listed was VERY confusing so I could see people not getting it to work right. I was able to figure it out.

-vissa

perfphysio
12-06-2006, 12:30 PM
Yeah the BB instructions are not complete. We need to know what to put in the example in each case.

I have done this and by and large it works. The issue is though that since my upgrade to 3.6.4 none of my bb codes are working correctly. I get a message to install a plugin but when I do so the thing says it cannot find any.

You can see an example of what the page does at: http://www.physiobob.com/forum/showthread.php?p=9361#post9361

I am now not sure if this is a code issue or a server issue? Any ideas

e.g. you the youtube example be: http://www.youtube.com/watch?v=40k78zzAFj8

or 40k78zzAFj8

Mr Chad
12-06-2006, 12:58 PM
the thing is you are supposed to enter 40k78zzAFj8

but when you use the little button on the tool bar it strips the link http://www.youtube.com/watch?v=40k78zzAFj8 and turns it into 40k78zzAFj8

Arjan
12-06-2006, 01:58 PM
Everything works except metacafe. And of course the annoying script warning every time in IE7. I don't think that's your fault though -- VB has to do something about working properly with IE7 defaults.

The way the template edits were listed was VERY confusing so I could see people not getting it to work right. I was able to figure it out.

-vissa


From the code that is returned by the Javascript the trailing slash must be removed. (No idea how to do that in JS)

Change the metacafe BB HTML code to
<embed src="http://www.metacafe.com/fplayer/{param}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

Arjan
12-06-2006, 02:37 PM
Googlevideo doesn't work on this for me. Youtube is fine...

Probably because you do not use video.google.com

Change
if (my_colors.match("video.google.com"))

to
if (my_colors.match("video.google"))

So that URL from other countries are also supported.

Arjan
12-06-2006, 03:29 PM
Got it working

Fixes:
- Google aVideo from other domains then google.com (i.e. google.uk google.nl) are supported
- MetaCafe is working.

Here is the new Javascript code:

* Insert Video Link
*/
this.createvideolink = function(e, url)
{
var my_colors=prompt("Please enter MySpace, Metacafe, YouTube or Google video URL","");
if ((my_colors=="") || (my_colors==null))
{
alert("Please Enter The Full URL!");
}
else
{
if (my_colors.match("www.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("metacafe.com"))
{
var col_array=my_colors.split("/watch/");
var part_num=1;
var cafeStr=col_array[part_num];
if (cafeStr.lastIndexOf('/') == cafeStr.length-1)
{
return this.insert_text("" + cafeStr.substring(0,cafeStr.length-1) + "");
}
else
{
return this.insert_text("" + cafeStr + "");
}
}
else
{
alert("No valid Google, YouTube, MetaCafe or Myspace URL");
}
}
};


Here is the changed BB code:

Title: metacafe
Tag: metacafe
Replacement:
<embed src="http://www.metacafe.com/fplayer/{param}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

Mr Chad
12-06-2006, 09:00 PM
thanks, updated it.

rolandogomez
12-06-2006, 10:10 PM
A few things, in your instructions, please add that there are about four or five places (lost count) to add the code after

/**
* Insert Link
*/

In addition, each time you add a BB code it asks you for an example, that would be beneficial for us noncoder types.

On the image that shows up in the reply boxes, it's this link: http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif is that smart to do? I look at that as bandwith theft. You might tell people to download that image and where to change the code with your own server URL of the image.

Now, with that said, did everything, but it doesn't work for me, does nothing other than display the image. Something doesn't make the javascript work I'm guessing, perhaps VBSEO? Let me know, seems like a nice hack, thanks rg.

Mr Chad
12-06-2006, 11:00 PM
hmm it seems it doesn't work when you change it into normal text edit from WYSIWYG. So it only works in WYSIWYG, i'm sure theres a second place to put the JS edit for it to work in both, i just don't know it yet.

TCattitude
12-07-2006, 08:02 PM
hmm it seems it doesn't work when you change it into normal text edit from WYSIWYG. So it only works in WYSIWYG, i'm sure theres a second place to put the JS edit for it to work in both, i just don't know it yet.
In the same javascript file, but before this (actually, works in many places around that part of the JS):

/**
* Insert Image
*
* @param event Event object
* @param string (Optional) Image URL
*
* @return boolean
*/

That's all. In that way works in the normal editor.

Mr Chad
12-07-2006, 09:20 PM
if i put it there will it work in both normal and WYSIWYG mode? or does it need to be in both places?

paypal
12-08-2006, 03:17 AM
getting error on page display when i post new thread, non of the editing buttons work along with the media buttons?

did i miss something here.

AWJunkies
12-08-2006, 04:37 AM
So if this mod good to go now? Works for normal edit mode not wys*. Quick edit and full etc and so on and quick post and full post?

BigJimTheLug
12-08-2006, 06:29 AM
Hey, I tried it just like you said and it does not embed the videos.

the button doesn't work either.....lol..

something is wrong.......

BigJimTheLug
12-08-2006, 06:30 AM
So if this mod good to go now? Works for normal edit mode not wys*. Quick edit and full etc and so on and quick post and full post?

oh, it doesnt work with wys!

So I need to be on normal edit?

BigJimTheLug
12-08-2006, 04:42 PM
A few things, in your instructions, please add that there are about four or five places (lost count) to add the code after

/**
* Insert Link
*/

In addition, each time you add a BB code it asks you for an example, that would be beneficial for us noncoder types.

On the image that shows up in the reply boxes, it's this link: http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif is that smart to do? I look at that as bandwith theft. You might tell people to download that image and where to change the code with your own server URL of the image.

Now, with that said, did everything, but it doesn't work for me, does nothing other than display the image. Something doesn't make the javascript work I'm guessing, perhaps VBSEO? Let me know, seems like a nice hack, thanks rg.


oh yes, I too have vbseo.....

This might be the problem then...I'm a noncoder, but alas, don't want my scripting skills to be flaky!


please update

BigJimTheLug
12-08-2006, 04:54 PM
ok, another problem with this..

After installing this hack,
none of my editor buttons work.

What is up with that?

DId do something wrong?

Im going to start all over and then come back..if not..forget this hack...

BigJimTheLug
12-08-2006, 05:05 PM
Dude, this doesn't seem to work for me.

I've installed the proper php code in all places, and edited all templates.

All that happened was that all of the buttons on my editor template stopped working..........

I do run vbseo.....

don't know if that is a problem or not...

doesn't work...

good hack, but needs work....any suggestions are welcomed! Thank!

BigJimTheLug
12-08-2006, 05:16 PM
It looks like the problem with me occurs in the

Open clientscript/vbulletin_textedit.js

loss of button functions....

BigJimTheLug
12-08-2006, 05:24 PM
ok, this mod intended for all versions of

vbulletin?

I removed all files from the

Open clientscript/vbulletin_textedit.js

and all buttons are working again...

Something is wrong with the coding...

I run vbseo and vb3.6.4

silks
12-08-2006, 05:59 PM
this is correct - i changed my js script back to normal and the buttons work again

anyway round this as i really like this on my site?

thx:D

^SuiCyde^
12-09-2006, 12:46 AM
nice anyway you can add one more?

www.dailymotion.com

they're files are in this format.....

http://www.dailymotion.com/flash/flvplayer.swf?rev=1164865262&url=http%3A%2F%2Fwww.dailymotion.com%2Fget%2F6%2F3 20x240%2Fflv%2F401639.flv%3Fkey%3D338490c80a2d9fd6 8cc74228b505ab791288839%26log%3D1%26log_blog_key%3 D5FrVp9MNzMvAy1Gu3%26log_referer%3Dhttp%3A%2F%2Fww w.yourtvlinks.com%2Faqua-teen-hunger-force.html&previewURL=http%3A%2F%2Fstatic.dailymotion.com%2Fd yn%2Fpreview%2F320x240%2F401639.jpg%3F200607241423 04&autoStart=0&playerURL=http%3A%2F%2Fwww.dailymotion.com%2Fvideo %2Fx8lwn_aquateenhungerforce201dumberdolls&estatEnabled=1&estatClient=players_dm&estatSection=blog

so as you can imagine i'm having trouble figuring out how to set the {param}

lazytown
12-09-2006, 01:01 AM
I think vbseo must be causing problems or you didn't apply the template edits correctly (they are confusing). working fine for me on vb 3.6.4.

-vissa

BigJimTheLug
12-09-2006, 02:51 PM
I'm guess it is a vbseo problem...

man...!?!?!!

Mr Chad
12-09-2006, 03:03 PM
no, vb SEO works fine for me

TCattitude
12-09-2006, 06:00 PM
if i put it there will it work in both normal and WYSIWYG mode? or does it need to be in both places?
I put the changes in both places.
Working without problems in wysiwyg and normal editor.

cobradude
12-10-2006, 06:44 PM
What are you guys using to edit the js script? As others have noted, as soon as I edit the script it falls over and I get an error on the page and the buttons don't work. Back out the changes and things are back to normal....

Mr Chad
12-11-2006, 12:12 AM
try new code

BigJimTheLug
12-11-2006, 04:58 AM
try new code


new code...?

can you be more precise and expand on this?
thanks:)

francohungary
12-11-2006, 08:12 AM
Anyone still having problems with this? I'd really like to get this to work - looks like a great feature but the video icon does nothing when clicked (using IE 6 browser - default security). The rest of my buttons work fine.

cobradude
12-11-2006, 02:02 PM
I am having problems still. As soon as I edit the script it no longer works. I get an error on the page that indicates the vb_text_editor is not defined. I'm using wordpad to edit the file and wondering if somehow it is corrupting it?

Mr Chad
12-14-2006, 01:58 AM
ok if that JS code doesnt work for you use this (this one is the basic one):

/**
* Insert Video Link
*/
this.createvideolink = function(e, url)
{
var my_colors=prompt("MySpace or YouTube or Google video URL","");
if ((my_colors=="") || (my_colors==null))
{
alert("Please Enter The Full URL!");
}
else
{
if (my_colors.match("www.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.com"))
{
var col_array=my_colors.split("docid=");
var part_num=1;
return this.insert_text("" + col_array[part_num] + "");
}
else
{
alert("Please Enter The Full URL!");
}
}
};


add that code above these two spots:
/**
* Insert Link
*/
/**
* Insert Image
*
* @param event Event object
* @param string (Optional) Image URL
*
* @return boolean
*/

paypal
12-15-2006, 03:00 AM
is there a way to add an rss feed to the forum, revver.com has an affiliate program allowing rss feed to website, maybe this is possible for Forum aswell ... thankyou

awaiting response

Arjan
12-15-2006, 07:23 AM
I'm guess it is a vbseo problem...

man...!?!?!!

Nope, works fine for the wysiwyg editor with VBSEO latest RC on my site.
But if your buttons stop working you probably have this error message in the statusbar. Open it to find out what is wrong.

And yes, when something is wrong with the JS then all buttons stop working at once, since the editor cannot be initialised.

dtdesign
12-17-2006, 09:35 AM
I'm having a bit of flakiness with it. It works fine for my own admin login but for my test account it didn't seem to like it all.

Is there anyways to get support for Streetfire http://videos.streetfire.net/

tschai
12-18-2006, 06:13 PM
Nice add-on: this could easly be 'tweaked' in a lite-anyMedia version...;)

*installed*

Murty
12-18-2006, 10:19 PM
Would it be possible to use this for a users profile?

dprundle
12-19-2006, 09:17 PM
thx m8, it is installed.

Bod68
12-20-2006, 03:30 AM
Thanks all edits done and works great :)

^SuiCyde^
12-20-2006, 08:18 PM
I'm having a bit of flakiness with it. It works fine for my own admin login but for my test account it didn't seem to like it all.

Is there anyways to get support for Streetfire http://videos.streetfire.net/


wouldn't it just be......


title: streetfire
tag: streetfire
replacement:
<embed src="http://videos.streetfire.net/{param}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

Murty
12-20-2006, 08:18 PM
Would it be possible to use this for a users profile?

Bump

^SuiCyde^
12-20-2006, 09:39 PM
hmm.....on my site, i have the button and none of the other javascript has stopped working......but the video insert button doesn't respond neither in quick reply or advanced edit area.......

Saulie
12-21-2006, 07:14 PM
hmm.....on my site, i have the button and none of the other javascript has stopped working......but the video insert button doesn't respond neither in quick reply or advanced edit area.......
Exact same problem here.

adonfun
12-27-2006, 06:00 PM
added meta cafe, also no demos because you need to be logged in to post a topic on my site.

tell me if metacafe works.

Why not add some screenshots so that we can see what is added/displayed when someone ads a video using yourmod :)

noonespecial
12-27-2006, 09:53 PM
I had to edit a template to change:

clientscript/vbulletin_textedit.js

to

/clientscript/vbulletin_textedit.js

Everything worked fine after that (and having added the code before EVERY "insert link" in the textedit.js file).

Works fine: http://www.absolutepunk.net/showthread.php?t=199642

There's examples in that thread for those curious how it ends up looking.

I also ended up creating new "button" icon. I've attached it - for anyone that wants to use it.

MrPHD
12-27-2006, 11:04 PM
cant give a demo because you need to login as a user not a guest.

but if you wana signup to see it go for it.

http://beasttoast.com/forum/register.php

no email verification enabled

go here http://www.phdvbulletin.com/forum/showthread.php?p=96#post96

moonface
12-28-2006, 02:57 PM
this is the best!!!

MajorFm.com
12-28-2006, 03:22 PM
I installed this, then very quickly uninstalled it... didn't work at all...

rolandogomez
12-29-2006, 04:09 AM
noonespecial,

For us noncoder types, can you explain step by step what you did, and be a bit more elaborate on this,
I had to edit a template to change:

clientscript/vbulletin_textedit.js

to

/clientscript/vbulletin_textedit.js

Everything worked fine after that (and having added the code before EVERY "insert link" in the textedit.js file).

Thanks, and Happy Holidays, rg sends!

smoknz28
12-29-2006, 02:08 PM
Hahahahaa.....man, this thread kills me....

This is to be the "best yet", but there's so many isssues I see going on with using this hack.

I'm running a different hack for YouTube and Google Video, I'm not really impressed by it....but it hasn't failed me yet. The coder never put..."best yet" either.

I am curious how different this hack is from all the others to make the coder think it's the "best yet".

Mr Chad
12-30-2006, 07:12 PM
i don't have that much time to explain how to get this to work to a noncoder.

But if you know what your doing you should be fine.

ssvp
12-30-2006, 10:12 PM
To get around the IE issue. Just add http://yourforumurl to your trusted sites in IE and Untick the SSL box at the bottom of that screen..

rolandogomez
12-31-2006, 01:16 AM
Mr. Chad--that's the saddest and most insulting thing I've ever heard from a coder in over 9-years I've received help. I'm not asking you to code my site, though I don't mind paying "a coder" for the work and I often have when I could not figure it out for myself.

I would know somewhat "what I was doing" if your explanation wasn't so vague, you stated, "I had to edit a template to change:

clientscript/vbulletin_textedit.js

to

/clientscript/vbulletin_textedit.js

I justed wanted to know "what template? and where?" as most coders and contributors that post their hacks here do that very well.

For someone claiming "best yet" and "i don't have that much time to explain how to get this to work to a noncoder," it only indicates to me you really don't care if anyone uses your hack or not. Thanks anyway, and if anyone ever needs photography instructions, I don't mind helping even though you're not a "pro " photographer, in fact I wrote two books on it available at Barnes & Nobels, Borders and many other places because I'm passionate about my craft and it feels better to spread the gospel of my craft than hinder it.

http://www.glamour1.com/private/ostrich1.jpg

Wishing you the best, and Happy New Year! rg sends!

kdemonte
01-02-2007, 01:10 AM
Wow! How insulting are you Mr. Chad? So glad I've wasted so much time trying to get this hack to work!

tschai
01-02-2007, 10:24 AM
i don't have that much time to explain how to get this to work to a noncoder.

But if you know what your doing you should be fine.

I feel like offended too, to be honest... :confused:

Mr Chad
01-03-2007, 11:05 PM
Wow! How insulting are you Mr. Chad? So glad I've wasted so much time trying to get this hack to work!
you did it tho, you should be proud.

and I'm not trying to be insulting.

dtdesign
01-05-2007, 11:31 AM
hmm.....on my site, i have the button and none of the other javascript has stopped working......but the video insert button doesn't respond neither in quick reply or advanced edit area.......

I found this worked on my site, anyone that couldn't use the button I got them to change their options to use WYSIWG Editor and they can post videos...

https://vborg.vbsupport.ru/external/2007/02/35.jpg

Immortal_Shades
01-06-2007, 01:02 AM
Install and deleted will stick to anymedia.
There's an old saying treat people as you want to be treated!
If you want respect then show respect!

GruntHalo
01-06-2007, 11:51 AM
Thanks I have this on my site and it's great!

Mr Chad
01-06-2007, 05:54 PM
Install and deleted will stick to anymedia.
There's an old saying treat people as you want to be treated!
If you want respect then show respect!

lol I'm so offended... i releases something just to release it and your trying to put a guilt trip on me... Do as you wish i really don't care what you use. I coded this for myself and released it thinking that it might be useful for other people. It wouldn't make a difference if 1 person liked it or 1000 people did.

Immortal_Shades
01-07-2007, 04:32 AM
The funny things is you can get all those videos to work by just creating a new BBcode for them. You DO NOT need to mess with the JS at all.

Chad: I am not laying no guilt trip on any one, I am merely stating what is factual.
Bottomline Good Karma makes the world go round and when you get older you will understand that.
You didn't have to be a jerk with that user, he was just inquiring about your hack.

In life such negativity will only get you the same in return thus is why I said "Treat others and you want to be treated!" Now if you want to have a tantrum over that so be it, but this forum I thought was about helping others for the greater good. Not shunning them because they may know less.

Mr Chad
01-07-2007, 04:39 AM
ok then...

zincpony
01-07-2007, 05:35 PM
is there a way to add streetfire.net videos also

ibuddy
01-07-2007, 11:42 PM
ok if that JS code doesnt work for you use this (this one is the basic one):

/**
* Insert Video Link
*/
this.createvideolink = function(e, url)
{
var my_colors=prompt("MySpace or YouTube or Google video URL","");
if ((my_colors=="") || (my_colors==null))
{
alert("Please Enter The Full URL!");
}
else
{
if (my_colors.match("www.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.com"))
{
var col_array=my_colors.split("docid=");
var part_num=1;
return this.insert_text("" + col_array[part_num] + "");
}
else
{
alert("Please Enter The Full URL!");
}
}
};


add that code above these two spots:
/**
* Insert Link
*/
/**
* Insert Image
*
* @param event Event object
* @param string (Optional) Image URL
*
* @return boolean
*/
this worked

Zalaki
01-09-2007, 05:18 AM
Plugin doesnt work... i feel sad..

ibuddy
01-09-2007, 07:29 AM
can you add liveleak.com please? that seems to be a pretty popular site

lazytown
01-09-2007, 09:12 AM
I've been a big supporter of this hack, but I think the OP has some growing up to do perhaps?

-vissa

Mr Chad
01-12-2007, 08:18 PM
updated instructions and fixed a you tube problem. also fixed the problem where it only worked in WYSIWYG mode.

sd45
01-15-2007, 12:50 PM
Is there anyway that cmps can pull the latest few videos to put on cmps main page?

Looks like a great mod, just added it. If I can get the above to work it will be a perfect fit!

rjp0615
01-15-2007, 01:35 PM
teh sweetness

Arjan
01-16-2007, 04:48 PM
The funny things is you can get all those videos to work by just creating a new BBcode for them. You DO NOT need to mess with the JS at all.



I agree totally...
But then you have to explain your users which part of the URL they have to use.
For some sites not much of a problem, but for Metacafe a pain (as my users complained).

This JS script takes the URL and takes the part it needs. And that really works very simple for the users. They copy and paste the whole URL of the site and they are done. Like shown here:
http://www.simmerspaintshop.com/forums/general-discussion/695-posting-videos.html

Editing the JS code is a bit tricky and if it fails you indeed notice the whole editor to stop working. So, be carefull and make a backup of the JS file before you start.

Arjan
01-16-2007, 04:59 PM
Is there anyway that cmps can pull the latest few videos to put on cmps main page?

Looks like a great mod, just added it. If I can get the above to work it will be a perfect fit!

This is only to get video's in messages. Though it does work with news messages that are also displayed on CPMS.

kurv
01-19-2007, 08:48 PM
Worked perfectly for me... thanks!!!

dutchbb
01-20-2007, 04:52 PM
Doesnt work here in vb 3.6.2

Video is not showed and url in tags is replaced with the word 'undifined'

http://video.google.nl/videoplay?docid=-7727792694067848242 that url isn't working it says fill in the complete url?

Mr Chad
01-20-2007, 06:06 PM
Doesnt work here in vb 3.6.2

Video is not showed and url in tags is replaced with the word 'undifined'

http://video.google.nl/videoplay?docid=-7727792694067848242 that url isn't working it says fill in the complete url?
thats because its google.nl and not google.com

undo your .js changes and use this (it will work with any google video):

/**
* Insert Video Link
*/
this.createvideolink = function(e, url)
{
var my_colors=prompt("MySpace or YouTube or Google 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
{
alert("Please Enter The Full URL!");
}
}
};

dutchbb
01-20-2007, 06:48 PM
ahh I see, thank you Chad!

ps: how do I add www.onzin.com :)

Mr Chad
01-20-2007, 09:45 PM
ahh I see, thank you Chad!

ps: how do I add www.onzin.com :)
im not sure, i have never used onzin

dutchbb
01-21-2007, 04:20 PM
What about break.com , i tried it myself but can't get it to work.

SpArKs85
01-21-2007, 05:16 PM
Sorry .... i found the problem

Now it's working...

Please put in your install instructions to put the javascript before all

/**
* Insert Link
*/

i only put in first :)

SORRYY!!

I made the same mistake. Tested youtube about to test the others

SpArKs85
01-21-2007, 05:48 PM
Yep all working fine. The google one took a while to kick in but its all good now.

Thanks

newaki1
01-21-2007, 10:00 PM
first, the best hack!

wondering if you could add on to your great hack and put pornotube.com as an option also..

Thanks

Mr Chad
01-21-2007, 11:01 PM
im not sure you can do porno tube. It would require umm AJAX and a little processing.

newaki1
01-22-2007, 03:10 AM
damn i was hoping it would be an easy addon.. thanks anyways

ibuddy
01-22-2007, 04:48 AM
can you add photobucket and liveleak?

Mr_Eslam
01-22-2007, 10:10 AM
this hack i great

thank you for it

Fr4gZ
01-22-2007, 01:44 PM
Just added it and it works a treat after some tweaking. Are you planning on adding some others for us greedy people such as:

- Metacafe
- Putfile
- Kontraband
- Break.com
- ebaumsworld

I have no coding skillz so I wouldn't know where to start and I appreciate the time element as you are doing US a favour. I'm sure I speak about 99% of us who are genuinely grateful for your efforts. If you can do any of these i'm sure they'd be put to good use! <3

*edit*

Here's the link for metacafe embedded player:

https://vborg.vbsupport.ru/showthread.php?t=125647

Here's the link for break embedded player:

https://vborg.vbsupport.ru/showthread.php?t=125298

pcxmedia
01-22-2007, 06:56 PM
I figured out streetfire so I could post them on my car forum Driven2Modify.com

Add you VB tags..
name streetfire
tag streetfire
<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video={param}" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>

Then add this into your "Insert Video Link" after the googlevideo one.
else if (my_colors.match("videos.streetfire.net/"))
{
var col_array=my_colors.split("video/");
var part_num=1;
final = col_array[part_num].split(".")
var part_num=0;
return this.insert_text("" + final[part_num] + "");
}

That should be it!

dutchbb
01-22-2007, 07:15 PM
Just added it and it works a treat after some tweaking. Are you planning on adding some others for us greedy people such as:

- Metacafe
- Putfile
- Kontraband
- Break.com
- ebaumsworld

I have no coding skillz so I wouldn't know where to start and I appreciate the time element as you are doing US a favour. I'm sure I speak about 99% of us who are genuinely grateful for your efforts. If you can do any of these i'm sure they'd be put to good use! <3

*edit*

Here's the link for metacafe embedded player:

https://vborg.vbsupport.ru/showthread.php?t=125647

Here's the link for break embedded player:

https://vborg.vbsupport.ru/showthread.php?t=125298
Tried that code with break.com but it doesnt work with this hack. Hopefully Mr Chad knows how it can be implemented.

Fr4gZ
01-22-2007, 08:04 PM
I tried it too but there seemed to be a piece of code I didnt have that was different for youtube, google and myspace so it will probably be different for this too.... Pls Mr Chad. It would seriously help our sites! ;)

<3

Mr Chad
01-22-2007, 08:22 PM
I tried it too but there seemed to be a piece of code I didnt have that was different for youtube, google and myspace so it will probably be different for this too.... Pls Mr Chad. It would seriously help our sites! ;)

<3
i was adding other sites but it became an issue... So i decided just to stick with the top 3

Fr4gZ
01-22-2007, 08:44 PM
Is that a definate no then regarding adding any more Mr Chad?

Mr Chad
01-22-2007, 09:54 PM
Is that a definate no then regarding adding any more Mr Chad?
Ok ill do it you you paste the code the sites give you to embed the video on another page. But I'm not going to go out of my way to go to these sites.

Fr4gZ
01-22-2007, 10:26 PM
You're a star i'm sure everyone will be grateful... i'll keep adding them to my initial post. ;)

Mr Chad
01-23-2007, 12:57 AM
ok well the other sites you posted cant really be done with just JavaScript but i did the ones i could.

MetaCafe and Ebaumsworld

Find This in the javascript file:

return this.insert_text("" + col_array[part_num] + "");
}


under it add:

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] + "");
}



BB Codes

Title: ebaumsvideo
Tag: ebaumsvideo
Replacement:
<embed src="http://ebaumsworld.com/ml_player2.swf" FlashVars="sharelink=http%3A%2F%2Ftaf.ebaumsworld.com%2Fform. php%3Frid%3D195%26ref%3D/{param}.html&stream=http%3A%2F%2Fwww.ebaumsworld.com/{param}.flv" loop="false" menu="false" quality="high" bgcolor="#ffffff" width="480" height="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Title: metacafe
Tag: metacafe
Replacement:<embed src="http://www.metacafe.com/fplayer/{param}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>


these are untested give me results after you try it.

Mr Chad
01-23-2007, 02:13 AM
anyone use these yet? I would like an error report.

Fr4gZ
01-23-2007, 08:14 AM
*tests now*

Added them both and neither works I'm afraid :/

stuartn
01-23-2007, 12:31 PM
This is a great mod, did the changes in minutes and my members love it....only waiting for the mod for putfile and that will keep my members happy.

Mr Chad
01-23-2007, 01:18 PM
*tests now*

Added them both and neither works I'm afraid :/
lol javascript error make the javascript edites again, it should work.

Mr Chad
01-23-2007, 01:19 PM
This is a great mod, did the changes in minutes and my members love it....only waiting for the mod for putfile and that will keep my members happy.
this is not possible.

Fr4gZ
01-23-2007, 01:43 PM
It didn't seem to work however the error message was different... here is a pic Mr Chad:

https://vborg.vbsupport.ru/external/2007/01/6.jpg

Mr Chad
01-23-2007, 07:04 PM
did you change the javascript changes to:

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] + "");
}

that should work and not give you an alert message... give me your site url and ill check out your javascript.

Fr4gZ
01-23-2007, 07:18 PM
<a href="http://www.fr4gz.co.uk/forum" target="_blank">www.fr4gz.co.uk/forum</a>

I'm pretty sure it's all correct now mate.

dutchbb
01-23-2007, 07:28 PM
ebaums and metacafe are working on my site: http://forum.dutchbodybuilding.com/f45/videos-posts-95952/#post1686836

Great work Mr Chad

Mr Chad
01-23-2007, 08:29 PM
www.fr4gz.co.uk/forum

I'm pretty sure it's all correct now mate.
yea your javascript looks fine. and it seems it worked for dutchbb.

Fr4gZ
01-24-2007, 01:30 PM
Hmmmm bugger they were two sites my guys get vids from too.... how have I cocked it up this time... /cries

wassimeh
01-24-2007, 05:10 PM
hi, i followed the installation step by step but and the end, I can't see any video. help
here's my forum link : http://realfta.com/forum/showthread.php?p=665#post665

Mr Chad
01-24-2007, 07:03 PM
hi, i followed the installation step by step but and the end, I can't see any video. help
here's my forum link : http://realfta.com/forum/showthread.php?p=665#post665
lol.... you forgot to make the custom BB codes...

wassimeh
01-24-2007, 07:45 PM
shame on me :s
I fixed it :P thanks

Mr Chad
01-24-2007, 09:41 PM
Hmmmm bugger they were two sites my guys get vids from too.... how have I cocked it up this time... /cries

not sure but just start fresh and use this as the edit:

/**
* Insert Video Link
*/
this.createvideolink = function(e, url)
{
var my_colors=prompt("MySpace, YouTube, Google video, eBaum's World of Metacafe URL","");
if ((my_colors=="") || (my_colors==null))
{
alert("Vul aub de volledige URL in");
}
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("Vul aub de volledige URL in");
}
}
};

Fr4gZ
01-25-2007, 10:07 AM
YES!!!! SUCCESS!!!!!

Your a star Chad. I'll keep looking at this thread in case you ever add any more. I reckon you should add these 2 to your mod as I reckon people would find them very useful!

Thanks! <3

Mr Chad
01-25-2007, 01:15 PM
YES!!!! SUCCESS!!!!!

Your a star Chad. I'll keep looking at this thread in case you ever add any more. I reckon you should add these 2 to your mod as I reckon people would find them very useful!

Thanks! <3
well before i do that i wana learn if its possible to add BB codes through product installation.

mshadows
01-25-2007, 06:29 PM
I noticed that this code in the JS file shows up a lot of times:

/**
* Insert Link
*/

Do we add the mod code above all of them? Or perhaps only the first one in the file?

Mr Chad
01-25-2007, 08:32 PM
there should be two of them.

also i added a product xml there is no longer a need to add the BB code manually. Also added metacafe and ebaums in the standard install.

TCHQ-0wn4g3
01-25-2007, 09:30 PM
Why does the image that appears in the Text editor after the product is installed linked or hosted on a domain outside of where my forum is installed. Loading that image from an external site has caused my forum to slow down until that image loads.

The image is pointing to http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif

mshadows
01-25-2007, 09:38 PM
Why does the image that appears in the Text editor after the product is installed linked or hosted on a domain outside of where my forum is installed. Loading that image from an external site has caused my forum to slow down until that image loads.

The image is pointing to http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif

Just change it in the template edits...

TCHQ-0wn4g3
01-25-2007, 09:51 PM
ok did the necessary template changes and the image is there, however the image doesn't do anything when clicked.

Mr Chad
01-25-2007, 09:55 PM
ok did the necessary template changes and the image is there, however the image doesn't do anything when clicked.
do both javascript changes...

Nathan2006
01-25-2007, 11:11 PM
Hello MrChad,

Im stuck with the instructions:

In 1st post says fine 2 of the following code

/**
* Insert Link
*/

But I can see 4 of them :(

Which ones do I need to add the code above?

Thanks for any help :)

/**
* Insert Link
*/
this.createlink = function(e, url)
{
return this.apply_format('createlink', is_ie, (typeof url == 'undefined' ? true : url));
};

/**
* Insert Link
*/
this._createlink = this.createlink;
this.createlink = function(e, url

/**
* Insert Link
*/
this._createlink = this.createlink;
this.createlink = function(e, url)
{
if (typeof url == 'undefined'

/**
* Insert Link
*/
this.createlink = function(e, url)
{
this.prompt_link('url', url, vbphrase['enter_link_url'], 'http://');

dutchbb
01-25-2007, 11:20 PM
@Nathan2006 look at post #138 & #139.

Nathan2006
01-25-2007, 11:25 PM
@Nathan2006 look at post #138 & #139.


So there are no file edits?

Mr Chad
01-25-2007, 11:48 PM
So there are no file edits?
put them above all 4 then. it cant hurt.

also what vb ver are u running.

Nathan2006
01-26-2007, 12:05 AM
put them above all 4 then. it cant hurt.

also what vb ver are u running.


Hi,

I'm running vB Version: 3.6.4

I have added all the code above each of them but no luck.

After adding the url's it just appears like this in a post:

JZCHpacxl4c
-1154844957034870481

BB-code is enabled for all usergroups.

Here is an un-edited copy of my js file

Mr Chad
01-26-2007, 01:09 AM
did you install the product thats attached?

casedesign
01-26-2007, 02:32 AM
I have the same issue. Edited the js, and styles, imported product. It converts the URLs, but then just displays the code.

casedesign
01-26-2007, 02:45 AM
I deleted the ebaums bbcode and the metacafe code, and now the Myspace, Google, and Youtube codes work. Could there be an error in the product.xml for those two that I deleted?

Nathan2006
01-26-2007, 02:51 AM
did you install the product thats attached?


Yep

js edited, Product installed and templates edited.

Its with it having the 4 /** Insert Link that is confusing me.

I don't know which 2 I need to edit lol

If I knew that I'm sure it would work just fine :)

casedesign
01-26-2007, 02:56 AM
I edited all 4 of them. I have the three types of video working, but not metacafe & ebaums.

Fr4gZ
01-26-2007, 08:16 AM
Did u add the BB codes for Metacafe and Ebaums?

Mr Chad
01-26-2007, 03:54 PM
the product should already do that.

fr4gz can you delete your bb codes and install the product?

shorelocal
01-26-2007, 06:46 PM
Hi,

I'm running vB Version: 3.6.4

I have added all the code above each of them but no luck.

After adding the url's it just appears like this in a post:

JZCHpacxl4c
-1154844957034870481

BB-code is enabled for all usergroups.

Same issue with my site.

http://testvb.bigring.ca/showthread.php?p=3&posted=1#post3

Mr Chad
01-26-2007, 06:55 PM
and the product is installed?

shorelocal
01-26-2007, 06:59 PM
and the product is installed?

yes

http://www.bigring.ca/images/installed.jpg

shorelocal
01-26-2007, 07:39 PM
I just uninstalled and reinstalled the product .... same result (no worky)

Mr Chad
01-27-2007, 12:50 AM
do you have any new BB codes?

Ecron Daemon
01-27-2007, 08:55 AM
it's the same for me. Same problem of Shorelocal

shorelocal
01-28-2007, 06:29 PM
do you have any new BB codes?

No. This and the CMS from vbadvanced are the only mods to my board.

TCHQ-0wn4g3
01-28-2007, 08:34 PM
I am getting the same problem. I have gone through the installation process twice and this is my end result.

Youtube
fddu1Yb-hSI

Google Video
-2595672131009964461

MySpace
1758861599

:(

Here is a screenshot of my BBcodes area after the product installation.

59637

Mr Chad
01-28-2007, 11:52 PM
hmm for some reason its not adding the HTML for the BBCODE what VB version are you using?

Mr Chad
01-29-2007, 12:03 AM
ok heres what you do, click edit on each BB code and just save it.

Im guessing im missing a database value. By re-saving the BB codes it adds it for you.

masons
01-29-2007, 01:46 AM
Hi Guys,

I installed this and it doesnt work, I edited all the files but no I cannot click on any of the bbcode options in postings. Please help me!

masons
01-29-2007, 01:48 AM
Hi Guys,

I installed this and it doesnt work, I edited all the files but no I cannot click on any of the bbcode options in postings. Please help me!

Mr Chad
01-29-2007, 02:51 AM
did you go to the BB code section in the adminCP and edit and resave all codes that were added?

amnesia623
01-29-2007, 05:36 AM
thanks!

TCHQ-0wn4g3
01-29-2007, 08:33 AM
yep, I went in to the BB code manager, clicked edit, then clicked save and now all of the BB codes work. Thanks alot.!

Mr Chad
01-29-2007, 12:51 PM
wish i could make it work without that fix :(.

shorelocal
01-29-2007, 05:16 PM
Thanks ... all good over here too.

Mr Chad
01-29-2007, 08:56 PM
ok its good that is cleared up :D

Mr Chad
01-29-2007, 10:57 PM
the edit you made in your templates:

<td><div class="imagebutton" id="{$editorid}_cmd_createvideolink"><img src="http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>

just change that url in the red and you can use any icon.

nishv
01-29-2007, 10:58 PM
I can't seems to make the icon work...

I have done everything and still not working...

nishv
01-29-2007, 11:00 PM
The Icon is loading but when I click it, nothing happens...

Mr Chad
01-29-2007, 11:02 PM
The Icon is loading but when I click it, nothing happens...
did you make the javascript edits?

please follow instructions before asking questions.

nishv
01-29-2007, 11:04 PM
Yeah, it is probably a permission error, let me see whether that works...

nishv
01-29-2007, 11:32 PM
There is a typo error I've made... Its fixed now.

Thanks for the help and the mod MR Chad!

Very Nice.

Mr Chad
01-29-2007, 11:41 PM
:D nice to see another working install.

ZiG
01-29-2007, 11:44 PM
would you be able to add a videos page similiar to the videos.html page in this mod

https://vborg.vbsupport.ru/showthread.php?t=131567

I think it would improve this mod even more.

Mr Chad
01-30-2007, 12:23 AM
would you be able to add a videos page similiar to the videos.html page in this mod

https://vborg.vbsupport.ru/showthread.php?t=131567

I think it would improve this mod even more.
thats too much work lol.

ZiG
01-30-2007, 03:25 AM
trueeeee...damn that would be awesome tho...guess ill have to wait for anymedia 4 SEO... blahhh

Fr4gZ
01-30-2007, 11:35 AM
Yeah that would be awesome! :D

stuartn
01-30-2007, 11:20 PM
I'm going round the twist I altered the java and uploaded the product, resaved them I can get youtube, google and myspace fine, but the other two metacafe and eBaum's keep coming up with an error saying "Insert Full URL".....I can within admin see sample movies playing so I suspect I'm a minor bit off but where!!.

www.rcheliaddict.co.uk

Mr Chad
01-31-2007, 12:27 AM
umm hmm the JS worked on everyones except yours.

try starting over.

djcaseanova
01-31-2007, 02:20 AM
will this only work for externally hosted videos? I am looking for something only I (admin) can control access to to host videos in my forums without having to create an external page/site for. I have them on my server, just want to find a way to host them in the forum... where I can limit access based on subscriptions.

Lee 2007
01-31-2007, 06:05 AM
Ive tried loads of times to get this working but it just shows up a big white box and no video when Im trying to post a YouTube video.

Mr Chad
01-31-2007, 02:02 PM
it says just to do it under the insert link. also it will not work with MSN videos. have you made the BB code edits?

stuartn
01-31-2007, 03:24 PM
I added it above all four codes now I seem to have only an issue with metacafe....white box but no video....then sometimes when I preview the post its there. Any clues.

Mr Chad
01-31-2007, 07:56 PM
I added it above all four codes now I seem to have only an issue with metacafe....white box but no video....then sometimes when I preview the post its there. Any clues.
well it has to be metacafe or your browser then.

stuartn
01-31-2007, 09:47 PM
I may have spoken to soon...can you view this video...

http://www.rcheliaddict.co.uk/showthread.php?p=33620#post33620

Lights are on, but no-ones in....:-)

wolf32
01-31-2007, 11:22 PM
Is there a way to limit this add-on to be used in one forum only?

jackotec
02-01-2007, 11:39 AM
hi mrchad,

the video button hack is working excellent.but i want to add an audio button in my editor.it should be same like video button.a small audio button in editor,click on it and enter url and press ok and can play the audio for the user when they want.is there any addon already existing please give me the link

thanks
mrjameer

DevinM
02-01-2007, 06:27 PM
Great hack man, i changed the icon to a custom one. Works fantastic!

Mr Chad
02-01-2007, 09:22 PM
would you mind showing us the custom icon :D

stuartn
02-01-2007, 09:30 PM
this getting bizzar - metacafe is working now and ebaumsworld is still not..... but all others seem to work fine. Have some posts been deleted I thought I saw more posts from work earlier but I never got a chance to read them.

DevinM
02-01-2007, 11:48 PM
https://vborg.vbsupport.ru/external/2007/02/11.gif

Nothing complicated.

wolf32
02-02-2007, 01:05 AM
Darn!

I'm not quite sure what I did wrong but I followed your instructions, and when I go to "post new thread" none of the features work. When I want to type something I can't insert smilies, change the font, colors, nothing. Any idea what I did wrong? Thanks in advance.

Mr Chad
02-02-2007, 02:14 AM
javascript errer

wolf32
02-02-2007, 02:35 AM
javascript errer

hhmmm
Pretty new to the vB world,

That's in clientscript/vbulletin_texteditor.js? or the templates?

Eclipsed830
02-02-2007, 02:42 AM
Is their anyway to get this to work with Vidiac video services?

Mr Chad
02-02-2007, 04:01 AM
hhmmm
Pretty new to the vB world,

That's in clientscript/vbulletin_texteditor.js? or the templates?
in the .js file

Rover416
02-02-2007, 11:47 AM
Thanks, works great.

http://www.vectra-sri.co.uk/forum/testing-video-bb-code-t330.html

I used this icon for the video though

http://vectra-sri.co.uk/images/video.jpg

wolf32
02-03-2007, 04:08 AM
When you insert the new code above-
/**
* insert link
*/

There are 3 different places in the .js folder that has the "insert link" coding, do you place the new code above all three different places or just a particular section? Also, when I "copy &paste" the new code into the .js folder, the format of the coding changes, could this have negative effects? Thanks in advance.

CrashfAB
02-03-2007, 04:28 AM
Ok I am totoaly new to this---but how do I edit the vbulletin_texteditor.js ?

Thanks--like I say I new to alot of this.

CrashfAB
02-03-2007, 05:49 AM
Ok---took a bit of reading--some cuss words but it now works perfect

Thanks!!!!

Mr Chad
02-03-2007, 07:08 AM
Ok---took a bit of reading--some cuss words but it now works perfect

Thanks!!!!
:D glad to hear

Sweet Evil
02-03-2007, 09:34 AM
I found this worked on my site, anyone that couldn't use the button I got them to change their options to use WYSIWG Editor and they can post videos...

http://www.driver.ie/forum/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=3294&g2_serialNumber=1&g2_GALLERYSID=9ba8b9ec9b70a7604f4851a8a5c2afcf

The button doesn't work using the Enhanced editor, is there a fix? whats wrong? Tnx

KipLarson
02-03-2007, 03:28 PM
Screen shots?

Mr Chad
02-03-2007, 04:34 PM
Screen shots?
did you make all of the Javascript replacements?

CrashfAB
02-03-2007, 06:10 PM
:D glad to hear



The one thing I would add to the instructions chad and its one thing I had to figure out(now granted somebody more used to these things might have had an easier time) was the fact you had to add the code in 3 places above. But like I say I am totoaly new to anything with javascript ;)


/**
* Insert Link
*/

Kungfu
02-04-2007, 05:13 AM
Ok i modified this to a better way of doing this. Adding this code 3 or 4 times is not efficient enough for me and can get complicated. For those of you who want an easy way to do this follow this step.

in clientscript/vbulletin_textedit.js find

case 'PHP':
{
this.apply_format('removeformat');
}


Add right below that

case 'VIDEO':
{
var video = this.get_selection();

if((video=="") || (video==null)){
var video=prompt("MySpace, YouTube, Google video, eBaum's World or Metacafe URL","");
}
if (video.match("youtube.com"))
{
var col_array=video.split("?v=");
var part_num=1;
if(col_array[part_num] == null || col_array[part_num] == ""){
alert("Please Highlight the Full URL!");
return false;
}
return this.insert_text("" + col_array[part_num] + "");
}
else if (video.match("myspace.com"))
{
if (video.match("videoID="))
{
var col_array=video.split("videoID=");
}
else
{
var col_array=video.split("videoid=");
}
var part_num=1;
if(col_array[part_num] == null || col_array[part_num] == ""){
alert("Please Highlight the Full URL!");
return false;
}
return this.insert_text("" + col_array[part_num] + "");
}
else if (video.match("video.google."))
{
var col_array=video.split("docid=");
var part_num=1;
if(col_array[part_num] == null || col_array[part_num] == ""){
alert("Please Highlight the Full URL!");
return false;
}
return this.insert_text("" + col_array[part_num] + "");
}
else if (video.match("ebaumsworld.com")) {
var video = video.replace(".html","");
var col_array = video.split("ebaumsworld.com/");
if(col_array[part_num] == null || col_array[part_num] == ""){
alert("Please Highlight the Full URL!");
return false;
}
return this.insert_text("" + col_array[1] + "");
}
else if (video.match("metacafe.com"))
{
var video = video.replace(new RegExp(/\/$/),"");
var col_array = video.split(new RegExp(/\/watch\//g));
if(col_array[part_num] == null || col_array[part_num] == ""){
alert("Please Highlight the Full URL!");
return false;
}
return this.insert_text("" + col_array[1] + "");
}
else{
alert("Please Enter The Full URL!");
return false;
}


return false;
}



now in the templates editor_toolbar_on and postbit_quickedit and showthread_quickreply
find:

<if condition="$show['img_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
</if>


and add below


<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_VIDEO"><img src="http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>



Install the product file and thats it. Also if they highlight the URL it will add tags, if they highlight it but it doesnt have any type of video url it will tell them to select the entire url. if they dont highlight anything it will prompt them for something.

Mr Chad
02-04-2007, 05:46 AM
does it work on all editors kungfu?

Kungfu
02-04-2007, 07:02 AM
does it work on all editors kungfu?

Yea it should work on all editors. I had to make a custom function for a button like this. And this works.

I just updated the code too so it will detect if they highlighted the code right. Should be good to go now. So if they have google.com/blahblah it wont try to make a bbcode.

This is basically what you had in all 3-5 spots but its just one spot now. Should work on all browsers as well.

Just tested it again on different browsers and editors. Seems to work fine. I only tested a few video formats so if anyone tests it out and finds something wrong let me know or post im sure chad would be able to figure it out as well.

taydu
02-04-2007, 05:10 PM
I'm a little confuse with the instruction. I found four "insert link" and 1 "insert image." Do I insert the code above four "insert link" and the "insert image"

Mr Chad
02-04-2007, 05:29 PM
just do all 4

taydu
02-04-2007, 05:47 PM
thanks chad,

Now there is a "insert link button on the text editor but when I click on it it doesn't do anything.

Mr Chad
02-05-2007, 08:26 PM
your having a javascript error then.

taydu
02-06-2007, 02:11 AM
how do i fix it? Doesn't "Inser Image" "Hyper Link" using the same java script? Those still working fine. :(

redwinger
02-06-2007, 03:25 AM
Sweet mod! Got it working in the advanced template, however the quickreply it will not work in. When you click in the quickreply it does not allow you to enter the link. Here is the code

</if>
<if condition="$show['img_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
</if>
<td><div class="imagebutton" id="{$editorid}_cmd_createvideolink"><img src="http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>



It appears to be correct but I am sure I am missing something. Thanks in advance

redwinger
02-06-2007, 03:31 AM
Nevermind found it in the js file forgot to find all three "insert link":o

Mr Chad
02-06-2007, 05:32 AM
how do i fix it? Doesn't "Inser Image" "Hyper Link" using the same java script? Those still working fine. :(
make the JS edits again... (start over)

make sure u follow instructions.

fringehead
02-09-2007, 01:36 AM
Hi there, my video button is broken now... I guess the server that had the video button removed it..

http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif

This is the broken link to the original... Where is the button and how to I fix it to work on my local site?

Thanks,

Sean

Kungfu
02-09-2007, 01:42 AM
Hi there, my video button is broken now... I guess the server that had the video button removed it..

http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif

This is the broken link to the original... Where is the button and how to I fix it to work on my local site?

Thanks,

Sean

in the editor_toolbar_on and postbit_quickedit and showthread_quickreply templates
youll need to find that image and replace it with your own.

fringehead
02-09-2007, 02:15 AM
Got it working! Thanks for the help and the very cool mod Mr_Chad!!

Sean

MTVSlick
02-09-2007, 10:59 AM
I must be really new to this cuase I can not seem to find the location of that code I need to add to, can someone kick my a** in the right direction please?

Mark, Thank You!

Kungfu
02-09-2007, 03:30 PM
I must be really new to this cuase I can not seem to find the location of that code I need to add to, can someone kick my a** in the right direction please?


Mark, Thank You!

try my method instead

https://vborg.vbsupport.ru/showpost.php?p=1174139&postcount=215
Its only one place and easier to find.

MTVSlick
02-09-2007, 08:53 PM
"clientscript/vbulletin_textedit.js" this is what i cant seem to find, lol ofcoarse now that i am telling u this its probably right in front of me. lol

Mark,

Kungfu
02-10-2007, 02:13 AM
"clientscript/vbulletin_textedit.js" this is what i cant seem to find, lol ofcoarse now that i am telling u this its probably right in front of me. lol

Mark,
you have to ftp it. Its a file uploaded to the server in the forum folder.

Mr Chad
02-11-2007, 12:42 AM
try my method instead

https://vborg.vbsupport.ru/showpost.php?p=1174139&postcount=215
Its only one place and easier to find.
i looked at your method and doesn't it only work if you select the link?

where mine gives you an input box to enter it in there.

Nathan2006
02-11-2007, 04:50 AM
Hi Mr Chad,

I have now found it better with the install info on the 1st post :)

The only problem I'm having is that there is no Google video bbcode

Do you know anywhere I can get it cos its not added it :(

Thanks :)

Mr Chad
02-11-2007, 06:57 AM
the XML should install it for you. Just remember to edit all of the bbcodes and re-save them.

Mutt
02-11-2007, 08:18 PM
can someone please post the video button. the original link is broken. I search in the graphics section and couldn't find any custom BBCode buttons.

as for the BBCodes. is there an autostart option? I don't know much about youtube or google videos

MortysTW
02-11-2007, 08:39 PM
I installed the product, and the only things that work or were installed as bbcode were metacafe, google video, and myspace.

The "product" is missing some things I guess. Chad, please upload your latest product please.

MortysTW
02-11-2007, 08:54 PM
FYI, I just re-imported the product hoping it would help. And no luck. :(

Derty Eric B.
02-11-2007, 10:44 PM
FYI, I just re-imported the product hoping it would help. And no luck. :(

This the YouTube Code that Works for me

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Kungfu
02-11-2007, 11:47 PM
i looked at your method and doesn't it only work if you select the link?

where mine gives you an input box to enter it in there.

nope it does both. If you dont highlight anything it will bring up a popup box. If you highlight but its not right it will say to highlight full url. If you highlight the full url it will be fine and make into a bbcode.

rjmjr69
02-13-2007, 07:50 AM
OK I lost the image for this somehow. Wasnt there a button to click. I now have text that says input link?

Nathan2006
02-13-2007, 08:04 AM
the XML should install it for you. Just remember to edit all of the bbcodes and re-save them.

Nope its not added the Google bbcode but added all the rest.

I have already pressed edit and save on them all apart from the Google one cos its not there lol

OK I lost the image for this somehow. Wasnt there a button to click. I now have text that says input link?

You need to upload the image to your server. /images/editor/

rjmjr69
02-13-2007, 03:21 PM
ok but I cant seem to find an image theres just a xml file here? I could swear there was a youtube image with this no? I think I might be losing my mind...lol

Jason McConnell
02-13-2007, 04:55 PM
Kickass mod man, thanks!!

Nathan2006
02-13-2007, 06:16 PM
ok but I cant seem to find an image theres just a xml file here? I could swear there was a youtube image with this no? I think I might be losing my mind...lol

DevinM made this cool one here :)
https://vborg.vbsupport.ru/external/2007/02/11.gif

Nothing complicated.

ZEvilWyvernX
02-14-2007, 11:56 AM
Its not in the xml file look above
Look at the last code for the template edits the link to image is there
I dont know why a button would be hosted somewhere else thats not good
You can just upload the image to your images folder and change the link in the templates to your own

GoTTi
02-14-2007, 12:09 PM
how do i add buttons to my post area so people can click the button to insert the video of choice?

GoTTi
02-14-2007, 12:13 PM
NEVERMIND.

update your instructions to change the icon path so we know to do it.

GoTTi
02-14-2007, 12:25 PM
i inserted a video from youtube, and all im getting is CODE text. why is that?

ZEvilWyvernX
02-14-2007, 12:32 PM
did you go into bbcode and resave them
Also is bbcode enabled :-)

GoTTi
02-14-2007, 05:28 PM
hmm its working now. i dunno what i did but cool.

AMG021
02-15-2007, 03:27 PM
added everything except youtube bbcode please help