Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Embed XHTML valid YouTube and Google Video into your posts Details »»
Embed XHTML valid YouTube and Google Video into your posts
Version: 2.2.0, by Viper007Bond Viper007Bond is offline
Developer Last Online: Dec 2017 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.6.8 Rating:
Released: 11-04-2006 Last Update: 10-23-2007 Installs: 1040
Uses Plugins
Re-useable Code Additional Files  
No support by the author.

==============================
DON'T FORGET TO CLICK INSTALL!
==============================


Just thought I'd share what I did to allow my users to embed YouTube and Google Video videos into posts on my forum. This is my very first mod I've made since switching to vB, so forgive me if I screwed something up.


Demo:

http://forums.finalgear.com/test-for...-thread-14892/

The black bar will be different for you as it'll match your theme (it uses the same style as the whole quick reply box).


Upgrading from v1.x:

Just remove the plugin you added before (manage plugins -> delete) and then continue on to the installation instructions.

If you already have v2.x installed, you do NOT need to do this.


Installation:

Download and install the attached product. It will automatically create the new custom BBCode and add in some filtering plugins.

Save the two attached images and upload them to /images/editor/.


Usage:

Here's some examples:

Code:
[youtube]http://www.youtube.com/watch?v=hl2UUunlI2Q[/youtube]
[youtube]hl2UUunlI2Q[/youtube]
[youtube="http://www.youtube.com/watch?v=hl2UUunlI2Q"]Aston Martin Crash[/youtube]
[youtube="hl2UUunlI2Q"]Aston Martin Crash[/youtube]
Code:
[gvideo]http://video.google.com/videoplay?docid=3688185030664621355[/gvideo]
[gvideo]3688185030664621355[/gvideo]
[gvideo="http://video.google.com/videoplay?docid=3688185030664621355"]1980's Izuzu Gemini Advertisement[/gvideo]
[gvideo="3688185030664621355"]1980's Izuzu Gemini Advertisement[/gvideo]
Using vBAdvanced? It lacks the hook this plugin uses apparently, so if you wish to use this plugin with it, you need to use only the video ID and NOT the full URL for it to display correctly. Nothing I can do about it, it's vBAdvanced's fault.


How do I customize the look of the new box thingies?

Just edit the new custom BBCode items. It's in the admin area, near the bottom.

Show Your Support

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

Comments
  #92  
Old 11-19-2006, 06:03 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

now i have a great Problem. How can i change [youtube] and [gvideo] to [yt] and [gv] ???

And one Bug - after i have installed your Product i cant see any longer at AdminCP my own vBCodes. After deinstalling your Product this leaves the same.

Who can i fix this ?

s. Screenshot.

I have looked for a problem with phpMyAdmin everything looks fine and the BB Codes are still working.

Restore of vb3_bb Code Table brings no success.
Reply With Quote
  #93  
Old 11-19-2006, 06:22 AM
hcmagix hcmagix is offline
 
Join Date: Mar 2006
Location: Berlin / Germany
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need a myvideo.de integration. I will wait.
Reply With Quote
  #94  
Old 11-19-2006, 07:28 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
now i have a great Problem. How can i change [youtube] and [gvideo] to [yt] and [gv] ???
You'll need to edit the two plugins this product adds and replace all instances of youtube/gvideo with yt and gv.

Quote:
Originally Posted by redlabour View Post
And one Bug - after i have installed your Product i cant see any longer at AdminCP my own vBCodes. After deinstalling your Product this leaves the same.
That is very odd... :ermm:

When the plugin is uninstalled, it removes the BBCode it adds and everything, so it shouldn't screw anything up. I really don't know what to suggest.

What happens if you view the source of that frame window?
Reply With Quote
  #95  
Old 11-19-2006, 07:29 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hcmagix View Post
I need a myvideo.de integration. I will wait.
Sorry, won't be happening. Not enough demand and I'm not really looking to make this into an "everything under the sun" plugin.
Reply With Quote
  #96  
Old 11-19-2006, 07:58 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Viper007Bond View Post
What happens if you view the source of that frame window?


Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html dir="ltr" lang="de">
<head>
<script type="text/javascript">
<!--
// get out of any containing frameset
if (self.parent.frames.length != 0)
{
self.parent.location.replace(document.location.hre f);
}
// -->
</script>
<title>politikstube.de & theologieforum.de - die christliche Community (Politikforum & Theologieforum) Administrator-Kontrollzentrum</title>
</head>

<frameset cols="195,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">

<frame src="index.php?do=nav" name="nav" scrolling="yes" frameborder="0" marginwidth="0" marginheight="0" border="no" />
<frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<frame src="index.php?do=head" name="head" scrolling="no" noresize="noresize" frameborder="0" marginwidth="10" marginheight="0" border="no" />
<frame src="index.php?do=home" name="main" scrolling="yes" frameborder="0" marginwidth="10" marginheight="10" border="no" />
</frameset>
</frameset>

<noframes>
<body>
<p>Ihr Browser unterst?tzt keine Frames. Bitte installieren Sie einen, der das kann!</p>
</body>
</noframes>
</html>
It tells me in Firefox 2.0 and IE 7.0 that my Browser does not support Frames.
Reply With Quote
  #97  
Old 11-19-2006, 08:06 AM
Rabbitoh Warren's Avatar
Rabbitoh Warren Rabbitoh Warren is offline
 
Join Date: Sep 2003
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*100th Install*
Reply With Quote
  #98  
Old 11-19-2006, 08:08 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
It tells me in Firefox 2.0 and IE 7.0 that my Browser does not support Frames.
And if i look for the Frame source :
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="de">
<head>
	<title>vB Codes verwalten - politikstube.de & theologieforum.de - die christliche Community  (Politikforum & Theologieforum) - vBulletin Administrator-Kontrollzentrum</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<link rel="stylesheet" type="text/css" href="../cpstyles/vBulletin_2_Default/controlpanel.css" />
	<script type="text/javascript">
	<!--
	var SESSIONHASH = "";
	function set_cp_title()
	{
		if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'string')
		{
			parent.document.title = (document.title != '' ? document.title : 'vBulletin');
		}
	}
	//-->
	</script>
	<script type="text/javascript" src="../clientscript/vbulletin_global.js"></script>
</head>

<body style="margin:0px" onload="set_cp_title();">
<div class="pagetitle">vB Codes verwalten</div>
<div style="margin:10px">
<!-- END CONTROL PANEL HEADER -->


<!-- form started:8 queries executed -->
<form action="bbcode.php?do=add" method="post" name="cpform" id="cpform">
<input type="hidden" name="do" value="add" />
<input type="hidden" name="adminhash" value="134ab670d5c6ac34d59c503e028764a2" />
<br />
<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder" id="cpform_table">
<tr>
	<td class="tcat" align="center" colspan="6">
		<div style="float:right"><a class="helplink" href="#" onclick="js_open_help('bbcode', 'modify', ''); return false;">Hilfe <img src="../cpstyles/vBulletin_2_Default/cp_help.gif" alt="" border="0" title="Ich brauche Hilfe bei diesen Optionen" style="vertical-align:middle" /></a></div>

		<b>vB Codes verwalten</b>
	</td>
</tr>
<tr valign="top" align="center">
	<td class="thead" align="left">Titel</td>
	<td class="thead" align="left">vB Code</td>
	<td class="thead" align="left">HTML</td>
	<td class="thead" align="left">Einzuf?gender Code</td>

	<td class="thead" align="left">Schaltfl?chen-Grafik</td>
	<td class="thead" align="left">Einstellungen</td>
</tr>
Reply With Quote
  #99  
Old 11-19-2006, 08:28 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
And if i look for the Frame source :
Looks like the while() that outputs each BBCode entry is failing. I don't know why, sorry.

Look for some PHP errors in your logs is all I can suggest.

Quote:
Originally Posted by Rabbitoh Warren View Post
*100th Install*
Woot!
Reply With Quote
  #100  
Old 11-19-2006, 10:34 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Viper007Bond View Post
Looks like the while() that outputs each BBCode entry is failing. I don't know why, sorry.

Look for some PHP errors in your logs is all I can suggest.



Woot!
Sorry - not your Fault. It was vBAnonymizer.
Reply With Quote
  #101  
Old 11-19-2006, 10:59 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hcmagix View Post
I need a myvideo.de integration. I will wait.
Wait for AnyMedia 3.6.x ....

Quote:
Originally Posted by Viper007Bond View Post
You'll need to edit the two plugins this product adds and replace all instances of youtube/gvideo with yt and gv.
Please integrate this into AdminCP as it is here :

SEO YouTube and Google Videos

For know i have asked here :

Change used BB-Code in Posts if BB-Code was changed
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 03:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05325 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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_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