Jump to content

Replace Sharer Image on Profile Pages


TimTheMiles
 Share

Recommended Posts

Hello IPS, 

So I'm looking to change something for that's been bothering for quite some time.
But I don't know how to go about it. My goal is to replace the Sharer Image that shows by default on Profiles.
When you share a profile link to Facebook, Twitter, or any other platform. It automatically uses the Sharer Image instead of the Profile Picture.

Is there a way to force it to grab the Profile Picture instead?
Maybe some snippet of Code I can add to my theme?

Link to comment
Share on other sites

27 minutes ago, opentype said:

{{if $member->photo}}
{{\IPS\Output::i()->metaTags['og:image'] = $member->photo;}}
{{endif}}

somewhere in the profileHeader template.

 

OK I added it to the ProfileHeader Template.
And then I tested it on Discord and Twitter, but nothing right now.
How long do you think it will take before it starts showing?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...