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)

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.01338 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)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