Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/06/2005, 21:57
Avatar de Larc
Larc
 
Fecha de Ingreso: octubre-2003
Ubicación: Mexico
Mensajes: 259
Antigüedad: 21 años
Puntos: 0
este es el de Video :

Código:
#Author: NTT Team (www.nguontrithuc.com)
#Email Author: [email protected]
#Version: phpBB2.0.5 or phpBB2.0.6
#Mod: Video BBcode
#Des: adds a video bbcode tag to your forum for the windows media player plugin, following file formats are supported with the wmp plugin. (wma, wmv, DAT...)
#Installation Level: very easy 
#Installation Time: 2 minute
#Files To Edit: bbcode.tpl, bbcode.php, posting.php, lang_main.php, posting_body.tpl


# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
   $bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); 
# 
#----[ AFTER, ADD ]----------------------------------------- 
# 
   //www.nguontrithuc.com
   $bbcode_tpl['video'] = str_replace('{URL}', '\\1', $bbcode_tpl['video']); 
# 
#-----[ FIND ]------------------------------------------ 
# 
   // [email protected] code.. 
   $patterns[5] = "#\[email\]([a-z0-9\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si"; 
   $replacements[5] = $bbcode_tpl['email']; 
# 
#----[ AFTER, ADD ]----------------------------------------- 
# Note: you may need to change array number if used with other BBcode mods 
# 
   //[ video ]and[ /video ]for videoing audio. 
   $patterns[6] = "#\[video:$uid\](.*?)\[/video:$uid\]#si"; 
   $replacements[6] = $bbcode_tpl['video']; 
# 
#-----[ FIND ]------------------------------------------ 
# 
   // [img]image_url_here[/img] code.. 
   $text = preg_replace("#\[img\](http(s)?://)([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]+)\[/img\]#si", "[img:$uid]\\1\\3[/img:$uid]", $text); 
# 
#----[ AFTER, ADD ]----------------------------------------- 
# 
   //[ video]image_url_here[/video ]code.. 
   $text = preg_replace("#\[video\](([a-z]+?)://([^, \n\r]+))\[/video\]#si", "[video:$uid]\\1[/video:$uid]", $text); 
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/bbcode.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email --> 

# 
#----[ AFTER, ADD ]----------------------------------------- 
# 
<!-- BEGIN video --><object id="wmp" width=300 height=300 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" 
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> 
<param name="FileName" value="{URL}"> 
<param name="ShowControls" value="1"> 
<param name="ShowDisplay" value="0"> 
<param name="ShowStatusBar" value="1"> 
<param name="AutoSize" value="1"> 
<param name="autoplay" value="0"> 
<embed type="application/x-mplayer2" 
pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" 
src="{URL}" name=MediaPlayer2 showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 autoplay=0 visible=1 animationatstart=0 transparentatstart=1 loop=0 height=300 width=300> 
</embed> 
</object><!-- END video --> 


#open: posting.php

#find:
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#After add:
'L_BBCODE_Z_HELP' => $lang['bbcode_z_help'],

#open: lang_main.php 

#find:
$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#After add:
$lang['bbcode_z_help'] = "Video online: [video]http://link_of_video[/video]";

#open: templates/xxx/posting_body.tpl

#find:
f_help = "{L_BBCODE_F_HELP}";
#After add:
z_help = "{L_BBCODE_Z_HELP}";

#find:
bbtags = new Array('','','','','','','
Cita:
','
','
Código:
','
','
  • ','
','
  • ','
','[img]','[/img]','',''); #Replace with( note if you hack other bbcode ): bbtags = new Array('','','','','','','
Cita:
','
','
Código:
','
','
  • ','
','
  • ','
','[img]','[/img]','','','[video]','[/video]'); #find: <td><span class="genmed"><input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /></span></td> #After add ( note: +2 if you hack other bbcode ): <td><span class="genmed"><input type="button" class="button" accesskey="z" name="addbbcode18" value="Video" style="width: 50px" onClick="bbstyle(18)" onMouseOver="helpline('z')" /></span></td>
y no me funciona por que cuando le doy clic para colocar las etiquetas dentro del foro me muestra las del flash . Yo supongo que tengo que modificar este Mod de video a una sintaxis similar a la de flash pero pus no me ha salido alguien tiene alguna idea ?
__________________
Quien parte de las sombras y se levanta como un muerto brillando como una estrella sobre èl (towlen), entre la oscuridad congelante y la luz.
LÄRÇ :serio: