1. 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?

Discussion in 'XenForo Questions and Support' started by tribedude, Mar 16, 2016.

  1. tribedude

    tribedude Active Member

    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?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.

Share This Page