[drupal-devel] Multi-Configs and User Pictures?
I'm fixing to launch a multi-config/single-codebase site (ie., multiple domains pointing to the same Drupal installation, with differing sites/ configuration pointing to different databases), and I'm a little worried about how user account pictures are going to be handled. Currently, pictures are saved as just files/pictures/4.jpg for uid 4. But, what happens when uid 4 from BOTH sites tries to upload their pictures? -- Morbus Iff ( my name is legion, for we are many... ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
On Sun, 16 Oct 2005, Morbus Iff wrote:
I'm fixing to launch a multi-config/single-codebase site (ie., multiple domains pointing to the same Drupal installation, with differing sites/ configuration pointing to different databases), and I'm a little worried about how user account pictures are going to be handled. Currently, pictures are saved as just files/pictures/4.jpg for uid 4. But, what happens when uid 4 from BOTH sites tries to upload their pictures?
You obviously need to set the files directory to something different per site. I recommend to hardcode it into settings.php. Cheers, Gerhard
I did this for 3 sites. Each site has to point to different files directory in the admin/settings page, and you are good to go On 10/16/05, Morbus Iff <morbus@disobey.com> wrote:
I'm fixing to launch a multi-config/single-codebase site (ie., multiple domains pointing to the same Drupal installation, with differing sites/ configuration pointing to different databases), and I'm a little worried about how user account pictures are going to be handled. Currently, pictures are saved as just files/pictures/4.jpg for uid 4. But, what happens when uid 4 from BOTH sites tries to upload their pictures?
I did this for 3 sites. Each site has to point to different files directory in the admin/settings page, and you are good to go
Ah! Of course. Quite obvious. Thanks. /me sighs. -- Morbus Iff ( evil is my sour flavor ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
participants (3)
-
Gerhard Killesreiter -
Khalid B -
Morbus Iff