System0
Active member
On my forum home page I have added a link for users to create new threads.
To do this I editied the node_forum_level_2 template and changed:
to
I have two new forum rooms in which I only want a certain forum usergroup to post (authors). Permissions are working great but due to the above hack, there is still a link to post a new thread on the forum home page. I don't want a 'Post New Thread' link to show to unauthorised member groups.
How would I modify the if statement above so that the 'Post New Thread' link is not shown on certain forum nodes.
Thanks,
Kevin
To do this I editied the node_forum_level_2 template and changed:
Code:
<div class="nodeControls">
<a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
</div>
to
Code:
<div class="nodeControls">
<xen:if is="{$visitor.user_id}">
<a href="{xen:link forums/create-thread, $forum}" class="postnTopic">Post New Thread</xen:if>
<a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
</div>
I have two new forum rooms in which I only want a certain forum usergroup to post (authors). Permissions are working great but due to the above hack, there is still a link to post a new thread on the forum home page. I don't want a 'Post New Thread' link to show to unauthorised member groups.
How would I modify the if statement above so that the 'Post New Thread' link is not shown on certain forum nodes.
Thanks,
Kevin