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

XF 1.4 Reply button like on vbulletin

jauburn

Well-known member
#1
Just occurred to me that for a newbie, the vbulletin way of having a big old reply button above and to the left of the first post was really good. Is there an add-on that puts a Reply button there?

Thanks.
 

Russ

Well-known member
#2
If you check out the thread_view template there's a button that is commented out you can simply remove the <xen:comment> around it
 

jauburn

Well-known member
#3
If you check out the thread_view template there's a button that is commented out you can simply remove the <xen:comment> around it
Thank you. This worked superbly. Was this button recently removed? Seems to me it used to be there.
 

Jeremy

Well-known member
#5
It was removed in early 1.0 development, IIRC. There's a long thread debating its merits somewhere. I recently stumbled upon the code and it never occurred to me it was ever removed. Just assumed it was there. Lol
 

jauburn

Well-known member
#6
So another question: Now that I have the Reply to Thread button back, how do I get it to show up also to guests? This would be a way, of course, to prompt registration, so clicking the Reply button would take guests to the signup/login page. I believe there was a vbulletin feature similar to this, or maybe it was an add-on.
 

Brogan

XenForo moderator
Staff member
#7
Add this:
HTML:
<xen:if is="!{$visitor.user_id}">
    <xen:topctrl>
        <a href="{xen:link 'register'}" class="callToAction"><span>{xen:phrase reply_to_thread}</span></a>
    </xen:topctrl>
</xen:if>
 

jauburn

Well-known member
#8
Add this:
HTML:
<xen:if is="!{$visitor.user_id}">
    <xen:topctrl>
        <a href="{xen:link 'register'}" class="callToAction"><span>{xen:phrase reply_to_thread}</span></a>
    </xen:topctrl>
</xen:if>
Hmm, where should I add that, precisely?

The current code I have is this:

<xen:if is="{$canReply}">
<xen:topctrl>
<a href="{xen:link 'threads/reply', $thread}" class="callToAction"><span>{xen:phrase reply_to_thread}</span></a>
</xen:topctrl>
</xen:if>