XF 1.2 Post New Thread button

Kurt

Member
What xf code and templates do I need to modify to add the "Post New Thread" button to the follow pages. (users complain about finding it at first so I'm trying to make it easier)

1. thread page - under or around "reply to post" and on top of page similar to how it appears on node page.
2. Homepage - similar to how it appears on node page

I tried the below code in various template with no luck.. thanks


Code:
<xen:if is="{$canPostThread}">
    <xen:set var="$newDiscussionButton"><a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a></xen:set>
    <xen:if is="!{$renderedNodes}">
        <xen:topctrl>{xen:raw $newDiscussionButton}</xen:topctrl>
    </xen:if>
</xen:if>
 
Top Bottom