Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MySpace/YouTube/Google Video Addon (best yet) Details »»
MySpace/YouTube/Google Video Addon (best yet)
Version: 1.00, by Mr Chad Mr Chad is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.4 Rating:
Released: 12-04-2006 Last Update: Never Installs: 239
 
No support by the author.

...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-06-2006, 02:37 PM
Arjan Arjan is offline
 
Join Date: Jul 2005
Location: Netherlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by popmyzit View Post
Googlevideo doesn't work on this for me. Youtube is fine...
Probably because you do not use video.google.com

Change
Code:
if (my_colors.match("video.google.com"))
to
Code:
if (my_colors.match("video.google"))
So that URL from other countries are also supported.
Reply With Quote
  #33  
Old 12-06-2006, 03:29 PM
Arjan Arjan is offline
 
Join Date: Jul 2005
Location: Netherlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working

Fixes:
- Google aVideo from other domains then google.com (i.e. google.uk google.nl) are supported
- MetaCafe is working.

Here is the new Javascript code:
Code:
		* Insert Video Link
		*/ 
		this.createvideolink = function(e, url) 
		{ 
			var my_colors=prompt("Please enter MySpace, Metacafe, 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")) 
				{ 
					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("metacafe.com")) 
				{ 
					var col_array=my_colors.split("/watch/"); 
					var part_num=1; 
					var cafeStr=col_array[part_num];
                    		if (cafeStr.lastIndexOf('/') == cafeStr.length-1)
					{
						return this.insert_text("[metacafe]" + cafeStr.substring(0,cafeStr.length-1) + "[/metacafe]"); 	
					}
					else
					{
						return this.insert_text("[metacafe]" + cafeStr + "[/metacafe]"); 	
					}
				} 
				else 
				{ 
					alert("No valid Google, YouTube, MetaCafe or Myspace URL"); 
				} 
			} 
		};
Here is the changed BB code:

Title: metacafe
Tag: metacafe
Replacement:
Code:
<embed src="http://www.metacafe.com/fplayer/{param}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
Reply With Quote
  #34  
Old 12-06-2006, 09:00 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, updated it.
Reply With Quote
  #35  
Old 12-06-2006, 10:10 PM
rolandogomez's Avatar
rolandogomez rolandogomez is offline
 
Join Date: Jan 2006
Location: San Antonio
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A few things, in your instructions, please add that there are about four or five places (lost count) to add the code after

/**
* Insert Link
*/

In addition, each time you add a BB code it asks you for an example, that would be beneficial for us noncoder types.

On the image that shows up in the reply boxes, it's this link: http://wwwstagemc.nhmccd.edu/resourc...video_icon.gif is that smart to do? I look at that as bandwith theft. You might tell people to download that image and where to change the code with your own server URL of the image.

Now, with that said, did everything, but it doesn't work for me, does nothing other than display the image. Something doesn't make the javascript work I'm guessing, perhaps VBSEO? Let me know, seems like a nice hack, thanks rg.
Reply With Quote
  #36  
Old 12-06-2006, 11:00 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm it seems it doesn't work when you change it into normal text edit from WYSIWYG. So it only works in WYSIWYG, i'm sure theres a second place to put the JS edit for it to work in both, i just don't know it yet.
Reply With Quote
  #37  
Old 12-07-2006, 08:02 PM
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Location: Chile
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr Chad View Post
hmm it seems it doesn't work when you change it into normal text edit from WYSIWYG. So it only works in WYSIWYG, i'm sure theres a second place to put the JS edit for it to work in both, i just don't know it yet.
In the same javascript file, but before this (actually, works in many places around that part of the JS):

Quote:
/**
* Insert Image
*
* @param event Event object
* @param string (Optional) Image URL
*
* @return boolean
*/
That's all. In that way works in the normal editor.
Reply With Quote
  #38  
Old 12-07-2006, 09:20 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i put it there will it work in both normal and WYSIWYG mode? or does it need to be in both places?
Reply With Quote
  #39  
Old 12-08-2006, 03:17 AM
paypal paypal is offline
 
Join Date: Oct 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

getting error on page display when i post new thread, non of the editing buttons work along with the media buttons?

did i miss something here.
Reply With Quote
  #40  
Old 12-08-2006, 04:37 AM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So if this mod good to go now? Works for normal edit mode not wys*. Quick edit and full etc and so on and quick post and full post?
Reply With Quote
  #41  
Old 12-08-2006, 06:29 AM
BigJimTheLug BigJimTheLug is offline
 
Join Date: Nov 2006
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, I tried it just like you said and it does not embed the videos.

the button doesn't work either.....lol..

something is wrong.......
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 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.05300 seconds
  • Memory Usage 2,311KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete