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

Load avatars using alternative domain

Discussion in 'Server Configuration and Hosting' started by CyclingTribe, Oct 26, 2011.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    Is there any way to hard-code the domain portion of the Avatar gets?

    For example, my main domain is: www.cyclechat.net - and I have images for the styles loaded via: www.cyclechat.co.uk

    However, avatars images are not included in this and so come from the primary domain.

    I'd like to utilise asynchronous downloads and request the avatars via the .co.uk domain to speed up page loading.

    Any idea how I'd go about this in XF?

    Shaun :D
  2. James

    James Well-Known Member

    Aren't avatars stored in the /data/ directory? If you use $config['externalDataUrl'] as http://www.cyclechat.co.uk/data (and copy the data across) you should be able to utilise this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

    James likes this.
  4. kkm323

    kkm323 Well-Known Member

    these edits goes in your config.php!
  5. CyclingTribe

    CyclingTribe Well-Known Member

    Yes, sorry, should have clarified that. :)

Share This Page