Fixed News feed enable option not respected by templates

Mike Tougeron

Well-known member
In the quick_navigation_menu template, it'd be nice if there is an if statement around the news feed links. Otherwise the links show up even if the news feed is disabled.

Instead of these two lines in the template:
<li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li>
<li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li>

wrap them in the if like:
<xen:if is="{$enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
<xen:if is="{$enableNewsFeed}"><li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li></xen:if>

As always, thanks for the good work.
-Mike
 
oops, I think it would be <xen:if is="{$xenOptions.enableNewsFeed}"> since {$enableNewsFeed} value isn't set to the template when it's loaded via AJAX
 
I just disabled the news feed here:

pic001.webp

Problem is when viewing the Forum-View page I still see and can click the rss icons. I'm on v1.1.3.
 
Top Bottom