Back up the original file before modification. 1. find "\ source \ class \ discuz \ discuz_application.php" and set the (red) mobiletplarray (1 mobile, 2 touch, 3wml, yesmobile ), change to mobiletplarray (1 mobile, 2 touch, 3wm
Back up the original file before modification
1. find "\ source \ class \Discuz\Discuz_ Application. php ", marked in red)
'Letletpl' => array ('1' => 'mobile', '2' => 'Touch', '3' => 'wml ', 'Yes' => 'mobile '),
Change
'Letletpl' => array ('1' => 'mobile', '2' => 'Touch', '3' => 'wml ', 'Yes' => 'touch '),
2. the above modification has been successful, but a short text "access this site with a handheld forum and have a better reading experience" will be displayed on the top, and you can delete it now.
Find "\ source \ plugin \ mobile. class. php ",
If (strpos ($ useragent, 'iPhone ')! = False | strpos ($ useragent, 'iOS ')! = False ){
Return lang ('plugin/mobile', 'mobile _ tip_ios ');
} Elseif (strpos ($ useragent, 'Android ')! = False ){
Return lang ('plugin/mobile', 'mobile _ tip_android ');
} Elseif (strpos ($ useragent, 'windows phone ')! = False ){
Return lang ('plugin/mobile', 'mobile _ tip_wp7 ');
}
If you delete or comment it out, it will be completely OK.