B Bram Well-known member Jan 2, 2014 #1 I have used the search function and google but can't find it anymore what the conditional statement is to hide content/adsense when there is only a single post in a thread. Can anybody point me to the right answer?
I have used the search function and google but can't find it anymore what the conditional statement is to hide content/adsense when there is only a single post in a thread. Can anybody point me to the right answer?
P Paul B XenForo moderator Staff member Jan 2, 2014 #2 You could use $thread.reply_count. Upvote 0 Downvote
B Bram Well-known member Jan 4, 2014 #3 Thanks a lot, that did it @Brogan is there a conditional for the last post of a thread as well? Last edited: Jan 4, 2014 Upvote 0 Downvote
R rdn Well-known member Jan 4, 2014 #4 Maybe something like this: $thread.reply_count = 20 Assuming your forum settings for thread displays 20 post for every thread page. Upvote 0 Downvote
Maybe something like this: $thread.reply_count = 20 Assuming your forum settings for thread displays 20 post for every thread page.
P Paul B XenForo moderator Staff member Jan 4, 2014 #5 Not sure if this will work but you can try $thread.last_post_id Upvote 0 Downvote