Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 22, 20222 yr Hello, what is the link to the cover photo of a user? I want to show the cover photo of the user in the post sidebar. For this I changed the "postContainer" template a little bit and added the following code. <div class="coverphoto" style="background-image: url(LINK_TO_COVER)"></div> Unfortunately I don't know exactly how to get the link of the respective cover photo. Can anyone help me with this? So far I have everything ready, it just hangs on the link. I tried it with "{$coverPhoto->file->url}" and "{$member->coverPhoto->file->url}", but it didn't work. Best Regards, Vakarian96
April 22, 20222 yr As this is a customization, with which we unfortunately cannot assist, I've moved it to the Community Support area where other community members may be able to answer the question.
April 22, 20222 yr {{$coverPhoto = $member->coverPhoto();}} <div class="coverphoto" style="background-image: url('{$coverPhoto->file->url}')"></div>
April 22, 20222 yr Author 6 minutes ago, Sonya* said: {{$coverPhoto = $member->coverPhoto();}} <div class="coverphoto" style="background-image: url('{$coverPhoto->file->url}')"></div> Thanks for the answer, unfortunately it does not work. 😞
April 22, 20222 yr {{$coverPhoto = $comment->author()->coverPhoto();}} <div class="coverphoto" style="background-image: url('{$coverPhoto->file->url}')"></div>
April 22, 20222 yr Author 1 minute ago, Sonya* said: {{$coverPhoto = $comment->author()->coverPhoto();}} <div class="coverphoto" style="background-image: url('{$coverPhoto->file->url}')"></div> Awesome, danke das war es.