Archive for the 'wiki' Category

Aug
13

信用卡账单没有按时抵达,拨打银行的800免费客服电话查询一下;出门旅游前,打一个800免费服务电话预订机票
和宾馆……越来越频繁的消费经历中,800免费电话已成了不可或缺的资讯助手。面对这块市场蛋糕,杭州移动昨日透露,针对企业用户的800移动业务已正式
投入商用。

    这意味着,不再受限于固定电话,对企业或产品的投诉、建议和咨询,可随时随地用手机拨打企业的800客服电话。

    作为杭州移动800业务的首个试点单位,杭州联华华商集团有限公司将率先开通移动800免费客服电话,届时,消费者可以借助这个免费通道,用手机解决消费中碰到的难题。

    800电话又称集中付费电话业务,主要是企业为联系客户和宣传企业形象而开办的服
务号码。通常,800电话由企业统一付费,客户拨打电话时则一律免费。“目前,这类业务的应用范围越来越广,主要在银行、商店、保险公司、证券公司、酒
店、民航、宾馆、供销、采购、快餐店等服务性行业和企业中推广,特别适用于电话订货、购货、业务咨询介绍、订房、订票、订餐、送餐、租车等。”杭州移动市
场移动市场部的相关人士介绍。

    800业务首先发展于传统的固定电话网络,由于使用统一800开头的号码,并且供用户免费使用,该业务不仅使首批企业赢得了形象分,还促进了企业与用户端的有效沟通。来自顾客的反馈,无论是投诉还是建议,800电话能一揽子解决。

    移动业务的迅速发展,迫使800业务寻求更为便捷的使用途径。“现在,中国移动用户已经超过了2亿,日常生活中,人们使用手机的频率远远超过固定电话,但到目前为止,移动用户还无法直接拨打中国电信和中国网通网络的800免费电话。”

    让移动用户也能享受客户服务电话免费的需求,成了众多企业新的客服理念。杭州移动表示,正在推广的移动800业务,解决了建设企业与用户之间移动资讯网的新课题,近期内,移动用户用手机拨打企业800免费客服电话将成为现实

Aug
13

from:http://www.allwiki.com/wiki/MediaWiki%E6%89%A9%E5%B1%95%EF%BC%9AFCKeditor

功能介绍

这是一个实验性的方法,它提供了一个实现所见即所得编辑器的概念.

* 它可能导致出现安全问题,技术问题,也有可能出现数据败坏(data corruption).
* 如果一个wiki系统使用了一段时间并且仍然在使用中,作者并不推荐安装该插件.

推荐新站安装,因为安装此插件之後,以前的页面使用的老格式大多数都失效了!我有数千个页面要返工!

其实作者在下面那句已经说明了.

* 请在新的wiki系统下测试安装(新的数据库名,新的wiki名,新的子目录).

这个实验品提供一下的功能:

* 一个所见即所得编辑器的概念.
* 所见即所得的所有功能,包括字体设置和背景颜色.
* wiki语法:内部标签 ([[PageTitle]]),图片链接([[Image:ImageTitle]]),和一些如

一样的扩展 ,也提供扩展;
* 表格内容的部分编辑( table of contents, section editing).

* 如果页面中有__USE_EDITOR__这个记号,便激活该编辑器.

当你编辑页面的时候,这个记号是可见的.您可以通过标准的wiki编辑页面添加,也可以在所见即所得编辑器下移除.

用法

您可以在LocalSetting.php中配置该编辑器作为默认编辑器.可以默认其使用__USE_EDITOR__记号去激活该编辑器.(见下面的内容.)

所见即所得

* 使用FCKeditor,可以使得文字,表格,图像格式所见即所得.
* A heading is created by selecting/highlighting an expression and then clicking on “Format” -> “Heading[1-5]”. A TOC and edit section links are displayed according to the normal rules.

这行说明了您在使用该编辑器之後,wiki的标题格式将不能再在里面使用,而要用FCKeditor提供的格式.–Mather 11:51 2007年8月1日 (CST)

WIKI 语法

下列的wiki语法可以继续使用:

* 内部wiki链接:[[PageTitle]]
* 外部链接:[http://www.mediawiki.org]
* 分类链接:[[category:分类名称]]
* 图片链接:[[Image:ImageTitle.png]]
* 扩展:

,
* Mediawiki的魔法字:__TOC__
* 模板链接.

激活编辑器

1. 打开一个新的页面进行编辑;
2. 加入标记” __USE_EDITOR__ “
3. 保存页面
4. 再次点击”编辑”,您将会看到FCKeditor编辑器.

* 您可以在编辑模式去掉标签.
* 不要添加标记到包含标准wiki语法的页面里面. 编辑器会移行与行之间的间隔,会破坏您的页面结构.(但是不要惊慌,历史里面的函数是一直可用的.)

更新记录

* update: mediawiki version 1.6.2, fckeditor version 2.2 Mafs 20:15, 10 April 2006 (UTC)
* patch free, true extension version published Mafs 09:48, 14 May 2006 (UTC)
o small fix in FCKeditor.php Mafs 16:17, 15 May 2006 (UTC)
o documentation rewritten Mafs 19:51, 3 July 2006 (UTC)
o support for extensions (like

) improved. Mafs 20:25, 7 July 2006 (UTC)
o tested on mediawiki 1.7.1 Mafs 16:22, 11 July 2006 (UTC)
o FCKeditor image dialog Image:FCKImage4.png adapted for inserting and formatting images based on mediawiki images names. Using some ajax code the image dialog shows a suggest list when typing an image search term, see screen shots. Mafs 16:13, 16 July 2006 (UTC)
o some code improvements … Mafs 20:25, 17 July 2006 (UTC)
o new version of FCKeditor.php: case insensitive search, “return true” added to hook functions Mafs 17:15, 28 July 2006 (UTC)
o removed $wgAjaxExportList = array( ‘wfSajaxSearch’ ); from the LocalSettings.php section. Mafs 21:41, 1 August 2006 (UTC)
o function wfFCKeditorBypassParserPaste rearranged to fix __TOC__ problem. Mafs 20:46, 3 August 2006 (UTC)
o The pages containing the code have been reverted (see history) Mafs 16:36, 30 August 2006 (UTC)

不足与Bug

* 内容将以HTML形式保存在数据库中.

以後升级,即便是mediawiki的语法更改,也不会改变数据库里面的形式.但是会加大数据库的存储量.–Mather 11:51 2007年8月1日 (CST)

* 在某些时候,去掉不想要的隐藏的文本道具(text properites)会变得很困难.
* 使用Netscape7.1的浏览器,当编辑器被编辑页面调用的时候,您可能不能使用浏览器自带的”返回”功能.粘贴的功能也好像会被禁用.
* “显示预览”将不可用.
* 当内容里面只包含wiki语法的时候,模板才可以工作.
* 特殊页面不可以被包含.(Special pages cannot be included.)

[编辑]
安装编辑器

测试环境

* Mediawiki 版本: 1.7.1 ,1.10
* FCKeditor 版本: 2.3
* Browser:
o Firefox 1.5.0.4
o IE
o Firefox 2.0
o Opera 9.22

快速浏览

1. 安装 FCKeditor
2. 将 FCKeditor.php 放置到extension目录下.
3. 改动 LocalSettings.php
4. 改动 fckconfig.js (详见 FCKConfig.mwScriptPath)
5. 移动 fck_image.js
6. 移动 fck_image.html

快速预览

1. 安装 FCKeditor
2. 将 FCKeditor.php 放在 extensions 目录下
3. 更改 LocalSettings.php
4. 更改 fckconfig.js (set FCKConfig.mwScriptPath)
5. 替换 fck_image.js
6. 替换 fck_image.html

安装FCKeditor

1. 从http://www.fckeditor.net获得 FCKeditor
2. 将其解压到你mediawiki安装目录下的/FCKeditor 目录中
3. 用FCKeditor/fck_image_html里面的内容替换/FCKeditor/editor/dialog/fck_image.html中的内容,请按照页面上的”怎样去复制”来操作 .
4. 用FCKeditor/fck_image_js里面的内容替换/FCKeditor/editor/dialog/fck_image/fck_image.js
5. 在/FCKeditor/fckconfig.js添加下面的内容:

// ******************************************************************************************

// section modified image dialog

FCKConfig.LinkDlgHideTarget = true ;
FCKConfig.LinkDlgHideAdvanced = true ;
FCKConfig.ImageDlgHideLink = true ;
FCKConfig.ImageDlgHideAdvanced = true ;
FCKConfig.FlashDlgHideAdvanced = true ;

FCKConfig.LinkBrowser = false ;
FCKConfig.ImageBrowser = false ;
FCKConfig.FlashBrowser = false ;
FCKConfig.LinkUpload = false ;
FCKConfig.ImageUpload = false ;
FCKConfig.FlashUpload = false ;

FCKConfig.mwScriptPath = “”; // When using the modified image dialog
// you must set this variable. It must correspond to
// $wgScriptPath in LocalSettings.php.

// end section modified image dialog

FCKConfig.ToolbarSets[”Wiki”] = [
[’Source’,'-’,'Save’,'NewPage’,'-’],
[’Cut’,'Copy’,'Paste’,'PasteText’,'PasteWord’,'-’,'Print’],
[’Undo’,'Redo’,'-’,'Find’,'Replace’,'-’,'SelectAll’,'RemoveFormat’],
[’Bold’,'Italic’,'Underline’,'StrikeThrough’,'-’,'Subscript’,'Superscript’],
[’OrderedList’,'UnorderedList’,'-’,'Outdent’,'Indent’],
[’JustifyLeft’,'JustifyCenter’,'JustifyRight’,'JustifyFull’],
[’Link’,'Unlink’,'Anchor’],
[’Image’,'Table’,'Rule’,'Smiley’,'SpecialChar’,'PageBreak’,'UniversalKey’],
[’Style’,'FontFormat’,'FontName’,'FontSize’],
[’TextColor’,'BGColor’],
[’FitWindow’,'-’,'About’]
] ;

你必须明确的指定FCKConfig.mwScriptPath ,其必须和 LocalSettings.php中的$wgScriptPath相同。

补充说明:在 http://www.grrr.cn 安装编辑器後,每次打开编辑都出现 XXXXX “universalkey” 的弹出窗口提示,我用的是2.43版的FCKeditor,後来去掉上文中

[’Image’,'Table’,'Rule’,'Smiley’,'SpecialChar’,'PageBreak’,'UniversalKey’], 行的

‘UniversalKey’项,随即正常

(The FCKeditor has its own built in file and upload browser which can be used as an alternative to the mediawiki upload function. If you want to use it do not replace the files fck_image.html and fck_image.js and do not add the “section modified image dialog” in fckconfig.js. For enabling the FCKeditor’s built in file browser and upload function see FCKeditor Developer’s Guide at the bottom of the page. Note that you completely bypass all security checks of the mediawiki software for uploaded files when using this feature.)

最後检查下你的 FCKeditor安装:

1. 浏览 www.yourserver.org/yourwikidir/FCKeditor/_samples/default.html.
2. 您应该看到以下的的东西:

Should you encounter troubles, consult the FCKeditor help pages.

Extension FCKeditor.php

新建一个空白php文件,命名为FCKeditor.php,把MediaWiki扩展:FCKeditor/extension 中的代码复制到该文件中,将该文件保存到mediawiki安装文件夹中的extensions文件夹下。

LocalSettings.php

在“?>”前添加下面的代码

/* Installing this extension may lead to security and technical problems
* as well as data corruption.
*/
require_once(”extensions/FCKeditor.php”);

$wgFCKUseEditor = false; // 当您设置成为true的时候,fck将做为默认编辑器
$wgFCKEditorDir = “FCKeditor”;
$wgFCKEditorToken = “__USE_EDITOR__”; //更改这个,您将更改FCKEDITOR的标记,请慎重更改。
$wgFCKEditorToolbarSet = “Wiki”;
$wgFCKEditorHeight = “600″;
$wgFCKEditorAllow_a_tags = true; // : Set this to true if you want to use the **external** link
// generator of the FCKeditor.
$wgFCKEditorAllow_img_tags = true; // : Set this to true if you want to use the
// file browser and/or the smilies of the FCKeditor.
$wgFCKexcludedNamespaces = array(8,1,-1); // eg. “8″ for disabling the editor within the MediaWiki namespace.

/**
* Enable use of AJAX features.
*/
$wgUseAjax = true;
$wgAjaxExportList[] = ‘wfSajaxSearchImageFCKeditor’;

接下来,打开一个新的待编辑条目,添加以下字段 __use_editor__ ,保存该页面,再点击“编辑”,你就可以看到FCKeditor!!!

相关链接

* FCKeditor and HTML::WikiConverter - An implementation that stores data as wikitext instead of html.
* WYSIWYM editor
* bugzilla:1125 and bugzilla:5398
* http://fck.kravchuk.biz/
* http://c2.com/cgi/wiki?WysiwygWiki
* http://wiki.fckeditor.net, http://wiki.fckeditor.net/WikiSandBox?action=edit&editor=gui
* http://fckeditor.wikiwikiweb.de/FCKeditor
* http://developer.berlios.de/projects/enotifwiki mediawiki 1.5.6 plus FCKeditor software package
* http://www.wikipage.org/wikinaut/index.php/WYSIWYG-Editor/Sandbox
o offers an installed (outdated) version based on mediwiki 1.5beta3 with sandbox.
* http://www.parand.com/say/index.php/2005/06/27/fckeditor-as-wiki-editor/#comments
* http://esco.uni-klu.ac.at/index.php/Help:Integration_of_the_FCKeditor
* http://www.wikiwyg.net and the Sandbox
* http://www.wikiwyg.org/wysi - a different project than Wikiwyg.net - click the link to use it live
* http://toolswysiwyg.org/ - WikiMedia and FCKeditor

Aug
13

HTML到MediaWiki转换器

Aug
13

What is the Wikipedia Toolbar?

The Wikipedia extension makes editing of Wikipedia
pages easier by adding a new toolbar to your browser and by providing
new menu items in the context menu (right mouse key). You can read more details, have a look at it or jump right to the installation.

Quick Features of Wikipieda Toolbar

  • Supports all standard MediaWiki formatting commands.
  • Formatting works on selected text or without any selection.
  • Commands available via toolbar and context menu.
  • Dialog based creation of tables, image links and links.
  • Many special characters available via a menu.
  • Locale specific templates with catagory grouping. (New!)
  • Site side template packs, that are for a certain site. (New!)
  • Either select large icons or small icons. (New!)
  • All WikiMedia wikis are preconfigured
  • User defined wikis and formats.
  • Fast switching between multiple Wikis.
  • Open all MediaWiki special pages from toolbar.
  • … many many more features!
Aug
10

http://gztw.com/2006/03/mediawiki.html

      安装MediaWiki之后,发现权限设置是完全开放的,需要做一些设置,例如禁止匿名用户编辑内容等等,但程序上却没有提供设置选项。网上查询了一下,却发现设置方法各有各的说法,没法,只有突破万难,到官方网站上查询一下,发现这MediaWiki的确是管理功能各方面多有不足。

      希望设置MediaWiki的用户权限,对匿名用户的设置可以从修改LocalSettings.php入手,下载该文件,然后按照希望设置的用户权限,在文件中插入对应的设置语句,存储后再上传回去就可以了。通过下面介绍的设置方法,可以阻止匿名用户注册,又或者阻止他们编辑,要求注册后才能够编辑,还可以设定注册前匿名用户可以查看那些页面。而在设置新用户的注册之后,管理人员仍可通过特殊页面手动为其他人创建用户。而用户的权限,则可以通过特殊页面内的User rights management进行管理。

LocalSettings.php用户权选设置相关选项

阻止新用户注册
1.5.x
$wgGroupPermissions[’*’ ][’createaccount’] = false;

注意: 阻止新用户注册,此时管理员可以到特殊页面上的用户登录页面(Special:UserLogin)里,输入希望为其建立帐户的某人的用户名与电子邮件地址,然后点击通过eMail(by email)按钮递交,系统将创建帐号并将随机生成的密码发送到指定email里。

设置匿名用户权限
1.5.x
$wgGroupPermissions[’*’ ][’createaccount’] = false;
$wgGroupPermissions[’*’ ][’read’] = true;
$wgGroupPermissions[’*’ ][’edit’] = false;

设置匿名用户可读内容
1.5.x
$wgWhitelistRead = array( “Main Page”, “Special:Userlogin” );
$wgGroupPermissions[’*’ ][’read’] = false;

注意:具体需要对应自己的站点链接,而对于多字节语言的MediaWiki,例如中文首页链接index.php?title=%E9%A6%96%E9%A1%B5,这首页中文字符PHP可能无法正确解码。需要利用urldecode()函数转换一下,写为:

$wgWhitelistRead = array( urldecode(”%E9%A6%96%E9%A1%B5″) ;

Aug
08

word2mediawikiplus的插件,在word的宏中安装和运行这个插件时,遇到两个问题:

1)在服务器上的word中运行此宏时,系统提示禁止运行宏,即使将宏的安全性设置为“低”也不行;

2)在本机的word中运行倒可以运行宏,就是在运行过程中提示以下源代码错误:

MW_ReplaceString “?, ” ‘”,具体错误为“参数不可选”。

MW_ReplaceString “?, ” ‘”

—————————
Microsoft Visual Basic
—————————
编译错误:

参数不可选
—————————
确定   帮助  
—————————
同病相怜:http://matongyu.jiancss.com/archives/338967/

Aug
08

工程地址:http://sourceforge.net/projects/word2mediawikip/

A set of Word Visual Basic macros to convert Microsoft Word document content to MediaWiki markup.

Word2MediaWiki

的改进版
目前版本兼容word200 word2003 在word2007中会跳出版本不合适,功能可能不正常的提示。

网友相关文档:
http://jmcx.bokee.com/6160975.html

维基插件列表
http://www.mediawiki.org/wiki/Extension_Matrix

Aug
07
  • 按通过浏览器访问index.php文件,安装程序会自动运行,并检查系统配置
  • 照页面提示填写相应的内容(以下内容必填,其他可以选填)
  • Site name:wiki站点名称(建议英文)
  • Contact e-mail:站长的联络邮件
  • Language:语种选择。(建议选择zh-cn简体中文;高级用户也可以支持繁简体自动转换的zh中文)
  • Copyright/license medadata:版权类型。
  • Sysop account name:管理员用户(建议英文)。
  • password:管理员的密码
  • MySQL server:MySQL服务器名称(一般为localhost)
  • Database name:数据库名称
  • DB username:数据库用户名
  • DB password:数据库密码
  • Database table prefix:数据表前缀。(例如wiki_)
  • 执行了浏览器安装过程后,在config目录下会自动生成一个LocalSettings.php的本地配置文件。
  • 把它LocalSettings.php移动到上级目录中。