Fix [MMO] Old Thread Warning position bug

appzone

New member
Joined
Jun 7, 2020
Messages
2
Reaction score
2
Points
3
Hello,

if we have installed similar threads then [MMO] Old Thread Warning show warning below the similar the threads, not the quick reply editor. because of this users are unable to find the reason why the reply button is not working. when they scroll down they found the warning box below the similar threads. kindly fix the positions bug it will show below the quick reply editor in any condition. we are using [XTR] Similar Threads addon.

Thanks in advance
 

Attachments

  • Capture.PNG
    Capture.PNG
    20.5 KB · Views: 29

ge66

New member
Joined
Dec 15, 2020
Messages
1
Reaction score
0
Points
1
I put:
Code:
<xf:include template="motw_notice_warning" />
below:
Code:
<xf:set var="$isPreRegReply" value="{{ $thread.canReplyPreReg() }}" />
in template thread_view

Then I disabled the [MMO] Old Thread Warning template modification.

I also changed the row:
Code:
<xf:if is="{{ $xf.options.motw_enable_warning && $thread.canReply() && $thread.discussion_type != 'resource' }}">
in template motw_notice_warning to
Code:
<xf:if is="{{ $xf.options.motw_enable_warning && $thread.canReply() OR $isPreRegReply && $thread.discussion_type != 'resource' }}">
 
Top