XF 2.0 I want to upload images and access them

WombatCombat

New member
How would I do that?

On the front page I plan to have some custom HTML, and I'd like to put some img tags with images. However I'm not sure how I'm supposed to access the images, I want to upload them to my server and access them like that instead of hotlinking to imgur or something. How would I do this?

PS. I'm using XenForo 2 if it matters!
 
You just upload the files to your server and use standard img tags to display them, entering the relevant path for where the files are located.

 
You just upload the files to your server and use standard img tags to display them, entering the relevant path for where the files are located.

Oh I see alright, so say I create a folder called img in the root folder and put the pictures in there, what would the relevant path be that I should link?
 
@Brogan How can I add an images relevant path lets say if I'm doing it with an add-on? Making a template modification and placing the image there?

I've tried ordinary relevant path attempts and nothing is working.

My addon structure is like this:

BP/LightSwitch/img/bulb-on.png
BP/LightSwitch/img/bulb-off.png

Thanks for any help
 
Top Bottom