• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Disable RSS for specific forums?

CTXMedia

Formerly CyclingTribe
#1
I just need a hand with disabling RSS for a couple of forums.

I assume this can be done with a template conditional to not show the RSS icon based on the forum's ID number? but how would I do this please (an example of how to code it in the template would be ideal ... (y))?

Thanks,
Shaun :D
 

Brogan

XenForo moderator
Staff member
#2
You can remove the icon easily enough but it won't disable the feed.

Anyone can still navigate to the URL or subscribe to it.
 

James

Well-known member
#4
Edit template node_forum_level_2

Find:
Code:
<div class="nodeControls">
<a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
</div>
Replace:
Code:
<xen:if is="!in_array({$forum.node_id}, array(x,y,z))">
<div class="nodeControls">
<a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
</div>
</xen:if>
Where x,y,z is a comma-separated list of the node ids to hide the RSS feed from.