<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[flash（.FLV）及mp3在线播放的代码修改（Discuz! 4.10）]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Fri, 25 Aug 2006 03:04:54 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	一、 &nbsp;flash（.FLV）在线播放<br/> 首先确保客户端的FLASH播放器升级到9.0版<br/>（1） &nbsp;进入后台――帖子相关――Discuz! 代码<br/>（2） &nbsp;看是否存在flv标签，如果没有请添加。<br/>（3） &nbsp;点击flv标签后的〔详情〕，<br/> &nbsp; &nbsp; &nbsp; &nbsp;替换内容:<br/><br/> &nbsp; &nbsp; &nbsp; &lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; codebase=&quot;<a href="http://download.macromedia.com/pub/s...rsion=8" target="_blank">http://download.macromedia.com/pub/s...rsion=8</a>,0,24,0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width=&quot;350&quot; height=&quot;270&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param NAME=FlashVars VALUE=&quot;vidpath=&#123;1&#125;&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;movie&quot; value=&quot;verysdplayer.swf?file=&#123;1&#125;&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;embed src=&quot;verysdplayer.swf?file=&#123;1&#125;&quot; quality=&quot;high&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pluginspage=&quot;<a href="http://www.macromedia.com/go/getflashplayer&quot;" target="_blank">http://www.macromedia.com/go/getflashplayer&quot;</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type=&quot;application/x-shockwave-flash&quot; width=&quot;350&quot; height=&quot;270&quot;&gt;&lt;/embed&gt;<br/> &nbsp; &nbsp; &nbsp; &lt;/object&gt;<br/> &nbsp; &nbsp; 3.例子:[flv]http://--------[/flv]<br/> &nbsp; &nbsp; 4.解释:flv播放器<br/> &nbsp; &nbsp; 5.参数个数:1<br/> &nbsp; &nbsp; 6.嵌套次数:1<br/>（4） &nbsp;编辑完后，记得在标签列表，选择可用，并提交一下。<br/><br/>（5） &nbsp;修改include/bbcode.js<br/><br/> &nbsp; &nbsp; &nbsp; 找到function list() &#123; 在其上面添加如下代码：<br/><br/> &nbsp; &nbsp; &nbsp; function bb_flv() &#123; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp; if (helpmode) &#123; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp; alert(); &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &#125; <br/> &nbsp; &nbsp; &nbsp; &nbsp;else if (document.selection &amp;&amp; document.selection.type == &quot;Text&quot;) &#123; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;var range = document.selection.createRange(); &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;range.text = &quot;[flv]&quot; + range.text + &quot;[/flv]&quot;; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125; <br/> &nbsp; &nbsp; &nbsp; &nbsp;else if (advmode) &#123; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;AddTxt=&quot;&#92;r[flv]&#92;r[/flv]&quot;; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;AddText(AddTxt); &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp; &nbsp; else &#123; <br/> &nbsp; &nbsp; &nbsp; &nbsp;txt=prompt(quote_normal,text_input); <br/> &nbsp; &nbsp; &nbsp; &nbsp;if (txt!=null) &#123; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;AddTxt=&quot;&#92;r[flv]&quot;+txt; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;AddText(AddTxt); &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;AddText(&quot;[/flv]&quot;); &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125; <br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125; <br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125;<br/>（6）修改模版&#92;templates&#92;default&#92;post_bbinsert.htm<br/><br/> &nbsp; &nbsp; &nbsp;找到<br/> &nbsp; &nbsp; &nbsp;&lt;a href=&quot;javascript:code()&quot;&gt;&lt;img src=&quot;&#123;IMGDIR&#125;/bb_code.gif&quot; border=&quot;0&quot; &nbsp; &nbsp; &nbsp; alt=&quot;&#123;lang post_discuzcode_code&#125;&quot;&gt;&lt;/a&gt;<br/><br/> &nbsp; &nbsp; &nbsp;在其下面添加<br/> &nbsp; &nbsp; &nbsp;&lt;a href=&quot;javascript:bb_flv()&quot;&gt;&lt;img src=&quot;&#123;IMGDIR&#125;/bb_flv.gif&quot; border=&quot;0&quot; alt=&quot;发 &nbsp; &nbsp; &nbsp;布FLV视频&quot;&gt;&lt;/a&gt;<br/>（7）然后上传verysdplayer.swf到论坛根目录下。<br/> &nbsp; &nbsp; 上传bb_flv.gif到images/风格文件夹下<br/>（8）使用方法：<br/><br/> &nbsp; &nbsp; [flash]http://-----(网址)[/flash]<br/><br/> &nbsp; &nbsp; 即可在线播放flash。<br/><br/><br/>二、mp3在线播放<br/><br/>（1） &nbsp;进入后台――帖子相关――Discuz! 代码<br/>（2） &nbsp;看是否存在mp3标签，如果没有请添加。<br/>（3） &nbsp;点击mp3标签后的〔详情〕，<br/> &nbsp; &nbsp; &nbsp; &nbsp;替换内容:<br/><br/>&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;300&quot; height=&quot;20&quot; &nbsp; &nbsp;codebase=&quot;<a href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab&quot;&gt;" target="_blank">http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab&quot;&gt;</a><br/>&lt;param name=&quot;movie&quot; value=&quot;singlemp3player.swf?file=&#123;1&#125;&amp;autoStart=true&amp;backColor=000000&amp;frontColor=ffffff&amp;songVolume=90&quot; /&gt;<br/>&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;<br/>&lt;embed wmode=&quot;transparent&quot; width=&quot;300&quot; height=&quot;20&quot; src=&quot;singlemp3player.swf?file=&#123;1&#125;&amp;autoStart=true&amp;backColor=000000&amp;frontColor=ffffff&amp;songVolume=90&quot; &nbsp; &nbsp;type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;<a href="http://www.macromedia.com/go/getflashplayer&quot;" target="_blank">http://www.macromedia.com/go/getflashplayer&quot;</a> /&gt;<br/>&lt;/object&gt;<br/><br/><br/> &nbsp; &nbsp; 3.例子:[mp3]http://--------[/mp3]<br/> &nbsp; &nbsp; 4.解释:mp3播放器<br/> &nbsp; &nbsp; 5.参数个数:1<br/> &nbsp; &nbsp; 6.嵌套次数:1<br/>（4） &nbsp;编辑完后，记得在标签列表，选择可用，并提交一下。<br/><br/>（5） &nbsp;修改include/bbcode.js<br/><br/> &nbsp; &nbsp; &nbsp; 找到function list() &#123; 在其上面添加如下代码：<br/><br/> &nbsp; &nbsp; &nbsp; function bb_mp3() &#123; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp;if (helpmode) &#123; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp;alert(); &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp; else if (document.selection &amp;&amp; document.selection.type == &quot;Text&quot;) &#123; &nbsp; <br/> &nbsp; &nbsp; &nbsp; var range = document.selection.createRange(); &nbsp; <br/> &nbsp; &nbsp; &nbsp; range.text = &quot;[mp3]&quot; + range.text + &quot;[/mp3]&quot;; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &#125;<br/> &nbsp; &nbsp; &nbsp; else if (advmode) &#123; &nbsp; <br/> &nbsp; &nbsp; &nbsp; AddTxt=&quot;&#92;r[mp3]&#92;r[/mp3]&quot;; &nbsp; <br/> &nbsp; &nbsp; &nbsp; AddText(AddTxt); &nbsp; <br/> &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp;else &#123;<br/> &nbsp; &nbsp; &nbsp;txt=prompt(quote_normal,text_input);<br/> &nbsp; &nbsp; &nbsp;if (txt!=null) &#123; &nbsp; <br/> &nbsp; &nbsp; &nbsp;AddTxt=&quot;&#92;r[mp3]&quot;+txt; &nbsp; <br/> &nbsp; &nbsp; &nbsp;AddText(AddTxt); &nbsp; <br/> &nbsp; &nbsp; &nbsp;AddText(&quot;[/mp3]&quot;); &nbsp; <br/> &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp;&#125;<br/>（6）修改模版&#92;templates&#92;default&#92;post_bbinsert.htm<br/><br/> &nbsp; &nbsp; &nbsp;找到<br/> &nbsp; &nbsp; &nbsp;&lt;a href=&quot;javascript:code()&quot;&gt;&lt;img src=&quot;&#123;IMGDIR&#125;/bb_code.gif&quot; border=&quot;0&quot; &nbsp; &nbsp; &nbsp; alt=&quot;&#123;lang post_discuzcode_code&#125;&quot;&gt;&lt;/a&gt;<br/><br/> &nbsp; &nbsp; &nbsp;在其下面添加<br/> &nbsp; &nbsp; &nbsp;&lt;a href=&quot;javascript:bb_mp3()&quot;&gt;&lt;img src=&quot;&#123;IMGDIR&#125;/bb_mp3.gif&quot; border=&quot;0&quot; alt=&quot;插入MP3标签&quot;&gt;&lt;/a&gt;<br/>（7）然后上传singlemp3player.swf到论坛根目录下。<br/> &nbsp; &nbsp; 上传bb_mp3.gif到images/风格文件夹下<br/>（8）使用方法：<br/><br/> &nbsp; &nbsp; [mp3]http://-----(网址)[/mp3]<br/><br/> &nbsp; &nbsp; 即可在线播放mp3。<br/><br/>附件：<a href="http://jed.dzhope.com/attachment/123.rar">点击这里下载文件</a><br/><br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/%25E5%259C%25A8%25E7%25BA%25BF%25E6%2592%25AD%25E6%2594%25BE/" rel="tag">在线播放</a> , <a href="http://www.dzhope.com/tags/discuz4.1/" rel="tag">discuz4.1</a> , <a href="http://www.dzhope.com/tags/%25E5%259C%25A8%25E7%25BA%25BF%25E6%2592%25AD%25E6%2594%25BEfalsh%25E5%2592%258Cmp3/" rel="tag">在线播放falsh和mp3</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] flash（.FLV）及mp3在线播放的代码修改（Discuz! 4.10）]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>