mymps ant classification information system website background modification information clicks, pageviews tutorial

Sometimes, we need to modify the number of browsing of classified information. The official program does not have this function, so we need to open it by ourselves.

1. Go to the background folder /admin and open information.php to find mappoint and add it in the next line

1
$hit  intval ( $hit );

Continue to find mappoint and add it later  . '',hit = '' . $hit     pay attention to the syntax escape symbol, or you can directly copy the following replacement 

1
$sql =  'UPDATE `'  . $db_mymps .  'information` SET '  . $manage_pwd .  ' '  . $refreshtime .  ' '  . $userid .  ' title = ' ' . $title . ' ',content = ' ' . $content . ' ',gid=' ' . $gid . ' ',catid = ' ' . $catid . ' ', areaid = ' ' . $areaid . ' ', activetime = ' ' . $activetime . ' ', endtime = ' ' . $endtime . ' ', ismember = ' ' . $ismember . ' ' , info_level = ' ' . $info_level . ' ' , qq = ' ' . $qq . ' ' , email = ' ' . $email . ' ' , tel = ' ' . $tel . ' ' , contact_who = ' ' . $contact_who . ' ' , upgrade_type = ' ' . $upgrade_type . ' ',upgrade_type_list = ' ' . $upgrade_type_list . ' ' ,upgrade_type_index = ' ' . $upgrade_type_index . ' ' , upgrade_time = ' ' . $upgrade_time . ' ',upgrade_time_list = ' ' . $upgrade_time_list . ' ', upgrade_time_index = ' ' . $upgrade_time_index . ' ', ifred = ' ' . $ifred . ' ', ifbold = ' ' . $ifbold . ' ',mappoint = ' ' . $mappoint . ' ',hit = ' ' . $hit . ' ' WHERE id = ' ' . $id . ' '' ;

2. Enter the background file /admin/template to open information_edit.tpl.php to find begintime and add the following code

1
2
3
4
5
6
<tr>
<td height= "25" >浏览量:</td>
<td>
     <input type= "text"  name= "hit"  class = "text"  value= "<?=$post[hit]?>" />
</td>
</tr>

After saving, you can enter the background to modify the clicks to see the effect.

Front desk after modification


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324808688&siteId=291194637