扩展:BypassSearch
此扩展在wiki页面上存储其源代码。 请注意此代码可能未审核,或被恶意修改。 其可能包含安全漏洞,不再兼容的过时界面等等。 注意: translatewiki.net 不提供此扩展的本地化更新。 |
此扩展目前不再活跃维护! 尽管它可能仍然工作,但任何错误报告或功能请求将很可能被忽略。 |
BypassSearch 发布状态: 未维护 |
|
---|---|
实现 | 用户界面, 我的Wiki |
描述 | Adds a user preference to go directly to creating a new page when the Go button is used and the target page doesn't exist |
作者 | slakr, Leucosticte |
最新版本 | 1.0.2 (2013-11-23) |
MediaWiki | 1.20+ |
PHP | 5.3+ |
数据庫更改 | 否 |
许可协议 | 未指定许可协议 |
下载 | See the page containing the code |
The BypassSearch extension adds a user preference to go directly to creating a new page when the Go button is used and the target page doesn't exist.
When using the search box, the default behavior is to Go directly to an article if it exists, or if it doesn't, use the search engine to find the given term. This extension allows the user to specify (under the "Misc" tab of "my preferences") the he wants to go directly into creating a new page instead of activating the autosearch when the given article doesn't exist.
安装
- 将代码复制到文件中文件,并将其放置在您
extensions/
文件夹中的BypassSearch
目录内。 - 将下列代码放置在您的LocalSettings.php的底部:
require_once "$IP/extensions/BypassSearch/BypassSearch.php";
- 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
配置
# If you would like the option enabled by default, set this to 1.
$wgDefaultUserOptions['bypasssearch'] = 0;