vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - MySpace/YouTube/Google Video Addon (best yet) (https://vborg.vbsupport.ru/showthread.php?t=133235)

tschai 01-02-2007 10:24 AM

Quote:

Originally Posted by Mr Chad (Post 1147671)
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

Quote:

Originally Posted by kdemonte (Post 1148864)
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

Quote:

Originally Posted by ^SuiCyde^ (Post 1142483)
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

Quote:

Originally Posted by Immortal_Shades (Post 1151701)
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

Quote:

Originally Posted by Mr Chad (Post 1138208)
ok if that JS code doesnt work for you use this (this one is the basic one):

Code:

                /**
                * 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("[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.com"))
                                {
                                        var col_array=my_colors.split("docid=");
                                        var part_num=1;
                                        return this.insert_text("[googlevideo]" + col_array[part_num] + "[/googlevideo]");
                                }
                                else
                                {
                                          alert("Please Enter The Full URL!");
                                }
                        }
                };

add that code above these two spots:
Code:

/**
* Insert Link
*/

Code:

        /**
        * 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

Quote:

Originally Posted by Immortal_Shades (Post 1152394)
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/foru...ng-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

Quote:

Originally Posted by sd45 (Post 1159750)
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?doc...92694067848242 that url isn't working it says fill in the complete url?

Mr Chad 01-20-2007 06:06 PM

Quote:

Originally Posted by dutchbb (Post 1163584)
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?doc...92694067848242 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):

Code:

        /**
        * 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("[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
                {
                      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

Quote:

Originally Posted by dutchbb (Post 1163690)
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

Quote:

Originally Posted by magmf (Post 1132291)
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
HTML Code:

<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.
Code:

                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("[streetfire]" + final[part_num] + "[/streetfire]");
                }

That should be it!

dutchbb 01-22-2007 07:15 PM

Quote:

Originally Posted by Fr4gZ (Post 1164999)
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

Quote:

Originally Posted by Fr4gZ (Post 1165257)
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

Quote:

Originally Posted by Fr4gZ (Post 1165289)
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:
Code:

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

under it add:
Code:

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


BB Codes

Title: ebaumsvideo
Tag: ebaumsvideo
Replacement:
Code:

<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:
Code:

<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.


All times are GMT. The time now is 04:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01981 seconds
  • Memory Usage 1,861KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (1)bbcode_html_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete