十一月
13

MediaWiki是著名的PHP开源Wiki,也是国内使用最多的Wiki程序。

虽然使用它的人很多,但相关帮助的文档还是很少.比如要想安装Extensions或修改一下Skin,没有一定的PHP知识是很困难的,还有一些Extensions对最新版本(1.8.2)是不支持的.另外你还需要了解DefaultSettings.php中的两千多行设置代码,好在有一些专门的帮助文档,但写的也不是很健全.

这篇Blog记录一下如何开启MediaWiki编辑HTML的功能:

  • 修改includes\DefaultSettings.php,将$wgRawHtml选项设置为True.

  • 在LocalSettings.php文件末尾的”?>”之前增加一句”$wgRawHtml = true;”

完成以上设置后,在编辑页面的时候<html></html>之间代码将不做检查,直接以HTML输出,可以使用Javascript.注意,开启此项功能可能存在安全隐患.

更多帮助资源:http://del.icio.us/caiwangqin/MediaWiki

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Tags:

1 Response

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>