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

XF 1.1 What is the recommended way to install PostRelease Script

Discussion in 'XenForo Questions and Support' started by DomainArchitect.com, May 1, 2012.

  1. DomainArchitect.com

    DomainArchitect.com Active Member

    My client requested that PostRelease's script be installed on one of their sites. The recommended location for the PostRelease script is right before the closing HEAD tag.

    What is the best way to incorporate this script into XenForo in a way that will not be overwritten in the future?

    Also, PostRelease requires that a template page be created with no content between the HTML tags. What is the recommended way to do this? Is it using the Page feature?

    Thank you!
  2. Russ

    Russ Well-Known Member

  3. DomainArchitect.com

    DomainArchitect.com Active Member

    Thanks. I was hoping that we wouldn't have to install another add-on. Is it possible there are other solutions?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can edit the template directly:

    Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

    Or create your own listener to use the page_container_head template_hook. Here is a code example:

  5. Brent W

    Brent W Well-Known Member

  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The javascript from step 1 would be added to this template:

    Admin CP -> Appearance -> Templates -> page_container_js_head

    But I am confused by step 2. It's not clear to me.
    Brent W likes this.
  7. Brent W

    Brent W Well-Known Member

    If you have access to a vBulletin installation, they have a vBulletin product. Could see how they do it with that product and maybe understand it better.

    I just don't know where I would put the html they need within xenForo.
  8. JBS

    JBS Member

    Has anyone figured out how to implement this yet? This was doing well for me before (on vB). It is now http://www.nativo.net.

Share This Page