中文说明 http://www.kylinx.net/node/113
I have published coolfilter modules 0.5 at http://drupal.org/project/coolfilter
Introduce
Installation& config
Usage
Demonstration
Download
Introduce
It offers two tags in drupal's filter system , [ coolplayer] and [ coolcode]. With [ coolplayer] tag people can easily add A/V media in their blog or podcasting or any drupal power website,which can be seem not only in IE but also in FireFox & Opera, while [ coolcode] can add syntax highlight to almost all the common use programming languages, and ship together with an on fly code download function.
[ coolplayer] supports those types of files: rm, rmvb, ra, rv, ram, smil, smi, rtsp, rpm, asf, wm, wma, wmv, wax, wvx, ogg, ape, avi, mid, midi, wav, mms, m3u, asx, mov, qt, mqv, m4v, m4a, m4b, mpeg, mpg, m1s, m1v, m1a, m75, m15, mp2, mpm, mpv, mpa, flc, fli, cel, aiff, aif, aifc, cdda, bwf, rts, 3gp, 3gpp, 3g2, 3gp2, au, snd, ulw, smf, kar, qcp, sdv, gsm, amr, caf, amc, mp4, sdp, pdf, fdf, xfdf, xdp, xfd, gif, jpg, jpeg, bmp, png, xpm, dir, dxr, dcr, cst, cct, cxt, w3d, fgd, swa, swf, spl, mp3, flv, rtmp, rbs, xml, rss, xspf, atom.
[ coolplayer] also supports video online such as: YouTube, Ifilm, VSocial, TuDou Video, atomFilms, BrightCove, YoQoo, 5 Show, 6Room, Mofile TV, GameTrailers.com, Evil Chili, Wildko, Yikers Videos & Games, Red Balcony Videos & Games, Live Video, Odeo Audio, Revver, MetaCafe, MySpace, GoEar, Break, Stupid Videos, Viddler, DailyMotion, I’m Vlog, RockYou, SevenLoad, MyVideo.de, Clipfish.de and Google Video.
This module doesn't work with any WYSIWYG editor right now.
Installation& config
If you like have a try about coolfilter, follow the steps below.

Update your drupal to 4.7.x or 5.x

Download coolfilter and upload the whole coolfilter/ directory to /path/to/drupal /modules/

Change coolplayer_config.php(5.x) coolplayer.js(4.7.x) and coolcode.php can be written by php,chmod 777 modules/coolfilter/coolplayer_config.php chmod 777 modules/coolfilter/coolcode.php

Enable coolfilter modues in ?q=admin/modules(4.7.x) or ?q=admin/build/modules(5.x).

Go to admin/settings/coolfilter and follow the instruction to finish the installtion(4.7.x only).

Change coolcode.php and coolplayer_config.php back to right permit mode

Go to ?q=admin/filters/add(4.7.x) or ?q=admin/settings/filters/add(5.x) to add a input format named "coolfilter", with coolfilter and other filter modules you wanted, now it can not work well together with "Line break converter", so donot chose "Line break converter" . If you also use "bbcode filter" ,make sure that the "Weight" of coolfilter is bigger than of bbcode. Unless you have carefully configured "HTML filter" , donot use it with "HTML filter".

Turn off "Smart paragraph and line breaks" of bbcode, if you use it.

If you have installed coolfilter before or the absolute path, where drupal installed, on the server filesystem has been changed, please go to Home > Administer > Site configuration > Coolfilter, and make configure for coolfilter. Follow the information at that page and reinstall Coolfilter. As it show in pics.

If you install coolfilter for multisite on drupal, there will be an error when you install the module, saying like Can not open /home/web/site/modules/coolfilter/coolplayer.js. Please go to Home > Administer > Site configuration > Coolfilter. Choose "Install coolfilter on drupal multisite" and reinstall your coolfiler(5.x only).

Now you can use it when you create content , donot forget change "Input format" to coolfilter.

If rpc server still doesnot work on your website,which means your web server doesnot support php mbstring & sockets extension and cannot connect the other web site directly, change
$coolplayer_rpcurl = '...';
in coolplayer_config.php to (will be slower)
$coolplayer_rpcurl ='http://kylinx.net/modules/coolfilter/rpc.php';
or
$coolplayer_rpcurl ='http://coolcode.cn/wp-content/plugins/coolplayer/rpc.php';
Usage
Syntax of coolfilter:
If you want to insert video or music into drupal node, input code as below:
If you want to see video in firefox under linux, install mplayer,vlc,realplay and their plug-in first.
Many files in one window, one file per line

[coolplayer width="640" height="480" charset="GBK" autoplay="off" loop="on" download="on"]
<a href="http://video.google.com/videoplay?docid=8807904280485126995">Display Google Video</a>
<a href="http://www.vsocial.com/video/?d=5255">Bugs bunny cartoon on family guy</a>
<a href="http://www.youtube.com/w/funny-as-hell?v=rPw-BwnW7Qs">Funny as hell</a>
<a href="http://www.bindows.net.cn/documentation/download/Bindows Manual.pdf">Bindows Chinese hand book</a>
/url/path/in/your/own/server/v.wmv
http://url/a.mp3
http://url/rm/video.rm
[/coolplayer]

One file in one window

[coolplayer]
http://url/v2.rm
[/coolplayer]

All the parameters above have default value at coolplayer_config.php, you can change it. And they are all optional.The attributes can use within the coolplayer tag:
width : the width of the player window.
height : the height of the player window.
charset : the charset of the url. default is GBK.
autoplay : enable or disable autoplay.
loop : enable or disable loop.
download : show or donot show the download link.
Syntax of coolcode:
All the options below are optional.

[coolcode lang="language" linenum="off" download="filename.extensionname"]
programming code here
[/coolcode]

linenum: display line number or not
lang=[cpp| css| diff| dtd| html| java| javascript| mysql| perl| php| python| ruby| sql|xml]
But you can define your own languages' highlight by adding it's extension name to coolcode.php

$acceptable_lang = array('php', 'cpp', 'css', 'diff', 'dtd',
'javascript', 'html', 'mysql', 'perl', 'python', 'ruby', 'sql', 'xml', 'java');

then make your own hl file according to http://pear.php.net/package/Text_Highlighter and put it to modules/coolfilter/PEAR/Text/Highlighter/ on your sever.
Demonstration
Try out a demonstration: http://www.kylinx.net/node/112
Screenshot.png

Download
Download and feature description: http://drupal.org/node/61357
Since all of Drupal CVS is licensed under the GPL, so if you checkout coolfilter from cvs.drupal.org, please put swf and PEAR files in
coolfilter extra package for 4.7.x or
coolfilter extra package for 5.x
to your installed directory by hand, or you can get pear of php from
http://pear.php.net/package/XML_Parser and http://pear.php.net/package/Text_Highlighter ,
then install them to /path/drupal/modules/coolfilter/pear/ (4.7.x) or /path/drupal/modules/coolfilter/PEAR/ (5.x) and flashmediaplayer at http://www.jeroenwijering.com/?item=Flash_MP3_Player and http://www.jeroenwijering.com/?item=Flash_Media_Player by yourself.
Of course, you can simply download stable tar package for 4.7.x at http://www.kylinx.net/files/coolfilter.tar.gz
,or package for 5.x at http://kylinx.net/cgi-bin/cvsweb.cgi/coolfilter/coolfilter.tar.gz?tarball=1

Coolfilter 0.5相关推荐

  1. 估算带卷积核二分类0,3的网络的收敛时间和迭代次数

    制作一个网络分类minst的0和3求出这网络的迭代次数曲线表达式n(δ),和准确率表达式p-max(δ),用预期准确率去估算n,并推算需要的时间. 将minst的28*28的图片缩小到9*9,网络用一 ...

  2. 神经网络收敛标准与准确率之间的数学关系

    制作一个带一个3*3卷积核的神经网络,测试集是minst的0和2图片集,将28*28的图片缩小成9*9,隐藏层30个节点所以网络的结构是 S(minst0)-(con3*3)49-30-2-(1,0) ...

  3. 用共振频率去进行图片分类的尝试

    假设有一种物质,这种物质的原子核的质子数和电子数可以不同,允许质子的带电量不同,并且质子带负电,同时这个原子的电子不满足鲍利不相容原理,环境温度是 (1/1.3806505)*10^23k,电子波的频 ...

  4. 收敛标准对迭代次数影响

    制作一个n*n的网络,将收敛标准分别设定在,0.001,0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,观察网络达到平衡时迭代次数的变化. 比如如图的 ...

  5. vue省市区三级联动mysql,js/json,html/jsp

    大家好,我是烤鸭: 省市区三级联动数据及页面: 测试的时候,发现少了几个地区,现在补上了,也优化了下排版. 如果你懒得复制和看的话,这里是打包的下载地址. 之前的资源地址也改了,http://down ...

  6. ZAM 3D 制作3D动画字幕 用于Xaml导出

    ZAM 3D 制作3D动画字幕 用于Xaml导出 原文:ZAM 3D 制作3D动画字幕 用于Xaml导出 原地址-> http://www.cnblogs.com/yk250/p/5662788 ...

  7. 将执行文件转化为bat批处理文件的工具(批处理文件方式提供)

    update 2006.4.25 15:20 支持64kb以上的执行文件/// @echo e 0100 4d 5a 90 0 3 0 0 0 4 0 0 0 ff ff 0 0 >>Da ...

  8. 完整的境外、港澳台、电信、移动、联通、教育网、国内其他ISP的IPv4列表(数据整理日期2022年4月)-IP列表太长只能份2篇发布(1/2)

    完整的境外.港澳台.电信.移动.联通.教育网.国内其他ISP的IPv4列表(数据整理日期2022年4月)-IP列表太长只能份2篇发布(1/2) 综述 境外(不含港澳台)IPv4地址 综述 企业所在地南 ...

  9. 聚宽JQData说明书

    由于内容较多,可使用Ctrl+F搜索您需要的数据. 注意:query函数的更多用法详见:sqlalchemy.orm.query.Query对象 JQData是什么 JQData是聚宽数据团队专门为金 ...

最新文章

  1. Ansible免密码登陆
  2. 激光雷达与相机:哪个最适合自动驾驶汽车?
  3. 如何手动的用jigloo设计器关联java界面文件 jigloo 设计器失去关联解决
  4. 配置一台路由器,两台电脑的重点
  5. VTK:IO之GLTFImporter
  6. 763. Partition Labels 划分字母区间
  7. patran如何看屈曲因子_校准证书中的修正值、修正因子,你真的会用吗?
  8. [树状数组][哈希]JZOJ 3240 Seat
  9. linux 时间戳 c语言,C语言实现字符转unix时间戳
  10. 松下抛却Jungle掌机研发项目
  11. pandas遍历dataframe_chapter2-4 常用数据处理包Pandas整理4
  12. Mysql DBA 高级运维学习之路-DQL语句之select知识讲解
  13. 【ANSYS命令流】通用后处理技术(一):读取结果文件
  14. 前馈-反馈控制系统设计(过程控制课程设计matlab/simulink)
  15. png怎么转ico图标?一招教你如何图片转格式
  16. 服务器网站被cc攻击,网站被CC攻击怎么办?宝塔防火墙防CC设置详解
  17. android 酷我音乐接口,酷我音乐 各种付费歌曲,音质包括ape、flac无损音乐api接口...
  18. 思科模拟器服务器登录显示什么,思科模拟器服务器远程登录
  19. [设计模式]创建模式-建造者(C++描述)
  20. “有意思”的英语单词(5)

热门文章

  1. 管理:领导对下属要充分信任 孙权的用人哲学(转)
  2. css强制换行、强制不换行,溢出隐藏
  3. “量子计算+通信”!玻色量子与中国移动研究院强强联合
  4. 骚话连篇-土味情话彩虹屁在线生成工具
  5. 黑苹果安装后不能调节分辨率
  6. Linux虚拟内存和缺页中断
  7. idea选择某一列的所有数据快捷键
  8. 项目实战---模拟凡客网
  9. 基于C#实现的文件管理系统
  10. 数据中心的六大节能方法