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)

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?


All times are GMT. The time now is 03:01 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.01348 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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