Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <php>
- $link_avatar = 'http://i.imgur.com/2QCNnUm.png'; // avatar-ul default
- ipsRegistry::DB()->build( array('select' => 'pp_main_photo',
- 'from' => 'profile_portal',
- 'where' => 'pp_member_id = ' . $stats['info']['last_mem_id'] ) );
- $rezultat = ipsRegistry::DB()->execute();
- if(ipsRegistry::DB()->getTotalRows() > 0)
- {
- $rand_user = ipsRegistry::DB()->fetch($rezultat);
- if($rand_user['pp_main_photo'] != '')
- {
- $link_avatar = $this->settings['board_url'] . '/uploads/' . $rand_user['pp_main_photo'];
- }
- }
- </php>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement