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)

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

Quote:

Originally Posted by wassimeh (Post 1166522)
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

Quote:

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

Code:

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

Quote:

Originally Posted by Fr4gZ (Post 1166934)
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/resourc...video_icon.gif


All times are GMT. The time now is 04:31 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.01259 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)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