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

XF 1.5 Is there a conditional to determine if an image is in a post or thread?

tribedude

Active member
#1
I want to position an ad in a location in a thread but do not want the ad to display if there are images in any posts in the thread...

Is there a conditional that will allow me to do this?

Thanks,
 

Brogan

XenForo moderator
Staff member
#2
You can use $message.attach_count in the ad_message_body template, but that will only check for attached/uploaded files, it won't work for embedded images.