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

XF 1.2 Post New Thread button

Discussion in 'Styling and Customization Questions' started by Kurt, Mar 7, 2014.

  1. Kurt

    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>
    
     

Share This Page