By Christian Nielsen on Thursday, 24 July 2014
Posted in General Issues
Likes 0
Views 590
Votes 0
Hi,

I think this could be outside what you normally support, but i wonder if anyone could point me in the right direction, in how to put users cover images in the background of my template? It would be gray to have this feature cos it would give the feeling that each users have their own unique page when visiting their profile.

Hope this is doable.
Hello Christian,

Hm, not really sure if I understand you here but if you mean you want to retrieve a user's cover photo, you can achieved it this way,


<?php
// Get current logged in user
$user = Foundry::user();
?>
<img src="<?php echo $user->getCover();?>" />
·
Thursday, 24 July 2014 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Sweet, thanks a lot!
·
Wednesday, 30 July 2014 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Christian Nielsen,

You're welcome
·
Wednesday, 30 July 2014 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post