hostease主机优惠

Mediawiki中文技术论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6293|回复: 0

mediawiki插件--DynamicPageList

[复制链接]
发表于 2010-12-31 15:14:30 | 显示全部楼层 |阅读模式
RAKsmart美国服务器
Dynamic Page List (DPL)是MediaWiki的一个插件,它可以按照一定的规则显示特定目录的文章。
下载http://semeb.com/dpldemo/images/f/fe/Semeb_extensions.zip
安装
  • 把DynamicPageList目录上传到extensions目录中
  • LocalSettings.php 中增加一行:
    require_once("extensions/DynamicPageList/DynamicPageList2.php");
  • There is a special feature in DPL which needs another extension: If you use page inclusion and want to use images as link symbols for the original source you must install theLinkedImage extension. For details see there.
  • In some special cases (when DPL queries refer to uncategorized pages) DPL needs a special database view in the MySQL database. You should run the database statement which creates that view if you want to use DPL statements which refer to uncategorized pages. Many installations work well without that and you can postpone this step until you really need it. If DPL cannot execute a DPL statement without that view it will issue a corresponding warning.
    You must have admin rights in your database to execute the "create view" statement; if you defined a database table prefix at installation time of your wiki, you must use that prefix in the statement, otherwise delete "prefix_" before you issue the statement:
CREATE VIEW prefix_dpl_clview AS
SELECT IFNULL(cl_from, page_id) AS cl_from, IFNULL(cl_to, '') AS cl_to, cl_sortkey
  FROM `prefix_page` LEFT OUTER JOIN `prefix_categorylinks` ON page_id=cl_from
Note that you may get a misleading error message from the SQL interpreter (1084 syntax error) if you do not have sufficient privileges to create that view.
If you are using this extension with [url=http://www.zzbaike.com/wiki/index.php?title=En:Internet_Information_Services&action=edit&redlink=1]IIS[/url] on a Windows box, make sure to give Read & Execute rights to the user IUSR_MACHINENAME (Anonymous Internet Guest Account) for the extensions directory and the DynamicPageList2.php file itself.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

美国主机评测网站

Archiver|手机版|小黑屋|Mediawiki中文技术论坛

GMT+8, 2024-12-26 20:01 , Processed in 0.045423 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表