整理一下.
进入DZ后台 贴子相关/Discuz! 代码
1. 标签:flv
2.替换内容:
- <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="255" id="fullscreen" align="middle">
- <param name="allowScriptAccess" value="sameDomain" />
- <param name="movie" value="images/movieplayer.swf" />
- <param name="quality" value="high" />
- <param name="salign" value="tl" />
- <param name="bgcolor" value="#ffffff" />
- <param NAME=FlashVars VALUE="vidpath={1}">
- <embed src="images/movieplayer.swf" FlashVars="vidpath={1}" quality="high" salign="tl" bgcolor="#ffffff" width="320" height="255" name="fullscreen" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
- </object>
复制代码
3.例子:[flv] http://myvlog.inglog.com/2006/0522/1632192_c030ac1b3c6ae69d18.flv[/flv]
4.解释:flv播放器
5.参数个数:1
6.嵌套次数:1
最后:将2楼里的movieplayer.swf上传到你的空间根目录下面的images目录下面,ok
下面是图标添加方法
修改include/bbcode.js
查找
- function setfocus() {
- document.input.message.focus();
- }
复制代码
上面添加
- function bb_flv() {
- if (helpmode){
- alert(flv_help);
- } else if (advmode) {
- AddTxt="[flv] [/flv]";
- AddText(AddTxt);
- } else {
- txt=prompt(flv_normal,"http://");
- if(txt!=null) {
- AddTxt="\r[flv]"+txt;
- AddText(AddTxt);
- AddText("[/flv]");
- }
- }
- }
复制代码
修改模版\templates\风格文件夹\post_bbinsert.htm
查找
- var flash_help = "{lang post_discuzcode_flash}\n\n{lang post_discuzcode_flash_comment}";
- var flash_normal = "{lang post_discuzcode_flash_normal}";
复制代码
下面添加
- var flv_help = "{lang post_discuzcode_flv}\n\n{lang post_discuzcode_flv_comment}";
- var flv_normal = "{lang post_discuzcode_flv_normal}";
复制代码
续继查找
- <a href="javascript:code()"><img src="{IMGDIR}/bb_code.gif" border="0" alt="{lang post_discuzcode_code}"></a>
复制代码
下面添加
- <a href="javascript:bb_flv()"><img src="{IMGDIR}/bb_flv.gif" border="0" alt="插入flv标签"></a>
复制代码
修改模版\templates\风格文件夹\templates.lang.php
查找
- 'post_discuzcode_flash_normal' => '请输入 flash 动画的 URL。',
复制代码
下面添加
- 'post_discuzcode_flv' => '插入 flv',
- 'post_discuzcode_flv_comment' => '在文本中插入 flv 动画。\n例如:[flv]{$boardurl}images/banner.flv[/flv]',
- 'post_discuzcode_flv_normal' => '请输入 flv 动画的 URL。',
复制代码
最后上传bb_flv.gif图片到 images/模版文件夹 里就可以 |