The method of adding floor number to Weaving Dream comment
This article will explain in detail the method of adding the floor number to the dream weaving comment. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
How to add the floor number to the dream weaving comment?
Add the floor number to the dream weaving review.
Online search about dream weaving comments plus floor number, most of them are more complex, dream weaving cat to introduce you to the most simple and effective method.
First of all, we need to adjust the order in which dream weaving comments are displayed on the floor. The default order of dream weaving is that the final comments are displayed at the top, we need to change it to the first published comments to be displayed at the top, and the last released ones are displayed at the bottom.
This is easy to change. Open / plus/feedback_ajax.php and remove or change the DESC in the following SQL statement to ASC.
$querystring = "SELECT fb.*,mb.userid,mb.face as mface,mb.spacesta,mb.scores,mb.sex FROM `dede_ feedback` fb LEFT JOIN `dede_ member`mb on mb.mid = fb.mid WHERE fb.aid='$aid' AND fb.ischeck='1' ORDER BY fb.id DESC"
Then find "while ($fields = $dsql- > GetArray ('fb'))" below, and add "$iTun0;" to the top of the code.
Add "$iTunes;" to the while loop so that $I will automatically increase by 1 each time the loop outputs the floor, as shown in the following figure:
Then, where the floor is displayed (starting at line 303), enter Building.
This is the end of the method of adding the floor number to the Weaving Dream comment. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.