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

Pulling content in a page across multiple XF sites

Discussion in 'XenForo Questions and Support' started by CyclingTribe, Jun 6, 2012.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    I'd like to have a single privacy policy that applies to all of my XF sites and wondered if there is a way of writing the page content into a single file on my clickinfity domain and then "pulling" that content into an XF page at each forum site?

    If so, could you advise how I would go about this please?

    Many thanks,
    Shaun :D
  2. Chris D

    Chris D XenForo Developer Staff Member

    I don't know the correct syntax etc. but it is possible to do a PHP Callback via a XenForo page. This PHP call back could render your normal page container on each XF site, with the middle bit being a PHP include that loads the text.

    This may help:


    It's a great idea, because at least if the content of your Ts and Cs ever change, you only need to update them once.

    Again, I don't exactly know how, but the PHP callback might even be able to replace variables in the standard text.
    Jake Bunce, CyclingTribe and Doctor like this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

    Well I've got nothing to lose by trying - thanks, I'll give it a whirl! (y)
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. CyclingTribe

    CyclingTribe Well-Known Member

    Thanks Jake. (y)

Share This Page