1. 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?

Discussion in 'XenForo Questions and Support' started by CyclingTribe, May 18, 2011.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
  3. CyclingTribe

    CyclingTribe Well-Known Member

    True, but I'd still like to remove the icon ... :)
     
  4. James

    James Well-Known Member

    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.
     
    Jake Bunce and GeeksChat like this.
  5. CyclingTribe

    CyclingTribe Well-Known Member

    Spot on - thanks James :)
     

Share This Page