DEDECMS Mobile search does not jump mobile phone template solution

Source: Internet
Author: User

First open PHP file plus/search.php, the code is all copied,

Then create a new file named search_m.php.

Paste all the code in the search.php.

Search_m.php is still placed in the plus directory.

Then open the php file include/arc.searchview.class.php

Copy all the code,

Create a new file include/arc.searchview.classm.php code to paste in.

The next is to modify the PHP file, open the search_m.php file, inside the 13th line

Require_once (Dedeinc. " /arc.searchview.class.php ");

Revision changed to

Require_once (Dedeinc. " /arc.searchview.classm.php ");

Then open the include/arc.searchview.classm.php file and find line 131th

$tempfile = $GLOBALS [' Cfg_basedir ']. $GLOBALS [' Cfg_templets_dir ']

." /". $GLOBALS [' Cfg_df_style ']." /search.htm ";

Revision changed to

$tempfile = $GLOBALS [' Cfg_basedir ']. $GLOBALS [' Cfg_templets_dir ']

." /". $GLOBALS [' Cfg_df_style ']." /search_m.htm ";

Here is completely modified, is not very simple ah, for the novice is not difficult,

Here search_m.php and arc.searchview.classm.php file names can be changed at their own discretion.

After the modification, do not forget to add search_m.htm Mobile search template files in the template folder, weaving dream from the phone template files, as long as the simple changes can be used.

DEDECMS Mobile search does not jump mobile phone template solution

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.