[2.0.19] Youtube Video BBCode

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
125
64%
Very Good
23
12%
Good
21
11%
Fair
5
3%
Poor
21
11%
 
Total votes: 195

skaloumbakas
Registered User
Posts: 179
Joined: Wed Sep 25, 2002 11:26 am
Location: Athens Hellas

Re: How about a DailyMotion Video BBCode MOD???

Post by skaloumbakas » Sun Apr 22, 2007 6:13 am

skaloumbakas wrote: ... How about a DailyMotion Video BBCode MOD???

I suspect the edits will be relative. The only thing I am not sure about, is what will be the equivalent code for:

Code: Select all

#
#-----[ OPEN includes/bbcode.php ]
#
#
#-----[ FIND ]
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]
#
$bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);
#
#-----[ FIND ]
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]
#
// [youtube]YouTube URL[/youtube] code..
$patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = $bbcode_tpl['youtube'];
If anybody is interested to give it a little thought, the embedded codes from the YouTube and the DailyMotion are the following (using a real example of a film uploaded in both web-sites)

Code: Select all

YOUTUBE
http://www.youtube.com/watch?v=xs1aUws0Lrs (URL link)

<object width="425" height="350"> (Code for embedding)
<param name="movie" value="http://www.youtube.com/v/xs1aUws0Lrs"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/xs1aUws0Lrs" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
</object>

DAILYMOTION
http://www.dailymotion.com/video/xvkes_film-about-audiophile-club-of-athen (URL link)

<object width="425" height="335"> (Code for embedding)
<param name="movie" value="http://www.dailymotion.com/swf/3GLmZkQaqcP0F6b8E"></param>
<param name="allowfullscreen" value="true"></param>
<embed src="http://www.dailymotion.com/swf/3GLmZkQaqcP0F6b8E" type="application/x-shockwave-flash" width="425" height="335" allowfullscreen=true></embed>
</object>
Sorry for insisting, but I find very interesting films in http://www.DailyMotion.com too!!!


Finally, I found my way out for the DailyMotion Video BBCode MOD. I have tested OK with the following (apart from the rest editions, which are straight forward and I do not include them below):

Code: Select all

#
#-----[ OPEN includes/bbcode.php ]
#

#
#-----[ FIND ]
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]
#

// [dailymotion]DailyMotion URL[/dailymotion] code..
$patterns[] = "#\[dailymotion\]http://(?:www\.)?dailymotion.com/swf/([0-9A-Za-z-_]*)[^[]*\[/dailymotion\]#is";
$replacements[] = $bbcode_tpl['dailymotion'];

#
#-----[ OPEN templates/subSilver/bbcode.tpl ]
#
    
#
#-----[ FIND ]
#

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->

#
#-----[ AFTER, ADD ]
#
<!-- BEGIN dailymotion -->
<object width=425 height=335>
<param name=movie value=http://www.dailymotion.com/swf/{DAILYMOTIONID}></param>
<param name=allowfullscreen value=true></param>
<embed src=http://www.dailymotion.com/swf/{DAILYMOTIONID} type="application/x-shockwave-flash" width=425 height=335 allowfullscreen=true></embed></object><br>
<a href=http://dailymotion.com/swf/{DAILYMOTIONID} target=_blank title="Link to the original DailyMotion film, if you do not see it embedded above...">{DAILYMOTIONLINK}</a><br>
<!-- END dailymotion -->
Christos Skaloumbakas

User avatar
libralion
Registered User
Posts: 362
Joined: Tue May 13, 2003 9:25 am

Re: Embedding YouTube Made Easy

Post by libralion » Sun Apr 22, 2007 6:36 am

libralion wrote:
Leeds By Example wrote:
kennyjcal wrote: I'll make things much easier for you guys

1) you don't need to install Multiple BBCode MOD
2) you don't need to install the Youtube Video BBCode MOD

This MOD replaces URLs to youTube videos with their embedded counterparts. It works on all versions of phpBB


That looks good.... But where do I paste all this code?

I'm on phpBB 2.0


Hi Leeds,

I changed the bbcode.php, but when I write down a youtube link in my forum I only see the link and no videoplayer. What am I doing wrong?

Johanna


I got it to work. Only needed to have the embed and object function in my ACP configuration under html and this code works like a charm! :D

Johanna

dulanblade
Registered User
Posts: 1
Joined: Fri Apr 06, 2007 12:01 am

Re: [2.0.19] Youtube Video BBCode

Post by dulanblade » Sun Apr 22, 2007 6:11 pm

I can´t download that MOD because put that the url doesn´t exist, what I can do to download it? thanks

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by Raimon » Sun Apr 22, 2007 6:16 pm

Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

neocro
Registered User
Posts: 82
Joined: Tue Apr 03, 2007 1:35 pm

Re: [2.0.19] Youtube Video BBCode

Post by neocro » Tue Apr 24, 2007 3:05 pm

i cant post damn message
maybe its to long

Edit:

since i cant post my message here i puted all text in 1 .php file so if any1 is interested to help me pls check link below

tnx

http://rapidshare.com/files/27772896/problem.php.html

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by Raimon » Wed Apr 25, 2007 11:00 am

when i see quickly you file ,
you din't have installed the Multiple BBcode MOD what you have need for this mod.
What also is writting in the mod install txt :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

neocro
Registered User
Posts: 82
Joined: Tue Apr 03, 2007 1:35 pm

Re: [2.0.19] Youtube Video BBCode

Post by neocro » Wed Apr 25, 2007 12:07 pm

Raimon wrote: when i see quickly you file ,
you din't have installed the Multiple BBcode MOD what you have need for this mod.
What also is writting in the mod install txt :)


http://www.epguild.balkan-division.com/forum/index.php
i know i need have that mode installed
check my forum and see if i instaled wrong mode
i allready have some kind of Multiple BBcode

neocro
Registered User
Posts: 82
Joined: Tue Apr 03, 2007 1:35 pm

Re: [2.0.19] Youtube Video BBCode

Post by neocro » Sat Apr 28, 2007 4:15 pm

well i quit from instaling mode
no support for it

User avatar
golddust
Registered User
Posts: 423
Joined: Tue Mar 09, 2004 4:41 am
Location: UK

Re: [2.0.19] Youtube Video BBCode

Post by golddust » Sun Apr 29, 2007 12:25 pm

Hi can somebody please please help me sort a small issue this out.

i have installed this on my forum and everything runs well except users and myself are getting and error expected as shown in the picture below when i click the youtube button.

Image

the codee on the forum for this page is as follows

Code: Select all

<script language="javascript" type="text/javascript" src="mods/bbcode_box/bbcode_box.js"></script>
<script language="javascript" type="text/javascript" src="templates/BBTech/stest.js"></script>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
   <td><img name="tlc" src="templates/BBTech/images/tlc.gif" width="10" height="15" border="0" alt=""></td> 
   <td width="100%" background="templates/BBTech/images/tm.gif"><img name="tm" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
   <td><img name="trc" src="templates/BBTech/images/trc.gif" width="10" height="15" border="0" alt=""></td>
  </tr>
  <tr>
    <td background="templates/BBTech/images/tlt.gif"><img name="tlt" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
        <td valign="top" bgcolor="#1E1E2A">
<!-- BEGIN privmsg_extensions -->

<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
  <tr> 
	<td valign="top" align="center" width="100%"> 
	  <table height="40" cellspacing="2" cellpadding="2" border="0">
		<tr valign="middle"> 
		  <td>{INBOX_IMG}</td>
		  <td><span class="cattitle">{INBOX_LINK}&nbsp;&nbsp;</span></td>
		  <td>{SENTBOX_IMG}</td>
		  <td><span class="cattitle">{SENTBOX_LINK}&nbsp;&nbsp;</span></td>
		  <td>{OUTBOX_IMG}</td>
		  <td><span class="cattitle">{OUTBOX_LINK}&nbsp;&nbsp;</span></td>
		  <td>{SAVEBOX_IMG}</td>
		  <td><span class="cattitle">{SAVEBOX_LINK}&nbsp;&nbsp;</span></td>
		</tr>
	  </table>
	</td>
  </tr>
</table>

<br clear="all" />
<!-- END privmsg_extensions -->

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

{POST_PREVIEW_BOX}
{ERROR_BOX}

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
		<td align="left"><span  class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>
		<!-- BEGIN switch_not_privmsg --> 
		-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
		<!-- END switch_not_privmsg -->
	</tr>
</table>

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
	<tr> 
		<th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th>
	</tr>
	<!-- BEGIN switch_username_select -->
	<tr> 
		<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
		<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>
	</tr>
	<!-- END switch_username_select -->
	<!-- BEGIN switch_privmsg -->
	<tr> 
		<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
		<td class="row2"><span class="genmed"><input type="text"  class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" />&nbsp;<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
	</tr>
	<!-- END switch_privmsg -->
	<tr> 
	  <td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
	  <td class="row2" width="78%"> <span class="gen"> 
		<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
		</span> </td>
	</tr>
	<tr> 
	  <td class="row1" valign="top"> 
		<table width="100%" border="0" cellspacing="0" cellpadding="1">
		  <tr> 
			<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
		  </tr>
		  <tr> 
			<td valign="middle" align="center"> <br />
			  <table width="100" border="0" cellspacing="0" cellpadding="5">
				<tr align="center"> 
				  <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>
				</tr>
				<!-- BEGIN smilies_row -->
				<tr align="center" valign="middle"> 
				  <!-- BEGIN smilies_col -->
				  <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
				  <!-- END smilies_col -->
				</tr>
				<!-- END smilies_row -->
				<!-- BEGIN switch_smilies_extra -->
				<tr align="center"> 
				  <td colspan="{S_SMILIES_COLSPAN}"><span  class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td>
				</tr>
				<!-- END switch_smilies_extra -->
			  </table>
			</td>
		  </tr>
		</table>
	  </td>
	  <!--
//====================================================================== |
//==== Start Advanced BBCode Box MOD =================================== |
//==== v5.0.0 ========================================================== |
//====
-->
	<td class="row2" valign="top"><span class="gen"><span class="genmed"></span> 
		<table id="posttable" width="500" border="1" bordercolor="#C0C0C0" style="border-collapse: collapse;" cellspacing="0" cellpadding="0" valign="top">
		  <tr align="right" valign="middle"> 
			<td valign="center">
				<table align="left" bgcolor="#C6C8DC" summary="dance music forum" width="500" cellpadding="3" cellspacing="0">
					<tr>
						<td background="mods/bbcode_box/images/bg.gif" valign="middle"><img src="mods/bbcode_box/images/dots.gif" style="padding-left: 4px;"></td>
						<td background="mods/bbcode_box/images/bg.gif">
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<tr>
									<td align="left" width="70%">
<select style="height: 20px;" name="ft" onChange="BBCft()" onMouseOver="helpline('ft')">
<option style="font-weight: bold;" selected="selected">Font type</option>
<option value="Arial">Default font</option>
<option style="color:black; background-color: #FFFFFF; font-family: Arial;" value="Arial" class="genmed">Arial</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Arial Black;" value="Arial Black" class="genmed">Arial Black</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Century Gothic;" value="Century Gothic" class="genmed">Century Gothic</option>
<option style="color:black; background-color: #FFFFFF; font-family: Comic Sans MS;" value="Comic Sans MS" class="genmed">Comic Sans MS</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Courier New;" value="Courier New" class="genmed">Courier New</option>
<option style="color:black; background-color: #FFFFFF; font-family: Georgia;" value="Georgia" class="genmed">Georgia</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Lucida Console;"value="Lucida Console">Lucida Console</option>
<option style="color:black; background-color: #FFFFFF; font-family: Microsoft Sans Serif;" value="Microsoft Sans Serif" class="genmed">Microsoft Sans Serif</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Symbol;" value="Symbol" class="genmed">Symbol</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Tahoma;" value="Tahoma" class="genmed">Tahoma</option>
<option style="color:black; background-color: #FFFFFF; font-family: Trebuchet;" value="Trebuchet" class="genmed">Trebuchet</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Times New Roman;" value="Times New Roman" class="genmed">Times New Roman</option> 
<option style="color:black; background-color: #FFFFFF; font-family: Verdana;" value="Verdana" class="genmed">Verdana</option> 
</select>
<select style="height: 20px;" name="fs" onChange="BBCfs()" onMouseOver="helpline('fs')">
<option style="font-weight: bold;" selected="selected">Font Size</option>
<option style="color:white; font-size: 8;" value="8" class="genmed">{L_FONT_TINY}</option>
<option style="color:white; font-size: 10;" value="10" class="genmed">{L_FONT_SMALL}</option>
<option style="color:white; font-size: 12;" value="12" class="genmed">{L_FONT_NORMAL}</option>
<option style="color:white; font-size: 18;" value="18" class="genmed">{L_FONT_LARGE}</option>
<option style="color:white; font-size: 24;" value="24" class="genmed">{L_FONT_HUGE}</option>
</select>
<select style="height: 20px;" name="fc" onChange="BBCfc()" onMouseOver="helpline('fc')">
<option style="font-weight: bold;" selected>Font Color</option>
<option style="color:white;" value="{T_FONTCOLOR1}">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select>
									</td>
									<td align="right" width="30%"></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr height="28">
						<td background="mods/bbcode_box/images/bg.gif" valign="middle"><img src="mods/bbcode_box/images/dots.gif" style="padding-left: 4px;"></td>
						<td background="mods/bbcode_box/images/bg.gif" valign="middle">
							<img border="0" src="mods/bbcode_box/images/justify.gif" class="postimage" name="justify" type="image" onClick="BBCjustify()" onMouseOver="helpline('justify') border-style: outset; border-width: 1" alt="justify"><img border="0" src="mods/bbcode_box/images/right.gif" name="right" type="image" onClick="BBCright()" onMouseOver="helpline('right')" class="postimage" alt="right"><img border="0" src="mods/bbcode_box/images/center.gif" name="center" type="image" onClick="BBCcenter()" onMouseOver="helpline('center')" class="postimage" alt="center"><img border="0" src="mods/bbcode_box/images/left.gif" name="left" type="image" onClick="BBCleft()" onMouseOver="helpline('left')" class="postimage" alt="left"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/sup.gif" class="postimage" name="supscript" type="image" onClick="BBCsup()" onMouseOver="helpline('sup')" alt="" /><img border="0" src="mods/bbcode_box/images/sub.gif" name="subs" class="postimage" type="image" onClick="BBCsub()" onMouseOver="helpline('sub')" alt="" /><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/bold.gif" name="bold" type="image" onClick="BBCbold()" onMouseOver="helpline('b')" class="postimage" alt="bold"><img border="0" src="mods/bbcode_box/images/italic.gif" name="italic" type="image" onClick="BBCitalic()" onMouseOver="helpline('i')" class="postimage" alt="italic"><img border="0" src="mods/bbcode_box/images/under.gif" name="under" type="image" onClick="BBCunder()" onMouseOver="helpline('u')" class="postimage" alt="under line"><img border="0" src="mods/bbcode_box/images/strike.gif" class="postimage" name="strik" type="image" onClick="BBCstrike()" onMouseOver="helpline('strike')" alt="" /><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/fade.gif" name="fade" type="image" onClick="BBCfade()" onMouseOver="helpline('fade')" class="postimage" alt="fade"><img border="0" src="mods/bbcode_box/images/grad.gif" name="grad" type="image" onClick="BBCgrad()" onMouseOver="helpline('grad')" class="postimage" alt="TruGroovez.com Gradient"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/rtl.gif" name="dirrtl" type="image" onClick="BBCdir('rtl')" onMouseOver="helpline('rtl')" class="postimage" alt="Right to Left"><img border="0" src="mods/bbcode_box/images/ltr.gif" name="dirltr" type="image" onClick="BBCdir('ltr')" onMouseOver="helpline('ltr')" class="postimage" alt="Left to Right"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/marqd.gif" name="marqd" type="image" onClick="BBCmarqd()" onMouseOver="helpline('marqd')" class="postimage" alt="Marque to down"><img border="0" src="mods/bbcode_box/images/marqu.gif" name="marqu" type="image" onClick="BBCmarqu()" onMouseOver="helpline('marqu')" class="postimage" alt="Marque to up"><img border="0" src="mods/bbcode_box/images/marql.gif" name="marql" type="image" onClick="BBCmarql()" onMouseOver="helpline('marql')" class="postimage" alt="Marque to left"><img border="0" src="mods/bbcode_box/images/marqr.gif" name="marqr" type="image" onClick="BBCmarqr()" onMouseOver="helpline('marqr')" class="postimage" alt="Marque to right">
						</td>
					</tr>
					<tr height="28">
						<td background="mods/bbcode_box/images/bg.gif" valign="middle"><img src="mods/bbcode_box/images/dots.gif" style="padding-left: 4px;"></td>
						<td background="mods/bbcode_box/images/bg.gif" valign="middle">
							<img border="0" src="mods/bbcode_box/images/code.gif" name="code" type="image" onClick="BBCcode()" onMouseOver="helpline('code')" class="postimage" alt="Code"><img border="0" src="mods/bbcode_box/images/quote.gif" name="quote" type="image" onClick="BBCquote()" onMouseOver="helpline('quote')" class="postimage" alt="Quote"><img border="0" src="mods/bbcode_box/images/spoil.gif" class="postimage" name="spoil" type="image" onClick="BBCspoil()" onMouseOver="helpline('spoil')" alt="" /><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/url.gif" name="url" type="image" onClick="BBCurl()" onMouseOver="helpline('url')" class="postimage" alt="URL"><img border="0" src="mods/bbcode_box/images/email.gif" name="email" type="image" onClick="BBCmail()" onMouseOver="helpline('mail')" class="postimage" alt="Email"><img border="0" src="mods/bbcode_box/images/web.gif" name="web" type="image" onClick="BBCweb()" onMouseOver="helpline('web')" class="postimage" alt="Web Page"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="20" border="0" alt=""><img border="0" src="mods/bbcode_box/images/img.gif" name="img" type="image" onClick="BBCimg()" onMouseOver="helpline('img')" class="postimage" alt="Image"><img border="0" src="mods/bbcode_box/images/flash.gif" name="flash" type="image" onClick="BBCflash()" onMouseOver="helpline('flash')" class="postimage" alt="Flash"><img border="0" src="mods/bbcode_box/images/video.gif" name="video" type="image" onClick="BBCvideo()" onMouseOver="helpline('video')" class="postimage" alt="Video"><img border="0" src="mods/bbcode_box/images/sound.gif" name="stream" type="image" onClick="BBCstream()" onMouseOver="helpline('stream')" class="postimage" alt="Stream"><img border="0" src="mods/bbcode_box/images/ram.gif" name="ram" type="image" onClick="BBCram()" onMouseOver="helpline('ram')" class="postimage" alt="Real Media"><img border="0" src="mods/bbcode_box/images/googlevid.gif" name="GVideo" type="image" onClick="BBCGVideo()" onMouseOver="helpline('googlevid')" class="postimage" alt="GoogleVid"><img border="0" src="mods/bbcode_box/images/youtube.gif" name="youtube" type="image" onClick="BBCyoutube()" onMouseOver="helpline('youtube')" class="postimage" alt="Youtube"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/list.gif" name="listdf" type="image" onClick="BBClist()" onMouseOver="helpline('list')" class="postimage" alt="List" /><img border="0" src="mods/bbcode_box/images/hr.gif" name="hr" type="image" onClick="BBChr()" onMouseOver="helpline('hr')" class="postimage" alt="H-Line"><img style="padding-left: 5px; padding-right: 5px;" src="mods/bbcode_box/images/blackdot.gif" width="1" height="100%" border="0" alt=""><img border="0" src="mods/bbcode_box/images/plain.gif" name="plain" type="image" onClick="BBCplain()" onMouseOver="helpline('plain')" class="postimage" alt="Remove BBcode"></td> 
					</tr>
				</table>
			</td>
		  </tr>
		  <tr> 
			<td colspan="9"><span class="gensmall"> 
			  <input type="text" name="helpbox" size="45" maxlength="100" style="width:100%; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /></span>
			 </td>
		  </tr>
		  <tr> 
			<td colspan="9">
				<span class="gen"><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:100%; border: 0px;" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea></span>
			</td>
		  </tr>
		</table>
		</span></td>
<!--
//====
//==== Author: Disturbed One [http://hvmdesign.com] =================== |
//==== End Advanced BBCode Box MOD ==================================== |
//===================================================================== |
-->
	</tr>
	<tr> 
	  <td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"><span class="gen"> </span> 
		<table cellspacing="0" cellpadding="1" border="0">
		  <!-- BEGIN switch_html_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_HTML}</span></td>
		  </tr>
		  <!-- END switch_html_checkbox -->
		  <!-- BEGIN switch_bbcode_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
		  </tr>
		  <!-- END switch_bbcode_checkbox -->
		  <!-- BEGIN switch_smilies_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
		  </tr>
		  <!-- END switch_smilies_checkbox -->
		  <!-- BEGIN switch_signature_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
			</td>
			<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
		  </tr>
		  <!-- END switch_signature_checkbox -->
		  <!-- BEGIN switch_notify_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
			</td>
			<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
		  </tr>
		  <!-- END switch_notify_checkbox -->
		  <!-- BEGIN switch_delete_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="delete" />
			</td>
			<td><span class="gen">{L_DELETE_POST}</span></td>
		  </tr>
		  <!-- END switch_delete_checkbox -->
		  <!-- BEGIN switch_type_toggle -->
		  <tr> 
			<td></td>
			<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
		  </tr>
		  <!-- END switch_type_toggle -->
		</table>
	  </td>
	</tr>
	{POLLBOX} 
	<tr> 
	  <td class="catBottom" colspan="2" align="center" height="28">{S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" />&nbsp;<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
	</tr></table><table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
	<tr><td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td></tr>
</table>
</form>
<table width="100%" cellspacing="2" border="0" align="center">
  <tr> 
	<td valign="top" align="right">{JUMPBOX}</td>
  </tr>
</table>
</td>
    <td background="templates/BBTech/images/trt.gif"><img name="trt" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt="dance music forum"></td>
  </tr>
  <tr>
   <td><img name="blc" src="templates/BBTech/images/blc.gif" width="10" height="12" border="0" alt="forums"></td>
    <td background="templates/BBTech/images/btm.gif"><img name="btm" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt="dance music forum"></td>
   <td><img name="brc" src="templates/BBTech/images/brc.gif" width="10" height="12" border="0" alt="dance music forum"></td>
  </tr></table>
{TOPIC_REVIEW_BOX}
what is wrong???

TotaS
Registered User
Posts: 57
Joined: Sat Feb 11, 2006 3:55 pm
Location: Kaunas, Lithuania
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by TotaS » Tue May 01, 2007 11:48 am

#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''

i cant find this array in includes/bbcode.php

I have the latest version and i never modified this file...

User avatar
freddie
Registered User
Posts: 404
Joined: Sun Mar 31, 2002 1:40 pm
Location: Estes Park, USA
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by freddie » Tue May 01, 2007 12:11 pm

golddust wrote: Hi can somebody please please help me sort a small issue this out.

i have installed this on my forum and everything runs well except users and myself are getting and error expected as shown in the picture below when i click the youtube button.

http://img87.imageshack.us/img87/6019/ytng4.jpg

what is wrong???


you are using the advanced bbcode box mod, that is different from the mod where this topic is about; when you hover the googlevideo and youtube button, you will see no help-line.

check the .js files in your mods\bbcode_box folder and and language file (i think)

DigitalScribe
Registered User
Posts: 1
Joined: Thu Jan 11, 2007 1:21 pm

Re: [2.0.19] Youtube Video BBCode

Post by DigitalScribe » Tue May 01, 2007 1:39 pm

TotaS wrote: #
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''

i cant find this array in includes/bbcode.php

I have the latest version and i never modified this file...


Same thing here. Any updates to the .mod for the .22 version of PHPBB ?

autodafe
Registered User
Posts: 7
Joined: Wed May 02, 2007 4:02 pm

Re: [2.0.19] Youtube Video BBCode

Post by autodafe » Sun May 06, 2007 12:05 am

I have installed this MOD for YouTube videos, it is working like charm...

About REVVER bbcode...
i have tried the following modifications....
PLS: I Am not a big "regular expressions" guru, try it at your own risk....

1) in bbcode.tpl

Code: Select all

<!-- BEGIN revver -->
<script src="http://flash.revver.com/player/1.0/player.js?mediaId:{REVVERID};affiliateId:{AFFILIATEID};height:392;width:480;" type="text/javascript"></script>
<!-- END revver -->
2) in bbcode.php

Code: Select all

// [revver]Revver URL[/revver] code..
$patterns[] = "#\[revver\]http://(?:one\.)?revver.com/watch/([0-9A-Za-z-_]*)/flv/affiliate/([0-9A-Za-z-_]*)[^[]*\[/revver\]#is";
$replacements[] = $bbcode_tpl['revver'];

3) in bbcode.php

Code: Select all

$bbcode_tpl['revver'] = str_replace('{REVVERID}', '\\1', $bbcode_tpl['revver']);
	$bbcode_tpl['revver'] = str_replace('{AFFILIATEID}', '\\2', $bbcode_tpl['revver']);



Looks like it is working...
I didn't add a "Revver" button, simply type [revver]your revver URL[/revver]

my8senuf
Registered User
Posts: 15
Joined: Sat May 20, 2006 7:46 pm

Re: [2.0.19] Youtube Video BBCode

Post by my8senuf » Sun May 06, 2007 2:43 am

how do i open this file after downloading it? i've never heard of a .mod file type before.

thanks in advance for your help

CarlosVI
Registered User
Posts: 1
Joined: Sat Apr 28, 2007 3:57 am

Re: [2.0.19] Youtube Video BBCode

Post by CarlosVI » Sun May 06, 2007 5:21 am

my8senuf wrote: how do i open this file after downloading it? i've never heard of a .mod file type before.

thanks in advance for your help


Open it in a text editor (notepad, wordpad, etc) and follow the instructions editing the files needed.

Post Reply

Return to “[2.0.x] MOD Database Releases”