But to answer your question,
@stub, this is the way that I would do it.
First, I would put at the top of the forum_view template:
HTML:
<xf:if is="in_array({$forum.node_id}, [1, 2, 3])">
<xf:head option="robots"><meta name="robots" content="noindex, nofollow" /></xf:head>
</xf:if>
But, you have to remember that threads can be moved from node to node and threads already exist in that node (obviously) and that the newest posts widget / what's new section can link to those specific threads too. If you want to exclude those from search engines as well as the node, you must put this at the top of the thread_view template:
HTML:
<xf:if is="in_array({$xf.reply.containerKey}, ['node-1', 'node-2', 'node-3'])">
<xf:head option="robots"><meta name="robots" content="noindex, nofollow" /></xf:head>
</xf:if>
If you don't mind indexing/following of threads, ignore the second portion. Also, you can pop the below code in PAGE CONTAINER (not recommended in my opinion, and remove the OR portion of that too).
Alternatively, you can put this into the PAGE_CONTAINER template removing the
<xf:head>
tags but placing the
<meta>
tag in the appropriate place (where other
<meta>
tags are). However, it'd run on every template; a conditional unnecessary for 100s of sections and main portions of your site (say you have articles or classifieds, it'll run there too).
HTML:
<xf:if is="in_array({$forum.node_id}, [1, 2, 3]) OR in_array({$xf.reply.containerKey}, ['node-1', 'node-2', 'node-3'])">
<meta name="robots" content="noindex, nofollow" />
</xf:if>
[/ICODE]