D Deleted member 6355 Guest Apr 6, 2011 #1 Hey guys, I would like to move the "Post New Thread" button to below the forum title. Can someone give me a few tips?
Hey guys, I would like to move the "Post New Thread" button to below the forum title. Can someone give me a few tips?
Russ Well-known member Licensed customer Apr 6, 2011 #2 FaithFirst said: Hey guys, I would like to move the "Post New Thread" button to below the forum title. Can someone give me a few tips? Click to expand... Like the same position when there's sub-categories? http://xenforo.com/community/forums/bugs/ No sub cats it's right of the breadcrumb, with sub cats it would be in that location which I linked. Upvote 0 Downvote
FaithFirst said: Hey guys, I would like to move the "Post New Thread" button to below the forum title. Can someone give me a few tips? Click to expand... Like the same position when there's sub-categories? http://xenforo.com/community/forums/bugs/ No sub cats it's right of the breadcrumb, with sub cats it would be in that location which I linked.
Russ Well-known member Licensed customer Apr 6, 2011 #4 FaithFirst said: Ya, kinda there but on the left. Click to expand... 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;"> Upvote 0 Downvote
FaithFirst said: Ya, kinda there but on the left. Click to expand... 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;">
P Paul B XenForo moderator Staff member Licensed customer Apr 6, 2011 #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. Upvote 0 Downvote
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.
D Deleted member 6355 Guest Apr 6, 2011 #6 Awesome stuff! Thanks so much Russ! @Brogan, Noted Upvote 0 Downvote
kforo Active member Licensed customer Dec 16, 2011 #8 for those of you who've done the above, would you be willing to post a screenshot of what it looks like implemented? Upvote 0 Downvote
for those of you who've done the above, would you be willing to post a screenshot of what it looks like implemented?
jauburn Well-known member Licensed customer Jan 26, 2013 #9 kforo said: for those of you who've done the above, would you be willing to post a screenshot of what it looks like implemented? Click to expand... I'd like to see it as well. Upvote 0 Downvote
kforo said: for those of you who've done the above, would you be willing to post a screenshot of what it looks like implemented? Click to expand... I'd like to see it as well.
D Deleted member 6355 Guest Jan 27, 2013 #10 Sorry guys, I closed down that forum as it was test forum. My conclusion from the test: XF is awesome. Upvote 0 Downvote
Sorry guys, I closed down that forum as it was test forum. My conclusion from the test: XF is awesome.
Claudio Well-known member Licensed customer Sep 30, 2014 #11 Russ said: 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;"> Click to expand... Could you please update the code for XF 1.4? Upvote 0 Downvote
Russ said: 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;"> Click to expand... Could you please update the code for XF 1.4?