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)

?

All Colours Sam

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
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki


Advertisement: