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

Move "Post New Thread" Button

Russ

Well-known member
#4
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;">
 

Brogan

XenForo moderator
Staff member
#5
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.
 

kforo

Active member
#8
for those of you who've done the above, would you be willing to post a screenshot of what it looks like implemented?
 

Claudio

Well-known member
#11
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?