100分恳求+跪求+哀求高手解决关于wiki网站的默认搜索项设置有关问题
100分恳求+跪求+哀求高手解决关于wiki网站的默认搜索项设置问题!
我想把wiki网站的默认搜索项为(页面)搜索,而我想设置默认的搜索项为:
{(页面) +template+image+Category},(注:不是个参数设置里面进行设置,我要的是所有人只要进行搜索就是默认选择这四项)不知到哪里去修改,应该如何去修改.请哪能位前辈指点指点小弟.在此不胜感激!
------解决方案--------------------
用的什么wiki软件都不说明一下
------解决方案--------------------
直接从模板里改就是了
------解决方案--------------------
数据多了之后非常影响效率...
------解决方案--------------------
帮顶一下吧
------解决方案--------------------
兄弟别着急,上来这里就是为了解决问题的,
大家也只是提出方案供参考,
代码到底还是要自己写的。
况且你提问的时候不是很详细,你到底要解决几个问题,分别什么症状,具体版本配置等等
情况少大家也只能提出大概的方向。
===========默认搜索项的问题,我提供思路============
1、修改注册时候的默认选项
mediawiki\includes\SpecialUserlogin.php
function initUser( $u )
这个功能里
$u-> setOption( 'rememberpassword ', $this-> mRemember ? 1 : 0 );
后面加上你的权限
/*
搜索项为:
{(页面) +template+image+Category},
*/
2、屏蔽搜索项的修改功能
没仔细看程序,mw1.9.3 管理输出好像在这里
mediawiki\includes\SpecialPreferences.php
#899 行
# Search
都屏蔽了吧
看了一下wiki的权限,具体的权限代码太多太复杂了,看不明白。
==========google内容的部分=============
http://www.allwiki.com/wiki/Mediawiki%E5%A2%9E%E5%8A%A0Google_AdSense
参考这里吧

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Go language is an increasingly popular programming language with its concise syntax, efficient performance, and easy development. The Go language provides a powerful template engine - "text/template", but when using it, some people may encounter the "undefined:template.Must" error. The following is a method to solve this error. Import the correct package. When using the "text/template" template engine, you need to import "text/template

Golang and Template package: Create personalized user interface In modern software development, the user interface is often the most direct way for users to interact with the software. In order to provide a user interface that is easy to use and beautiful, developers need flexible tools to create and customize the user interface. In Golang, developers can use the Template package to achieve this goal. This article will introduce the basic usage of Golang and Template packages, and show how to create a personalized user interface through code examples.

Data visualization through Golang's Template package. With the advent of the big data era, data visualization has become one of the important means of information processing and analysis. Data visualization can present data in a concise and intuitive way, helping people better understand and analyze data. In Golang, we can use the Template package to implement data visualization functions. This article will introduce how to use Golang's Template package to achieve data visualization and provide code examples. GolangTem

Use of the opsForValue() method in Redis 1. set(Kkey, Vvalue) adds a string type value, key is the key, and value is the value. redisTemplate.opsForValue().set("stringValue","bbb"); 2. get(Objectkey) gets the value corresponding to the key key. StringstringValue=redisTemplate.opsForValue().get("key")3. append(Kkey,St

Golang and the Template package: Building a powerful front-end development toolbox In today's software development, front-end development is becoming more and more important throughout the project. In order to provide an elegant and reliable front-end development solution, we can use the Golang language and its built-in Template package. This article will introduce how to use Golang and the Template package to build a powerful front-end development toolbox. 1. Golang: Efficient and easy-to-use programming language Golang is a modern

Golang and Template package: quickly develop convenient front-end interface In modern Web development, the development of front-end interface is an important and indispensable link. The design of the front-end interface not only needs to be beautiful, but also needs to have a good user experience. However, the traditional front-end development process often requires a lot of time and effort. Fortunately, Golang provides the Template package, which is designed to help developers quickly build convenient front-end interfaces. Golang is an efficient, concise, concurrent, statically typed

Spring encapsulates RedisTemplate to operate Redis, which supports all Redis native APIs. Operation methods for five data structures are defined in RedisTemplate. opsForValue(): operates on strings. opsForList(): Operation list. opsForHash(): operates hash. opsForSet(): Operation set. opsForZSet(): operates an ordered set. Below are examples to understand and apply these methods. What needs special attention here is that the data must be cleared after running the above method, otherwise running it multiple times will result in repeated data operations. (1) Use Maven to add dependency files

Golang and Template package: Building maintainable web applications Introduction: In modern web application development, template engines play a very important role. They enable developers to easily dynamically render data into HTML templates to produce visual web pages. This article will introduce the Template package in Golang and its application in building maintainable web applications. 1. Introduction to the Template package. The Template package in Golang is a powerful and flexible template.
