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

XF 1.5 Conditional for "Last Post" in a Thread?

RoldanLT

Well-known member
#1
I have a Code shown on every 4th thread post.
Now I would like to add a condition.

I would like to prevent it from showing when it's the Last Post of the thread.
How can I do that?

Many Thanks!
 

RoldanLT

Well-known member
#3
I tried:
PHP:
!in_array({$forum.node_id}, array(
1,2,3,4
))
AND
{$visitorIsBrowsingWithMobile}
AND
!{$thread.last_post_id}
and
PHP:
!in_array({$forum.node_id}, array(
1,2,3,4
))
AND
{$visitorIsBrowsingWithMobile}
AND
{$post.post_id} != {$thread.last_post_id}
Both doesn't show the widget.