vidyo mod hatası!!

phpBB 2.0.x sürümleri için MODlar hakkında ihtiyacınız olan desteği buradan sorarak alabilirsiniz.
Kilitli
Kullanıcı avatarı
flashomer
Kayıtlı Kullanıcı
Mesajlar: 14
Kayıt: 26.11.2006, 23:27
Konum: öğrenci
İletişim:

vidyo mod hatası!!

Mesaj gönderen flashomer »

Foruma bbc kodda vidyo mod kurdum.

Parse error: parse error, unexpected $end in C:\Inetpub\vhosts\konursokak.net\httpdocs\forum\includes\bbcode.php(61) : eval()'d code on line 104

bu şekilde hata verdi nasıl düzeltebilirim_? :?:
http://www.konursokak.net
..::FlashömeR::..
Kullanıcı avatarı
flashomer
Kayıtlı Kullanıcı
Mesajlar: 14
Kayıt: 26.11.2006, 23:27
Konum: öğrenci
İletişim:

Mesaj gönderen flashomer »

Bulduğum mod örneği.

Kod: Tümünü seç

#Author: NTT Team (www.nguontrithuc.com)
#Email Author: bambi29_5@yahoo.com
#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]user@domain.tld[/email] 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('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','');
#Replace with( note if you hack other bbcode ):
bbtags = new Array('','','','','','','[quote]','[/quote]','','
  • ','
','
  • ','
','[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>[/code][/code]
http://www.konursokak.net
..::FlashömeR::..
Kilitli

“2.0.x MOD Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 3 misafir