PDA

View Full Version : Changing Base Directory?


Inked_Mono
01-13-2015, 02:31 AM
Quick question!

I've had this issue before, but for the life of me can't remember the fix. Right now, I'm hosting User Ranks on my host, so the directory to the image reads as "/images/whatever/whatever.png". However, when the forum goes to seek those images, it's not adding the original "/forum" prefix, and I'm unable to add it to the User Rank image directory as it tells me it's an invalid path specified.

How do I fix this?

User Rank Settings (not the lack of "/forum" on file path): http://i.imgur.com/kGwqmDh.png
Where it's connecting to: http://i.imgur.com/1OrvZYf.png
When I try and add "/forum" to User Rank file path: http://i.imgur.com/SQ4xk7B.png

Digital Jedi
01-13-2015, 10:19 AM
Been a while since I used the User Rank Manager, but any reason you can't put the full path to the image?

ozzy47
01-13-2015, 10:59 AM
Perhaps remove the leading / slash.

RichieBoy67
01-13-2015, 11:23 AM
Perhaps remove the leading / slash. Yeah, that's it. :up:

Inked_Mono
01-13-2015, 02:31 PM
I actually ended up finding a way how, and it was rather odd!

If you add a period before the first slash, it seems to work. Ex: "./images/forumranks/etc.png

No clue why, but sure enough. Thanks anyways, all.

cellarius
01-13-2015, 09:19 PM
Because with linux paths / is different from ./ is different from ../

http://linux-tutorial.info/modules.php?name=MContent&pageid=17