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)

rjmjr69 02-13-2007 03:21 PM

ok but I cant seem to find an image theres just a xml file here? I could swear there was a youtube image with this no? I think I might be losing my mind...lol

Jason McConnell 02-13-2007 04:55 PM

Kickass mod man, thanks!!

Nathan2006 02-13-2007 06:16 PM

Quote:

Originally Posted by rjmjr69 (Post 1181570)
ok but I cant seem to find an image theres just a xml file here? I could swear there was a youtube image with this no? I think I might be losing my mind...lol

DevinM made this cool one here :)
Quote:

Originally Posted by DevinM (Post 1172590)


ZEvilWyvernX 02-14-2007 11:56 AM

Its not in the xml file look above
Look at the last code for the template edits the link to image is there
I dont know why a button would be hosted somewhere else thats not good
You can just upload the image to your images folder and change the link in the templates to your own

GoTTi 02-14-2007 12:09 PM

how do i add buttons to my post area so people can click the button to insert the video of choice?

GoTTi 02-14-2007 12:13 PM

NEVERMIND.

update your instructions to change the icon path so we know to do it.

GoTTi 02-14-2007 12:25 PM

i inserted a video from youtube, and all im getting is [youtube]CODE[/youtube] text. why is that?

ZEvilWyvernX 02-14-2007 12:32 PM

did you go into bbcode and resave them
Also is bbcode enabled :-)

GoTTi 02-14-2007 05:28 PM

hmm its working now. i dunno what i did but cool.

AMG021 02-15-2007 03:27 PM

added everything except youtube bbcode please help

kjhkjh 02-15-2007 07:16 PM

Great mod.


In the instructions it would have been slightly clearer to say that there were 4 instances of the first text, and to insert the code before each of them.

Plus to stress how going into edit the BB code and then save it needs to be done.

But I know that those points were stressed throughout the posts here.

Really great job, I love this mod and have notinated it for MOTM.


If you fancy sorting out the problems that VBplaza is having then you would be my all time vb idol?! :)

kjhkjh 02-15-2007 08:09 PM

After playing around with it a little more, there are a couple more things (1 which has been mentiuoned in this thread).

1. The icon. Which at the moment is saying "insert link" this broken link to whatever site needs changing or you should include an icon and as part of the instructions tell people to upload this to a certain directory.

2. After I click (my new) video icon, I get prompted for the url. But if I click cancel at this point, I'm then told "Please enter the full url!" so I click ok and the box disappears.
This box should never appear after I click cancel. Is there a way that I can make that happen?

Thanks.

frandy 02-17-2007 04:48 PM

How would I get it so I could make an RSS Feed from it (with the youtube RSS) ??

cause its not being done by the javascript button its not removing/replacing the ID properly into the embed. its putting the full url and not making it work.

any ideas?

AMG021 02-17-2007 08:01 PM

hey guys i had problems with youtube working on my page here is an attachment i fixed it :D

cry4dawn 02-19-2007 08:43 AM

Kickass! Worked like a charm and I love it. Your icon link was broken so I made my own. Figured I would share it here in case someone else needs it:

http://forums.bobclark.com/images/ed...nsertvideo.gif

Thanks again for a cool mod.

Top Nurse 02-19-2007 08:49 PM

I had a bit of trepidation about this considering all the negative comments, but...

This hack kicks ass!
https://vborg.vbsupport.ru/external/2007/02/5.gif

For those who have problems I can say that you need to follow the directions exactly. Also if you are have never edited javascript then I suggest you skip this mod unless you have a bonafide java editor. I used FrontPage 2003 just because I have it. Also make sure to save a copy of the original file on your server in case you decide to uninstall it.

**Clicks MOTM**

Mad Kayaker 02-19-2007 09:47 PM

is there a way to set this up so that only registered users can view the video's... without putting them in a specific category?

Top Nurse 02-19-2007 10:30 PM

Forgot to mention that someone a ways back was nonplussed about the example outputs in the FAQ about BB Codes. I just went in and deleted the example code and saved the items in the BB Code Manager. Of course you then don't get the example code or an example of the player, but it seems an even trade-off in our particular case as we didn't want any videos showing up in that part of our forum.

Top Nurse 02-19-2007 10:32 PM

I could be wrong, but I don't think it is feasible as the edits are to the stock toolbar.

Quote:

Originally Posted by Mad Kayaker (Post 1186329)
is there a way to set this up so that only registered users can view the video's... without putting them in a specific category?


dotJoel 02-21-2007 01:39 AM

The instructions say to insert the code above 3 instances of Insert Link, however there are 4 instances of it in the .js file!

Regards,
Joel

dholt 02-21-2007 11:14 PM

Quote:

Originally Posted by dotJoel (Post 1187158)
The instructions say to insert the code above 3 instances of Insert Link, however there are 4 instances of it in the .js file!

Regards,
Joel

That is correct insert the code above all 4 instances of Insert Link and 1 Insert Image

5 times you will add that code, it will not hurt it.

really you only need to do it 3 times for Insert Link the first one in your search you will notice a E-mail link so got to the next insert link 2 then 3 then 4 (3 edits for insert link)

Example of the one you don't need to add it too if this helps as it works for me.

PHP Code:

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

        
/**
        * Insert Email Link
        */ 


also remember to edit all three templates

1. editor_toolbar_on
2. postbit_quickedit
3. showthread_quickreply

PHP Designer is also a free download, you can do a search for it and download it

dholt 02-22-2007 12:54 AM

ebaumsvideo is not working as it is pulling the video from the admin area and not the one I added. I was getting a transfering data from 404.ebaumsworld.com at first but then it started to work

All the other video's work great, but is there a fix for this one.

Top Nurse 02-22-2007 04:15 AM

If you look at the code you may decide that one of them you probably don't need. ;)

Quote:

Originally Posted by dotJoel (Post 1187158)
The instructions say to insert the code above 3 instances of Insert Link, however there are 4 instances of it in the .js file!

Regards,
Joel


blastup 02-22-2007 04:32 AM

it doen'st work i check everything still don't?

dholt 02-22-2007 09:41 AM

http://404.ebaumsworld.com/404error.html


This is what I get for ebaums


This is do to it not adding the emuse

http://emuse.ebaumsworld.com/video/watch/14030



You get a 404 Error when it trys to get the Video from http://ebaumsworld.com/video/watch/14030

when it should get the Video from
http://emuse.ebaumsworld.com/video/watch/14030

do I need to add this emuse some were or am I wrong about this.

dholt 02-22-2007 09:45 AM

Quote:

Originally Posted by Top Nurse (Post 1186295)
I had a bit of trepidation about this considering all the negative comments, but...

This hack kicks ass!
https://vborg.vbsupport.ru/external/2007/02/5.gif

For those who have problems I can say that you need to follow the directions exactly. Also if you are have never edited javascript then I suggest you skip this mod unless you have a bonafide java editor. I used FrontPage 2003 just because I have it. Also make sure to save a copy of the original file on your server in case you decide to uninstall it.

**Clicks MOTM**

You can use also PHP Designer it is free for download

hinch 02-22-2007 12:16 PM

appears not to work added all javascripts in installed product and edited templates (even made my own image since the button link you supply doesnt work.

all it outputs into the thread is [youtube]PkGUU_ggO3k[/youtube]

http://beta.euro-chimaera.co.uk/foru...thread.php?t=1

dholt 02-22-2007 12:24 PM

Quote:

Originally Posted by hinch (Post 1188247)
appears not to work added all javascripts in installed product and edited templates (even made my own image since the button link you supply doesnt work.

all it outputs into the thread is [youtube]PkGUU_ggO3k[/youtube]

http://beta.euro-chimaera.co.uk/foru...thread.php?t=1

image verification on your site is not showing up as I tried to sign up for your site to see.

Have you gone into your admin cp /custom bb code/bbcode maniger and edit and save all five again


as far as your site you may need to correct this so go into your Image Processing Library
Choose the image processing library that vBulletin will use for processing thumbnails and avatars. GD is more widely available but ImageMagick is more robust, supporting more image types. ImageMagick must have a valid path chosen below.

ImageMagick may be selected so try the GD as you may not have it installed on your server.

hinch 02-22-2007 01:12 PM

its using GD and it "was" working as a test user already signed up (this is a dev board for me to replace the phpbb currently in use)

i'll check again see if gd has gone screwy also add in a test user test/test for you.

edit: you are right GD has stopped working for some reason will look into that

edit no2: fixed it now you were right about reopening the bbcode and resaving them.

redwinger 02-22-2007 10:59 PM

I am not getting the image icon any more in the templates?

dholt 02-23-2007 02:19 AM

Name of your site or link too it

tehPARADOX 02-23-2007 04:00 AM

worked like a charm, thanks.

basketmen 02-24-2007 08:33 AM

Hmm never mind i didnt need it more now

i havent try metacafe and the others

Replicators 02-25-2007 02:35 AM

Once i saved the bb code's i got this at the top of screen...

Quote:

Warning: sprintf() [function.sprintf]: Too few arguments in /****/****/****/****/****/includes/class_bbcode.php on line 1066
Anyway to fix this?

Gbml2u 02-25-2007 06:11 AM

Can it post mp3, streaming video, rm, flash,... ?

Sidewindr 02-27-2007 02:10 AM

Quote:

Originally Posted by Replicators (Post 1190124)
Once i saved the bb code's i got this at the top of screen...



Anyway to fix this?

Yeah re-save ALL of them.

Anyone got a good video icon?

angkor408 02-28-2007 01:26 PM

I can't find this code in my editor_clientscript. How can I add if it not there? Thank!

/**
* Insert Image
*
* @param event Event object
* @param string (Optional) Image URL
*
* @return boolean
*/

Here what I have:
<!-- EDITOR SCRIPTS -->
<script type="text/javascript" src="clientscript/vbulletin_textedit.js"></script>
<script type="text/javascript">
<!--
var fontoptions = new Array($vBeditJs[font_options_array]);
var sizeoptions = new Array($vBeditJs[size_options_array]);
var smilieoptions = new Array(); smilieoptions = { $vBeditJs[smilie_options_array] };

var istyles = new Array(); istyles = { $vBeditJs[istyle_array] };

var smiliewindow_x = 240;
var smiliewindow_y = 280;

var ignorequotechars = $vboptions[ignorequotechars];

// vB Phrases
vbphrase["wysiwyg_please_wait"] = "$vbphrase[wysiwyg_please_wait]";
vbphrase["wysiwyg_initialized"] = "$vbphrase[wysiwyg_initialized]";
vbphrase["wysiwyg_command_invalid"] = "$vbphrase[wysiwyg_command_invalid]";
vbphrase["moz_must_select_text"] = "$vbphrase[moz_must_select_text]";
vbphrase["moz_edit_config_file"] = "$vbphrase[moz_edit_config_file]";
vbphrase["enter_tag_option"] = "$vbphrase[enter_tag_option]";
vbphrase["must_select_text_to_use"] = "$vbphrase[must_select_text_to_use]";
vbphrase["browser_is_safari_no_wysiwyg"] = "$vbphrase[browser_is_safari_no_wysiwyg]";
vbphrase["enter_option_x_tag"] = "$vbphrase[enter_option_x_tag]";
vbphrase["enter_text_to_be_formatted"] = "$vbphrase[enter_text_to_be_formatted]";
vbphrase["enter_link_text"] = "$vbphrase[enter_link_text]";
vbphrase["enter_list_type"] = "$vbphrase[enter_list_type]";
vbphrase["enter_list_item"] = "$vbphrase[enter_list_item]";
vbphrase["must_enter_subject"] = "$vbphrase[must_enter_subject]";
vbphrase["message_too_short"] = "$vbphrase[message_too_short]";
vbphrase["enter_link_url"] = "$vbphrase[enter_link_url]";
vbphrase["enter_image_url"] = "$vbphrase[enter_image_url]";
vbphrase["enter_email_link"] = "$vbphrase[enter_email_link]";
vbphrase["iespell_not_installed"] = "$vbphrase[iespell_not_installed]";
vbphrase["click_quick_reply_icon"] = "$vbphrase[click_quick_reply_icon]";
vbphrase["insert_all"] = "$vbphrase[insert_all]";

//-->
</script>
<!-- END EDITOR SCRIPTS -->

<!-- EDITOR STYLES -->
<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_editor.css" />
<style type="text/css">
<!--
.vBulletin_editor {
background: {$istyles[pi_button_normal][0]};
padding: $stylevar[cellpadding]px;
}
.imagebutton {
background: {$istyles[pi_button_normal][0]};
color: {$istyles[pi_button_normal][1]};
padding: {$istyles[pi_button_normal][2]};
border: {$istyles[pi_button_normal][3]};
}
.ocolor, .ofont, .osize, .osmilie, .osyscoloar, .smilietitle {
background: {$istyles[pi_menu_normal][0]};
color: {$istyles[pi_menu_normal][1]};
border: {$istyles[pi_menu_normal][3]};
}
.popup_pickbutton {
border: {$istyles[pi_menu_normal][3]};
}
.popup_feedback {
background: {$istyles[pi_menu_normal][0]};
color: {$istyles[pi_menu_normal][1]};
border-right: {$istyles[pi_menu_normal][3]};
}
.popupwindow {
background: {$istyles[pi_menu_normal][0]};
}
#fontOut, #sizeOut, .popup_feedback div {
background: {$istyles[pi_menu_normal][0]};
color: {$istyles[pi_menu_normal][1]};
}
.alt_pickbutton {
border-left: 1px solid {$istyles[pi_button_normal][0]};
}
.popup_feedback input, .popup_feedback div
{
border: 0px solid;
padding: 0px 2px 0px 2px;
cursor: default;
font: 11px tahoma;
overflow: hidden;
}
-->
</style>
<!-- END EDITOR STYLES -->

dholt 02-28-2007 01:41 PM

I think you are trying to edit the wrong file. It is not editor_clientscript it is vbulletin_textedit.js

it should be vbulletin_textedit.js found in yoursite.com/forums/clientscript/vbulletin_textedit.js

when you search for it just do a Insert Image search then add the code were it go's as explained up top


example don't use

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("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!");
                }
            }
        };
        /**
        * Insert Image
        *
        * @param        event        Event object
        * @param        string        (Optional) Image URL
        *
        * @return        boolean
        */

you can use word pad or you can download php designer to view the file or what ever else you would like to use.

dbirosel 02-28-2007 05:31 PM

Before i install, i want to know if this addon affects my forums bandwidth?? Will i have any problems? If it is, how bad is it?

Can you add photobucket?

Nzarect 03-01-2007 03:28 AM

simple install.. thanks Mr Chad


All times are GMT. The time now is 11:38 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.01502 seconds
  • Memory Usage 1,859KB
  • 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
  • (1)bbcode_php_printable
  • (9)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