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


All times are GMT. The time now is 04:21 PM.

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.01326 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)bbcode_code_printable
  • (5)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