vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - inlineVideo - Youtube / Myspace / Google / Ebaums (https://vborg.vbsupport.ru/showthread.php?t=147906)

Coders Shack 05-22-2007 10:00 PM

inlineVideo - Youtube / Myspace / Google / Ebaums
 
[hr]value[/hr]
. . . . . . . . Brought to you by
https://vborg.vbsupport.ru/
. . . http://www.Scriptasy.com
[hr]value[/hr]
I WOULD LIKE A MOD TO CLOSE THIS AND MOVE IT TO THE GRAVEYARD
it has been made obsolete by my other mod [here]


[/CENTER]
Installation Time: <2 mins
Products: 1
File Edit: 1
VB Version: 3.6.7
  • v2.02
    • removed the need for template edits.
Example:
[hr]value[/hr]
youtube-myspace-videos-posts/

Description:
[hr]value[/hr]
ok this mod is a little different than the other ones it adds a button to the tool bar and when you click it you just enter the URL of the video if its myspace then it creates the myspace video BB code if its youtube then it creates the youtube BB code. There is no need to enter the end of the video link you can just enter the whole URL in.

Installation:
[hr]value[/hr]
Open clientscript/vbulletin_textedit.js and Find:
Code:

    // =============================================================================
    // vB_Text_Editor methods

    /**
    * Editor initialization wrapper
    */

Add This above:
HTML Code:

    /**
    * Insert Video Link
    */
    this.createvideolink = function(e, url)
    {
        var my_colors=prompt("MySpace, YouTube, Google video, or eBaum's World 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 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("Please Enter The Full URL!");
            }
        }
    };

Ok, install the product xml. Then go to your BB Code Manager and click edit and resave all 5 of the BBCODES.

[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

Coders Shack 05-23-2007 06:17 AM

Reserved for updates.

also this is my cousins hack "Mr Chad" and he has given me permission to re-release it.

I have made changes and made it work a little smoother.

da420 05-23-2007 06:30 AM

The installer only made the Ebaums World and YouTube entries in my Custom BB Codes, not the others.
But, other than that, this is great. Really makes it easy for the users. Thanks...

Coders Shack 05-23-2007 06:39 AM

Quote:

Originally Posted by da420 (Post 1253134)
The installer only made the Ebaums World and YouTube entries in my Custom BB Codes, not the others.
But, other than that, this is great. Really makes it easy for the users. Thanks...

glad you like it and umm, well in your case and probably future cases ill post manual BB codes.

(not now tho because I'm gonna go to sleep)

redlabour 05-23-2007 06:59 AM

Is there a possibility to add myvideo.de ? In Fact the greatest non english Videocommunity.

And it was absolutely amazing if you add Real, WMV and Quicktime Support. ;)

Cant editor_toolbar_on and postbit_quickedit and showthread_quickreply Templateedits done with Hooks?

Nominated for MOTM - but not installed for the moment!

da420 05-23-2007 09:11 AM

One small thing... minor spelling mistake in your code.
'of' I'm sure you meant it to be 'or'.

Code:

var my_colors=prompt("MySpace, YouTube, Google video, eBaum's World of Metacafe URL","");

I uploaded the manual BB Codes in the attached text file. So, if the product xml doesn't add them to the database you can add them yourself.


Also;

I would like to add Break, LiveLeak, and DailyMotion to the list of video's this hack can embed. Do I have permission to share with others how I did it in this thread when I do?

Again, thanks for this.

COBRAws 05-23-2007 03:26 PM

Finally one-4-all

It would be great that it was SEO'ed (added the video title in the litte video window title)

Snake 05-23-2007 04:51 PM

Thanks for the release! :)

maxicep 05-23-2007 05:23 PM

thanks

Amavisca 05-23-2007 10:00 PM

It would be nice if somebody can add a function fullscreen, none of the mod has this function yet. Would it be you???

puertoblack2003 05-23-2007 11:22 PM

nice addition good job installed :up:

rjmjr69 05-24-2007 01:31 AM

awesome works great

Hornstar 05-24-2007 04:54 AM

excellent work, it is really good to see one that works like this.

some ideas for a future update. there is another youtube one on vb that is more seo friendly, adds the name of the video to the post etc, it would be nice if you could include that to this mod as well.

and of course, the more players you add the better. so far looking good tho.

thanks.

Coders Shack 05-24-2007 05:17 AM

trying to make this an edit-less mod but cant get the quick edit cache template to work.

Carl Anderson 05-24-2007 05:53 AM

Yahoo video would be nice also...........

Thx

redlabour 05-24-2007 07:03 AM

Quote:

Originally Posted by Carl Anderson (Post 1253699)
Yahoo video would be nice also...........

Quote:

Originally Posted by COBRAws (Post 1253286)
It would be great that it was SEO'ed (added the video title in the litte video window title)

Full ACK!

But please dont forget myvideo.de, wmv, mp3 and Quicktime. ;)

It has a chance to give a Alternative to the not longer supported AnyMedia Mod. :)

mktrilogy 05-24-2007 07:41 AM

dailymotion would be cool too.

eurofunny 05-24-2007 01:42 PM

Nice Hack.......

http://en.sevenload.com/ would be nice in this hack too

venomx 05-24-2007 01:51 PM

Anyway to add videos from break.com?

iogames 05-24-2007 02:29 PM

Well in favor of a 'ALL-IN-ONE' Video poster... I have ten reasons to request it... LOL

iogames 05-24-2007 02:42 PM

Reason #1: I know you can... ;)

linkasaur 05-25-2007 04:23 AM

Thanks for this nice mod. It is working great!

stwilson 05-25-2007 05:13 AM

Works like a charm. Anyone have a video camera button without any background behind it?

Coders Shack 05-25-2007 08:45 AM

Quote:

Originally Posted by stwilson (Post 1254277)
Works like a charm. Anyone have a video camera button without any background behind it?

you could always edit the image lol.

arco 05-25-2007 01:03 PM

Can't get videos from ebaum to play. Windows appears but nothing happens when pressing play. :confused:

TCattitude 05-25-2007 03:32 PM

Quote:

Originally Posted by arco (Post 1254450)
Can't get videos from ebaum to play. Windows appears but nothing happens when pressing play. :confused:

Same here. Ebaums flashplayer don't work.

www.dailymotion.com would be good too ;)

arco 05-25-2007 06:01 PM

Quote:

Originally Posted by TCattitude (Post 1254530)
Same here. Ebaums flashplayer don't work.

www.dailymotion.com would be good too ;)

Odd. Playing the sample in the AdminCP works.

69lakalle 05-25-2007 06:19 PM

i cant manage to c the picture ... i just get the INSERT VIDEO link i upload it to images/editor/
but ...nothing happens ...do i have to edit the code and add the link ?

da420 05-25-2007 07:05 PM

You have to upload the included image to the editor image directory for your style.

Coders Shack 05-25-2007 10:26 PM

Quote:

Originally Posted by 69lakalle (Post 1254596)
i cant manage to c the picture ... i just get the INSERT VIDEO link i upload it to images/editor/
but ...nothing happens ...do i have to edit the code and add the link ?

view the location of the image lol... your a designer you should know.

Coders Shack 05-25-2007 10:28 PM

  • v2.02
    • removed the need for template edits.
To upgrade search video in your templates and you should find the 3 edits you made, just remove them. Then go to your BB code manager and delete the ones the that product added. Then uninstall the product, and re-install it. You can keep the javascript file the same.

cassanova792 05-25-2007 11:19 PM

no matter what i do i cant get the video camera icon. I have the same problem as 69lakalle. I tried everything, i put it in the proper folder. i viewed the image location and the page doesnt show up yet i know its there. I deleted the createvideo.gif ending to see if the folder was correct and it was. PLZ HELP ME.

Coders Shack 05-25-2007 11:27 PM

Quote:

Originally Posted by cassanova792 (Post 1254738)
no matter what i do i cant get the video camera icon. I have the same problem as 69lakalle. I tried everything, i put it in the proper folder. i viewed the image location and the page doesnt show up yet i know its there. I deleted the createvideo.gif ending to see if the folder was correct and it was. PLZ HELP ME.

theres nothing advanced abt this.... You need to upload the image to your styles editor folder. Different styles will produce different image paths, if defined in the style.

arco 05-26-2007 02:16 AM

@Coders Shack

Do you mind posting the replacement code for ebaumsworld? I simply cannot make it to work using the code posted earlier. I think it's because of the encoded URLs.
Installing the product file misses the youtube and ebaumsworld, so they need to be entered manually as of now.

da420 05-26-2007 05:58 AM

For Ebaums you have to take the URL from within the embed code, and not the actual URL from the page. That's the only way I have been able to get it to work, kind of a roundabout way of doing it, but it's the only way I could see.

Ticinofelino 05-26-2007 06:56 AM

Thanks, i love it, installed! :up:

arco 05-26-2007 02:22 PM

Quote:

Originally Posted by da420 (Post 1254860)
For Ebaums you have to take the URL from within the embed code, and not the actual URL from the page. That's the only way I have been able to get it to work, kind of a roundabout way of doing it, but it's the only way I could see.

Nope, that didn't work either. :(

ezurick 05-27-2007 01:36 PM

Ok... I installed and followed the code {add} as suggested... I uploaded that .js and I now see the icon, but when I click it... nothing happens. Not sure what I am doing wrong... I also resaved all 5 of the BB codes too... Not sure what I missed...

SomeSailor 05-27-2007 01:56 PM

I'm in the same boat. Uploaded the .js, uploaded the icon, imported the XML.

I see the icon in a post, but when I click... nothing happens. When I hover over the icon, I do get the "Insert Video" flyover.

Any ideas? Nothing pops up at all...

Added:

If I add an optional image in the BBCode Manager, it'll work... but I have 5 extra icons on there now. :)

Any ideas on why the original one is still inactive?

arco 05-27-2007 01:57 PM

* Marked as uninstalled until ebaums get fixed *


All times are GMT. The time now is 09:34 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.01547 seconds
  • Memory Usage 1,833KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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