How to add "noindex, follow" to headers on profile->stats & profile->posts ?

Started by Boggi, March 17, 2020, 12:22:37 PM

Previous topic - Next topic

Boggi

Hello,

how to add <meta name="robots" content="noindex, follow"> to html headers, but only on

profile -> stats
(/profile/?area=statistics;u=x)

&

profile -> posts
(profile/?area=showposts;u=x)

?

Suki

Open Sources/Profile-View.php

find function statPanel($memID)

and after global $context; definition add:

$context['robot_no_index'] = true;


Do the same for function showPosts
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.


Advertisement: