It looks like you're new here. If you want to get involved, click one of these buttons!
VectorSkullz
newb
Hello.
I currently have 2 domain names sharing one database. Also, Vanilla Forums is installed in two separate directories on my server. All is good until someone uploads a profile pic.
How can I have one installation of Vanilla Forums point to an "Uploads" directory to a different location other than the default one? Plugins and such isn't be a problem as both installations should have the same plugins installed.
Comments
symbolic link
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Create a symbolic link to the new location. It's something you do on your server and requires shell access.
Your other option is to edit constants.php:
define('PATH_UPLOADS', PATH_ROOT.'/uploads');
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •hmm, tried that too. Changed the said line in constants.php to:
define('PATH_UPLOADS', PATH_ROOT . DS . '/httpdocs/OtherVanillaInstallation/uploads');
...But to no avail. Also, unfortunately, I am not versed in shell commands.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •PATH_ROOT is where your Vanilla installation is at. So unless you have a folder called httpdocs under your Vanilla install, that isn't correct. You'd need to remove PATH_ROOT entirely and provide a full absolute path.
Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •