打印

[咨询] 礼品怎么在帖子中显示??【2楼解决】

礼品怎么在帖子中显示??【2楼解决】

礼品怎么在帖子中显示??哪位大虾帮助一下
具体的怎么设置呢

TOP

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 */
本帖最近评分记录
  • Eric03 金币 +20 热心提出建议 2007-12-19 22:22

TOP


当前时区 GMT+8, 现在时间是 2008-11-22 23:45 京ICP备08003531号

Designed By 17DST
Baidu XML