XF 2.1 Explicitly declared address instead of short address

ibaker

Well-known member
In XF v1.x you could for example put a smilie in a notice by simply using an src of:
Code:
<img alt="Smile" src="styles/smilies/001_smile.gif" />
But now with v2.1 you have to put the whole web address in as the src...as in:
Code:
<img alt="Smile" src="https://www.mydomain.com/styles/smilies/001_smile.gif" />

This is going to mean an extensive amount of work changing all the resources in my XF Resources section. Have I not set a setting correctly or is this just simply the way it is now...thanks for your help
 
We made some changes in XF 2.0 which were long over due. The reason the first one worked in XF 1.x is because we populated the base tag with your base forum URL. There were a number of scenarios where this caused fairly inconvenient issues.

However, while the second example of course works, you don't need to use a fully qualified URL like that. It is still different to the XF1 version, but only subtly so:
HTML:
<img alt="Smile" src="/styles/smilies/001_smile.gif" />
If your XF is in a sub directory (like this site) then it would be:
HTML:
<img alt="Smile" src="/community/styles/smilies/001_smile.gif" />
 
Back
Top Bottom