Customizing SMF > SMF Coding Discussion

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

(1/1)

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

Boggi:
Works perfectly, thanks :)

Navigation

[0] Message Index

Go to full version