Home > Backend Development > PHP Tutorial > Tutorial to completely solve the problem of no data in hot posts in the independent version of the mobile client

Tutorial to completely solve the problem of no data in hot posts in the independent version of the mobile client

WBOY
Release: 2016-07-25 09:13:26
Original
1227 people have browsed it
Exploration process:
Since receiving the invitation code for the Palm Forum (DZ official mobile client), our site has also successfully owned a mobile client of its own website. While I am extremely excited, I would like to pay tribute to all the DZ staff for their silent efforts! Although the program is not perfect yet, I believe the future is bright!
After successfully installing the mobile client, like my friends, the [Hot Posts] section of my client keeps showing "No data". I have been trying hard to find a solution, but to no avail. http://www.discuz.net/thread-3486781-1-1.html, I tried to check my background settings and found that all my settings were correct, but my websiteIntroduction【Latest Popularity】【 Latest Essence] is still displayed as "There are no posts yet". Suddenly I remembered that when I was in X2.5, after applying the 20121102 patch, the hot posts and highlight posts in the website guide had no content. At that time, I also spent a lot of effort to troubleshoot this bug, and finally found that it was in the file froum_guild. There is an extra "!" in front of $forum['viewperm'] in php. After removing this "!", you can see the content in the introduction... [For details, please see: 1101 Patch Introduction There are no posts yet Solution]
So, I just checked the file again and was surprised to find that there is still an extra "!" in front of $forum['viewperm'] in froum_guild.php, so I decisively deleted the exclamation point, updated the cache, and opened the guide link. : http://bbs.it-home.org/forum.php?mod=guide There is data in the guide! There is also data in the hot posts of the mobile client! The problem turned out to be here, this happiness came so suddenly, I burst into tears!

Solution:
1. Correctly set the background configuration.
a. Enter the background - Global - Mobile version global settings - Whether to enable hot posts (select "Yes")
b. Global - Site Functions - Guide Settings (Set according to the actual situation of your website. What I set is: lower limit of popularity value aggregation: 3; hot post/essence aggregation time range: one month)
2. Enter FTP or your server, find: source/module/forum/forum_guild.php, download it to the desktop, open it with Notepad, and find the code:
  1. $forum['viewperm']
Copy the code

Remove the exclamation point "!" in front of the code, save - upload - overwrite - update cache.
After completing the above operations, quickly open your guide and take a look. Is there any data in the original blank space? Hurry up and open your client and take a look. Is the "No data" in the hot post area already occupied by posts you are familiar with?
In fact, solving the problem is that simple!
Mobile client, staff, exclamation point, friends, forum


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template