What's new
[XB] Forum Post Thread Button Text

[XB] Forum Post Thread Button Text [Paid] 2.0.1 Patch Level 3

No permission to buy ($10.00)
Hello,

Forum Post Thread Button Text
src/addons/OzzModz/ForumPostThreadButtonText/icon.png

Unexpected Content
 
Last edited:
Thanks, will do. Any idea on why this is happening?

1739373514382.png

I did an unistall and reinstalled. Warning went away but noticed this on a default post thread button.
 
Last edited:
Did you update the add-on with a file overwrite?
PS: XF File health check results are not rechecked when installing or upgrading the addon. Only by cron scheduler or manual re-run.
 
Hello @Painbaker

I couldn't have chance to try it all the forum types, but the addon is not working properly at the Article forum types.

1744646089435.png
It is not replacing the text as you see above.

1744645997627.png

Additionally, I added a new thread button in the thread that lets users quickly create a new thread within the same forum. Basically, they're creating a thread directly inside the forum using this button. Could you update your addon so that the same rules that apply to this additional button?
 
Additionally, I added a new thread button in the thread that lets users quickly create a new thread within the same forum. Basically, they're creating a thread directly inside the forum using this button. Could you update your addon so that the same rules that apply to this additional button?
Did you add this button by template modifications or by direct template edits to your style?
 
I had modified the template directly. The code which I used at XenForo 2.2 as follows. I just upgraded to XenForo 2.3 and I haven't adopted and implemented the code yet.

I was following the below steps.

Open the thread_view template

Find the code:
Code:
<xf:breadcrumb source="$forum.getBreadcrumbs()" />

Replace with:
Code:
<xf:comment>New thread button in the thread</xf:comment>
<xf:breadcrumb source="$forum.getBreadcrumbs()" />
<xf:pageaction if="$forum.canCreateThread()">
    <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write">
        {{ phrase('post_thread') }}
    </xf:button>
</xf:pageaction>
<xf:comment>New thread button in the thread</xf:comment>
 
I had modified the template directly. The code which I used at XenForo 2.2 as follows. I just upgraded to XenForo 2.3 and I haven't adopted and implemented the code yet.

I was following the below steps.

Open the thread_view template
Use this code:

HTML:
<xf:comment>New thread button in the thread</xf:comment>
<xf:breadcrumb source="$forum.getBreadcrumbs()" />
<xf:pageaction if="$forum.canCreateThread()">
    <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write">
        {{ (($forum.MasterPostThreadButtonPhrase && $forum.post_thread_button_phrase is not empty) ? $forum.post_thread_button_phrase : phrase('post_thread')) }}
    </xf:button>
</xf:pageaction>
<xf:comment>New thread button in the thread</xf:comment>
 
Morning @Painbaker, new release is working perfectly at Article forums.

Use this code:

HTML:
<xf:comment>New thread button in the thread</xf:comment>
<xf:breadcrumb source="$forum.getBreadcrumbs()" />
<xf:pageaction if="$forum.canCreateThread()">
    <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write">
        {{ (($forum.MasterPostThreadButtonPhrase && $forum.post_thread_button_phrase is not empty) ? $forum.post_thread_button_phrase : phrase('post_thread')) }}
    </xf:button>
</xf:pageaction>
<xf:comment>New thread button in the thread</xf:comment>
This code is working perfectly also. Thank you so much. Would you consider adding an ‘Enable Post Thread in Threads’ option in the next add-on update? It would be great instead of modifying templates.
 
Back
Top