


5.修改DZ文件:
打开viewthread.htm(一处)
找到:
<!--{if $vtonlinestatus && $post['authorid']}-->
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
<li class="online">{lang online}
<!--{else}-->
<li class="offline">{lang offline}
<!--{/if}-->
</li>
<!--{/if}-->
在下面添加:
<!--added by DST flowers START-->
$post[flowers]
<!--added by DST flowers END-->
打开viewthread.php(三处)
找到:
require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
在下面添加:
/*added by DST flowers START 1/3 */
require_once DISCUZ_ROOT.'./plugins/flowers/flower_ini.inc.php';//载入鲜花配置文件
/*added by DST flowers END 1/3 */
找到:
$query = $db->query("SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
改为:
$query = $db->query("SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
/*added by DST flowers START 3/3 */ m.flowers,/*added by DST flowers END 3/3 */
找到:
if($post['username']) {
$onlineauthors[] = $post['authorid'];
在下面添加:
/*added by DST flowers START 2/3 */
$post['flowers'] = $post['flowers'] && $GLOBALS['bbs_flower'] == 1 ? getflowerslist($post['uid']) : '';
/*added by DST flowers END 2/3 */