`
atomoptics
  • 浏览: 95653 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
阅读更多
中文说明 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
分享到:
评论

相关推荐

    基于net的超市管理系统源代码(完整前后端+sqlserver+说明文档+LW).zip

    功能说明: 环境说明: 开发软件:VS 2017 (版本2017以上即可,不能低于2017) 数据库:SqlServer2008r2(数据库版本无限制,都可以导入) 开发模式:mvc。。。

    LABVIEW程序实例-公式节点.zip

    labview程序代码参考学习使用,希望对你有所帮助。

    大米商城开源版damishop(适合外贸)

    大米外贸商城系统 简称damishop 完全开源版,只需做一种语言一键开启全球133中语言自动翻译功能,价格实现自动汇率转换,集成微信支付宝 paypal以及国外主流支付方式,自带文章博客系统。 软件架构 基于MVC+语言包模式,增加控制台,API导入产品方便对接其他系统(带json示例数据)。 使用要求 PHP7.4+ MYSQL5.6+ REDIS(可选) 安装方法 composer install 打开安装向导安装 http://您的域名/install 特色 1、缓存层增加时间与批量like删除 2、API产品导入方便对接其他系统 3、增加控制台命令行,命令行生成语言翻译包 4、后台一键开启自动翻译模式,支持全球133中语言,由于google代理翻译需要收费,这个功能需要付费。 5、可选购物车与ajax修改购物车产品 6、一键结算checkout 7、增加网站前台自定义路由 方便seo 更新日志 v3.9.7 集成鱼码支付接口,方便个人站长即使收款到账使用 v3.9.3 更新内容 1:增加ueditor与旧编辑器切换 2:增加可视化布局插

    LABVIEW程序实例-通过全局变量接收数据.zip

    labview程序代码参考学习使用,希望对你有所帮助。

    LABVIEW程序实例-日历控件.zip

    labview程序代码参考学习使用,希望对你有所帮助。

    毕设和企业适用springboot人工智能客服系统类及旅游规划平台源码+论文+视频.zip

    毕设和企业适用springboot人工智能客服系统类及旅游规划平台源码+论文+视频

Global site tag (gtag.js) - Google Analytics