• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Add a New Thread Button to Threadview

yilmaz

Active member
#1
Search in the template thread_view for:
HTML:
<xen:navigation>
    <xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>
below it.
HTML:
<xen:if is="{$canReply}">
    <xen:topctrl><a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a></xen:topctrl>
</xen:if>

newThreadbutton.jpg
 

Mutt

Well-known member
#5
shouldn't it be checking to see if you can start a new thread in the current forum instead of checking if you can reply to the thread? I only let new members reply to existing threads for awhile before stepping them up to being able to start their own.

i tried
Code:
<xen:if is="{$canPostThread}">
it doesn't work. it must not get set inside threads.
 

discoian

Active member
#7
One minor thing....before there is a button "promote thread", with this mod the button is replaced with "post new thread" - can I not have promote, post AND reply buttons?
 

Mutt

Well-known member
#9
One minor thing....before there is a button "promote thread", with this mod the button is replaced with "post new thread" - can I not have promote, post AND reply buttons?
that's why i was trying to move the promote thread link.
 

Vincent

Well-known member
#10
One minor thing....before there is a button "promote thread", with this mod the button is replaced with "post new thread" - can I not have promote, post AND reply buttons?
that's why i was trying to move the promote thread link.
You cannot have 2, you gotta choose one.
Or you can use "Promote Thread" for the persons who are allowed to use it and "New Thread" for regular users.

I can help you with it, just ask.