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

XF 1.1 Change "Post new Thread" target and text?

Discussion in 'XenForo Questions and Support' started by drawmonster, Mar 11, 2012.

  1. drawmonster

    drawmonster New Member

    I'm wanting to change the text and where the button points to. I need it to point to a different URL on the forum.

    I've tried search, but I must be searching for the wrong terms or something. Thanks!!
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That is defined in this template:

    Admin CP -> Appearance -> Templates -> forum_view

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

    drawmonster New Member

    Is there a way to change the target of the button on a per forum basis? We want the post button to direct the user to a specific form URL, depending on which forum they want to post in. I'm using Simple forms, and want each forum "Post new thread" button to point to it's own form.

    And also, if I change the applied template do I have to customize this again?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page