Move "Post New Thread" Button

=MGN=RedEagle

Well-known member
Hey guys, I would like to move the "Post New Thread" button to below the forum title. Can someone give me a few tips?
 
Ya, kinda there but on the left. :)

Open forum_view

Remove:
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>

Find:
Code:
<xen:if is="{$renderedNodes}">
<xen:include template="ad_forum_view_above_node_list" />
<xen:include template="node_list" />
</xen:if>

Add after:
Code:
<div class="linkGroup">
<xen:if is="{$canPostThread}">
<a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
<xen:elseif is="{$visitor.user_id}" />
({xen:phrase no_permission_to_post})
<xen:else />
<label for="LoginControl"><a href="{xen:link login}" class="concealed">({xen:phrase log_in_or_sign_up_to_post})</a></label>
</xen:if>
</div>

Last to make the bottom button align to the left too:
Find:
Code:
<div class="pageNavLinkGroup">
<div class="linkGroup" style="float:left;">
<xen:if is="{$canPostThread}">

In the <div class="linkGroup">
Replace it with:
Code:
<div class="linkGroup" style="float:left;">
 
Moved to general support.

For future reference, the development forums are related to working with the code.
Questions related to template edits or style changes go in general support.
 
Open forum_view

Remove:
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>

Find:
Code:
<xen:if is="{$renderedNodes}">
<xen:include template="ad_forum_view_above_node_list" />
<xen:include template="node_list" />
</xen:if>

Add after:
Code:
<div class="linkGroup">
<xen:if is="{$canPostThread}">
<a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
<xen:elseif is="{$visitor.user_id}" />
({xen:phrase no_permission_to_post})
<xen:else />
<label for="LoginControl"><a href="{xen:link login}" class="concealed">({xen:phrase log_in_or_sign_up_to_post})</a></label>
</xen:if>
</div>

Last to make the bottom button align to the left too:
Find:
Code:
<div class="pageNavLinkGroup">
<div class="linkGroup" style="float:left;">
<xen:if is="{$canPostThread}">

In the <div class="linkGroup">
Replace it with:
Code:
<div class="linkGroup" style="float:left;">
Could you please update the code for XF 1.4?
 
Top Bottom