[MOD][BB Code]Real Media BBCode (rm影视外挂)

PHPBB2.0.X资源收集专用版,提问和建议请发到主版面
Locked
User avatar
土老耄
技术组成员
技术组成员
Posts: 1441
Joined: 2006-11-18 8:17

[MOD][BB Code]Real Media BBCode (rm影视外挂)

Post by 土老耄 » 2007-07-04 13:58

用[real]链接.rm[/real]来看realplayer的影视档案

非官方链接:点这里

有一点要注意的是addbbcode18,跟播放影片外挂要注意的一样。

Code: Select all

############################################### 
##  Hack Title:  real time Player BBCODE 
##  Hack Version:  0.1
##  Author:   Jikey
##  URL : English Support: www.jikey.net/english
##	  Chinese Support: www.jikey.net/chinese
##  Description:  Let's you play real Media files. 
##  Compatibility:  2.0.8
## 
##  Installation Level: Easy 
##  Installation Time: 3 minutes. 
##  Files To Edit: 4 
##   bbcode.php 
##   bbcode.tpl 
##	posting.php
## 	lang_main.php 
############################################### 
##  This hack is released under the GPL License. 
##  This hack can be freely used, but not distributed, without permission. 
##  Intellectual Property is retained by the hack author(s) listed above. 
############################################### 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
  $bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); 
# 
#----[ AFTER, ADD ]----------------------------------------- 
# 
  //www.jikey.net
  $bbcode_tpl['real'] = str_replace('{URL}', '\\1', $bbcode_tpl['real']); 
# 
#-----[ 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 
# 
  //[ real ]and[ /real ]for real player.
  $patterns[6] = "#\[real:$uid\](.*?)\[/real:$uid\]#si"; 
  $replacements[6] = $bbcode_tpl['real']; 
# 
#-----[ 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 ]----------------------------------------- 
# 
  //[ real]image_url_here[/real ]code.. 
  $text = preg_replace("#\[real\](([a-z]+?)://([^, \n\r]+))\[/real\]#si", "[real:$uid]\\1[/real:$uid]", $text); 
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/bbcode.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email --> 

# 
#----[ AFTER, ADD ]----------------------------------------- 
# 
<!-- BEGIN real --> 
<object id="{BBID}" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="241" id="Player" width="316" viewastext> 
<param name="_ExtentX" value="12726"> 
<param name="_ExtentY" value="8520"> 
<param name="AUTOSTART" value="0"> 
<param name="SHUFFLE" value="0"> 
<param name="PREFETCH" value="0"> 
<param name="NOLABELS" value="0"> 
<param name="CONTROLS" value="ImageWindow"> 
<param name="CONSOLE" value="_master"> 
<param name="LOOP" value="0"> 
<param name="NUMLOOP" value="0"> 
<param name="CENTER" value="0"> 
<param name="MAINTAINASPECT" value="{URL}"> 
<param name="BACKGROUNDCOLOR" value="#000000"></object><br /> 
<object id="{BBID}" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=32 id=Player width=316 VIEWASTEXT> 
<param name="_ExtentX" value="18256"> 
<param name="_ExtentY" value="794"> 
<param name="AUTOSTART" value="-1"> 
<param name="SHUFFLE" value="0"> 
<param name="PREFETCH" value="0"> 
<param name="NOLABELS" value="0"> 
<param name="CONTROLS" value="controlpanel"> 
<param name="CONSOLE" value="_master"> 
<param name="LOOP" value="0"> 
<param name="NUMLOOP" value="0"> 
<param name="CENTER" value="0"> 
<param name="MAINTAINASPECT" value="0"> 
<param name="BACKGROUNDCOLOR" value="#000000"> 
<param name="SRC" value="{URL}"></object> 
<!-- END real -->
#
#-----[ OPEN ]------------------------------------------ 
#
posting.php

#
#-----[ FIND ]------------------------------------------ 
#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

#
#-----[ AFTER, ADD ]------------------------------------------ 
#
'L_BBCODE_rm_HELP' => $lang['bbcode_rm_help'],

#
#-----[ OPEN ]------------------------------------------ 
#
lang_main.php 

#
#-----[ FIND ]------------------------------------------ 
#
$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";

#
#-----[ AFTER, ADD ]------------------------------------------ 
#
$lang['bbcode_rm_help'] = "real player: [real]http://link_of_real_player[/real]";

#
#-----[ OPEN ]------------------------------------------ 
#
templates/xxx/posting_body.tpl

#
#-----[ FIND ]------------------------------------------ 
#
f_help = "{L_BBCODE_F_HELP}";

#
#-----[ AFTER, ADD ]------------------------------------------ 
#
rm_help = "{L_BBCODE_rm_HELP}";

#
#-----[ FIND ]------------------------------------------ 
#
,'[url]','[/url]' 

#
#-----[ After, ADD ]------------------------------------------ 
#
,'[real]','[/real]' 

#
#-----[ 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="rm" name="addbbcode18" value="RealPlayer" style="width: 80px" onClick="bbstyle(18)" onMouseOver="helpline('rm')" /></span></td>

Locked