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

Quote:

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

Quote:

Originally Posted by stuartn (Post 1165716)
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:

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

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/f...2/#post1686836

Great work Mr Chad

Mr Chad 01-23-2007 08:29 PM

Quote:

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

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

mshadows 01-25-2007 09:38 PM

Quote:

Originally Posted by TCHQ-0wn4g3 (Post 1167303)
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

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

Quote:

Originally Posted by TCHQ-0wn4g3 (Post 1167317)
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 :)

Code:

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

Code:

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

Code:

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

Code:

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

Quote:

Originally Posted by dutchbb (Post 1167358)
@Nathan2006 look at post #138 & #139.


So there are no file edits?

Mr Chad 01-25-2007 11:48 PM

Quote:

Originally Posted by Nathan2006 (Post 1167367)
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

Quote:

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

[youtube]JZCHpacxl4c[/youtube]
[googlevideo]-1154844957034870481[/googlevideo]

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

Quote:

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

Quote:

Originally Posted by Nathan2006 (Post 1167388)
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:

[youtube]JZCHpacxl4c[/youtube]
[googlevideo]-1154844957034870481[/googlevideo]

BB-code is enabled for all usergroups.

Same issue with my site.

http://testvb.bigring.ca/showthread....posted=1#post3

Mr Chad 01-26-2007 06:55 PM

and the product is installed?

shorelocal 01-26-2007 06:59 PM

Quote:

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


All times are GMT. The time now is 12:47 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.01516 seconds
  • Memory Usage 1,836KB
  • 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
  • (6)bbcode_code_printable
  • (14)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