回复主题:空网无心宠物3.0图片与程序下载
作者:Thermo
如果要把宠物显示在头像下面:
先要修改viewthread.php. 找到:
while($post = $sdb->fetch_array($query)) {
if(($onlyauthoradd && $post['anonymous'] == 0) || !$onlyauthoradd) {
$postlist[$post['pid']] = viewthread_procpost($post);
}
}
加入下面代码:
[code] ### wxpet
require_once(DISCUZ_ROOT.'./wxpet/system/petconfig.php');
foreach($postlist as $k=>$v){
$mypetdata=$db->get_one("SELECT * FROM {$tablepre}wxpetdata WHERE username='".$v['username']."'");
if($mypetdata){
if($mypetdata['bantag']==1 || $mypetdata['sleeptag']==1 || $mypetdata['bantime']>$timestamp || $index=='prison' || $action=='jailbreak') {continue;}
$petworld = $mypetdata['mypetworld'];
$petjob = $mypetdata['mypetjob'];
$petlevel=$mypetdata['mypetlevel'];
$levelpic=(intval($petlevel / $petsettings['petlevel']) >= $petsettings['petuplevel'])?$petsettings['petuplevel']:intval($petlevel / $petsettings['petlevel']);
if($petjob == 0 || ($petjob <=3 && $petlevel < 200) || $mypetda ..
<<下一主题
>>上一主题
返回版块