100 points pleading + kneeling + begging the master to resolve issues related to default search item settings for wiki sites

Source: Internet
Author: User
Tags mediawiki wiki software
100 points pleading + kneeling + begging Master to solve the default search item setting problem for Wiki sites!
I want to search the default search term for the wiki site (page), and I want to set the default search term to:
{(page) +template+image+category}, (note: is not a parameter settings inside to set, I want to be all people just search is the default choice of these four) do not know where to modify, how to modify. Please be grateful for the advice of the Elder.

------Solution--------------------
What wiki software does not explain
------Solution--------------------
Just change it from the template.
------Solution--------------------
When the data is much more efficient ...
------Solution--------------------
Help me with the roof.
------Solution--------------------
Brother, don't worry, come up here to solve the problem,
We are only proposing proposals for reference,
The code is still going to be written by itself.

Besides, your question is not very detailed, you have to solve a few problems, respectively, what symptoms, specific version configuration and so on

The situation is small, we can only put forward a general direction.

=========== default Search item problem, I provide ideas ============

1. Modify the default options when registering
mediawiki\includes\specialuserlogin.php

function Inituser ($u)
In this function
$u-setOption (' Rememberpassword ', $this-mremember? 1:0);
Plus your permission.
/*
The Search items are:
{(page) +template+image+category},
*/

2. The modification function of the blocked search item
Not looking closely at the program, mw1.9.3 management output seems to be here
mediawiki\includes\specialpreferences.php
#899 Line
# Search
It's all blocked.

Look at the permissions of the wiki, the specific permissions code too much too complex, can not understand.

==========google part of the content =============
Http://www.allwiki.com/wiki/Mediawiki%E5%A2%9E%E5%8A%A0Google_AdSense
Refer here.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.