Jump to content

Profiles have no meta tags


Makoto
 Share

Go to solution Solved by bfarber,

Recommended Posts

Profiles on IPS have virtually no meta tags, at all.

This could be improved by adding a link to the users avatar and maybe a general description line like so,

        $description = "Explore {$this->member->name}'s " . \number_format( $this->member->member_posts ) . " posts on " . \IPS\Settings::i()->board_name;

        $newMeta = [
            'title'                 => $this->member->name,
            'description'           => $description,
            'og:title'              => $this->member->name,
            'og:description'        => $description,
            'twitter:description'   => $description,
            'og:image'              => $this->member->photo,
            'profile:username'      => $this->member->name,
            'og:url'                => $this->member->url()
        ];

        \IPS\Output::i()->metaTags = array_merge( \IPS\Output::i()->metaTags, $newMeta );

Otherwise links to profiles contain no description or anything aside the default og:image if you have one set in the settings.

Edited by Makoto
Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...
  • 1 month later...
  • 3 months later...
On 11/5/2020 at 6:04 PM, bfarber said:

I raised the suggestion internally already.

I will say that search engines are increasingly leaning on json+ld over meta tags and we do populate those, but this suggestion remains open in the mean time nevertheless.

Bump. 

Will profiles ever have standard basic meta tags?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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