Could anyone advise on an efficient conditional statement for post macros?
I want to be able to feed in possibly hundreds of thread IDs and Pages as google adsense is always finding violations with thousands of posts a day, so would just be easier to disable adverts on these pages.
Not sure the best way to do it without having a performance hit.
This is the current statement
Thanks
<xf:if is="($post.position % $xf.options.messagesPerPage) == 13">
Would ideally like to pass in pairs of thread ids and pages that could manage them getting quite long
Like
[12343,23][1214,43][2311,1][12323,8]
I want to be able to feed in possibly hundreds of thread IDs and Pages as google adsense is always finding violations with thousands of posts a day, so would just be easier to disable adverts on these pages.
Not sure the best way to do it without having a performance hit.
This is the current statement
Thanks
<xf:if is="($post.position % $xf.options.messagesPerPage) == 13">
Would ideally like to pass in pairs of thread ids and pages that could manage them getting quite long
Like
[12343,23][1214,43][2311,1][12323,8]
Last edited: