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

Determine if video was embedded or posted in a post/thread

Discussion in 'XenForo Development Discussions' started by Steve F, Aug 20, 2013.

  1. Steve F

    Steve F Well-Known Member

    Using this to get attachments

    <xen:if is="{$item.attachment_id}"> STUFF </xen:if>

    Is there something for youtube videos for example? I can't find any example anywhere.

    Thanks
     
  2. xf_phantom

    xf_phantom Well-Known Member

    Via php you could use the Imagecount formatter and get the media count
    PHP:
    $formatter->getMediaCount()
     
    Last edited: Aug 20, 2013
    Steve F and 0xym0r0n like this.

Share This Page