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

How do I do this in xenForo?

Discussion in 'XenForo Development Discussions' started by BamaStangGuy, May 15, 2012.

  1. BamaStangGuy

    BamaStangGuy Well-Known Member

    Pretty simple plugin on vBulletin that includes a file and allows me to include that in a template with a variable.

    $filecontent ob_get_contents();
    and where $filecontent was placed the contents of file.php would show in the template. (Need it in Footer template)
  2. mmoore5553

    mmoore5553 Well-Known Member

    you can also put it as a hook. I think this is what you was wanting. It pulls external php file. I think that hook name is located where you want but there are a couple other hooks to use.

    if($hookName == 'footer')
    $contents .= ob_get_contents();
    Yorick likes this.

Share This Page