安装成功
主要是LZ主贴两个错误
下面都已经说明了
整理一下
修改viewthread.php
查找- $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 bg.membg, bg.conbg, p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
复制代码 查找- LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
复制代码 修改为- LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid LEFT JOIN displu_dress_users bg ON bg.uid=m.uid
复制代码 查找- $postlist[$post['pid']] = viewthread_procpost($post);
复制代码 下面添加- $membg = $conbg = array();
- if($postlist[$post['pid']]['membg']!=''){
- $membg = unserialize($postlist[$post['pid']]['membg']);
- if($membg[active]&&$membg[expiration]>$timestamp) $postlist[$post['pid']]['membg'] = 'style="background-image:url(plugins/DisPlu_Dress/images/bg/'.$membg[file].');background-repeat:'.$membg[repeat].';background-position:'.$membg[position].';"';
- }
- if($postlist[$post['pid']]['conbg']!=''){
- $conbg = unserialize($postlist[$post['pid']]['conbg']);
- if($conbg[active]&&$conbg[expiration]>$timestamp) $postlist[$post['pid']]['conbg'] = 'style="background-image:url(plugins/DisPlu_Dress/images/bg/'.$conbg[file].');background-repeat:'.$conbg[repeat].';background-position:'.$conbg[position].';"';
- }
复制代码 |