phpfox如何在会员索引中调用个人资料照片和封面?

时间:2019-05-15 17:24:37

标签: php mysql phpfox

我用过代码

<img width="70%" src="<?php echo Phpfox::getLib('phpfox.image.helper')->display(array('server_id' => $this->_aVars['aCoverPhoto']['server_id'],'path' => "photo.url_photo",'file' => $this->_aVars['aCoverPhoto']['destination'],'suffix' => "_500",'class' => "cover_photo",'return_url' => true));
  else:  echo $this->_aVars['sCoverDefaultUrl'];  endif; ?>')"<?php endif; 


?>"/>

和代码

<img width="70%" src="<?php $avatarpath = Phpfox::getParam('core.url_user');$avatarpath .= Phpfox::getUserBy('user_image');$avatarpath = str_replace("%s","_200",$avatarpath);echo $avatarpath;?>"/>

结果类似于图片

enter image description here

0 个答案:

没有答案